actionMapping.getPath()是什么意思啊?

来源:百度知道 编辑:UC知道 时间:2024/09/20 21:28:16
比如说这句话具体是什么意思啊?能解释越详细越好啊。谢谢了。
String path =actionMapping.getPath();

actionMapping.getPath();
就是得到你提交到action中时,使用的别名,
比如你提交到http://localhost:8080/test/login.do一个登录的信息。
那么actionMapping.getPath()会返回/login给你。
他的用处不是很大,可以说在实际开发当中很少用到。