在struts2中,如何将表单提交到action的具体的某一个方法来处理?该怎样...
发布网友
发布时间:2024-10-13 19:20
我来回答
共3个回答
热心网友
时间:2024-10-16 20:49
用动态action.
例如这样的写法
<s:form action="resumeAction!change.action" method="post" namespace="/resume" >
!后面就是你要执行的方法名
默认action执行的是execute方法。
热心网友
时间:2024-10-16 20:49
在配置文件里
<action name="resumeAction" class="class的路径" method="chang">
jsp:页面:<s:form action="resumeAction" method="post" namespace="/resume" >
热心网友
时间:2024-10-16 20:45
<s:form action="resumeAction!chang" method="post" namespace="/resume" >