可以的,只不过你不用在写成这样:
return actionMapping.findForward("loginAction.do?method=方法名");
你只要写:
return actionMapping.findForward("anotherMethod");
然后再相应的ActionMapping中定义一个Forward:
<forward name="anotherMethod" path="/anotherMethodAction.do?parmID=anotherMethod" redirect="true"/>
就可以了。
return actionMapping.findForward("loginAction.do?method=方法名");
你只要写:
return actionMapping.findForward("anotherMethod");
然后再相应的ActionMapping中定义一个Forward:
<forward name="anotherMethod" path="/anotherMethodAction.do?parmID=anotherMethod" redirect="true"/>
就可以了。
解决方案 »
- SSH框架搭建
- (高分求解)关于Socket的问题,给点力吧!
- 关于Hibernate的一个小问题!请各位大虾帮忙
- tomcat 提示严重: Servlet.service() for servlet jsp threw exception
- 请教hibernate的性能问题?
- JUnit 4.0 now available 2006-02-16 并高分征求相关实践经验文章与大家共享
- 如何用java操作word、excel?
- 请教高手:关于hibernate中父子关系的删除问题!
- 问一个整个工程都用到的常量的问题
- 大家帮忙看一看,Tomcat远程访问mysql的问题在线等,本人刚来论坛分嫌少的以后补,谢了
- JB9+Weblogic7.0sp2的配置问题,报错信息如下()
- 谁知道哪里有下载isapi_redirect.dll?
return actionMapping.findForward("XXXXX");
然后再相应的ActionMapping中定义一个Forward:
<forward name="XXXXX" path="/anotherMethodAction.do?parmID=anotherMethod" redirect="true"/>XXXXX代表任意字符串