Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客

绿色网站无广告
会员投稿 投稿指南 本期推荐:
搜索:
您的位置: Linux安全网 > Linux集群 > Architecture > » 正文

struts2 Codebehind Plugin

来源: 未知 分享至:

1.为未定义的action指定mapping
When no explicitly configured Action can be found for a request, the plugin searches the web application for a likely page. Specifically, the following pattern is used to locate a page:

/NAMESPACE/ACTION.(jsp|vm|ftl)

For example, if the request is for http://www.company.com/myapp/member/login.action, the plugin will look for the following pages, in this order:

/member/login.jsp
/member/login.vm
/member/login.ftl


2.为未指定result的action自动寻找页面

When no explicitly configured Result is found for an Action's result code, the plugin, again, searches the web application for a matching page. Specifically, the following patterns, in the following order, are used to locate a page:

/NAMESPACE/ACTION-RESULT_CODE.(jsp|vm|ftl)
/NAMESPACE/ACTION.(jsp|vm|ftl)
These two patterns are searched for each of the three default page extensions: jsp, vm, and ftl. For example, if the request is for http://www.company.com/myapp/member/login.action, so that the action name is login and the namespace is member, and the Action class returned a code of success, the plugin will look for the following pages, in this order:

/member/login-success.jsp
/member/login.jsp
/member/login-success.vm
/member/login.vm
/member/login-success.ftl
/member/login.ftl






Tags:
分享至:
最新图文资讯
1 2 3 4 5 6
验证码:点击我更换图片 理智评论文明上网,拒绝恶意谩骂 用户名:
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史