没有struts之前,使用servlet,最常用的是doGe 例如appfuse的配置: <action path="/saveUser" type="org.appfuse.webapp.action name="userForm" scope="request" input="edit" parameter="method" unknown="false" validate="false" > <forward name="list" path="/WEB-INF/pages/userList redirect="false" /> <forward name="edit" path="/WEB-INF/pages/userForm redirect="false" /> </action> parameter="method"这个参数就是说 例如appfuse的UserAction package org.appfuse.webapp.action; import ... public final class UserAction extends BaseAction { public ActionForward add(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { ... } public ActionForward cancel(ActionMapping mapping, ActionForm form, throws Exception { ... } public ActionForward delete(ActionMapping mapping, ActionForm form, throws Exception { ... } public ActionForward edit(ActionMapping mapping, ActionForm form, throws Exception { ... } public ActionForward save(ActionMapping mapping, ActionForm form, throws Exception { ... } public ActionForward search(ActionMapping mapping, ActionForm form, throws Exception { ... } public ActionForward unspecified(ActionMapping mapping, ActionForm form, throws Exception { ... } private void sendNewUserEmail(HttpServletReq throws Exception { ... } } 当你没有传入method参数,或者没有符合参数的方法时 |
struts的parameter功能
精选 转载struts的parameter功能(转自[url]http://hi.baidu.com/chuntian1919/blog/item/7c12898061a753d39023d974.html[/url])
2008-01-28 10:29 P.M.
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
SQL java.sql.SQLException: Parameter metadata not available for the given statement
问题:java.sql.SQLException: Parameter metadata not available for the given statement意思说:对于给定语句的参数元数据不可用(连接数据库时的URL需要加上元数据类型)generateSimpleParameterMetadata=true (生成简单的参数元数据)这里写上generateSimpleP
Parameter metadata given statement mysql -
Parameter pack
parameter
sed c++11 ide c++ ios