这是struts-config.xml配置文件
<action path="/edituser" type="com.bdrj.action.EdituserAction"
attribute="userForm" name="userForm" parameter="method" validate="false">
<forward name="index" path="/index.jsp" redirect="true"/>
<forward name="edituser" path="/eduser.jsp" />
<forward name="norights" path="/norights.jsp" />
</action>
然后action继承dispatchaction,在这个action中有一个delete方法调用:
forward=mapping.findForward("/edituser.do?method=browse");
public ActionForward browse(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response)throws Exception {
这个方法
然后报的异常是:unable to find '/edituser.do?method=browse' forward
是不是哪块配置不对啊?
<action path="/edituser" type="com.bdrj.action.EdituserAction"
attribute="userForm" name="userForm" parameter="method" validate="false">
<forward name="index" path="/index.jsp" redirect="true"/>
<forward name="edituser" path="/eduser.jsp" />
<forward name="norights" path="/norights.jsp" />
</action>
然后action继承dispatchaction,在这个action中有一个delete方法调用:
forward=mapping.findForward("/edituser.do?method=browse");
public ActionForward browse(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response)throws Exception {
这个方法
然后报的异常是:unable to find '/edituser.do?method=browse' forward
是不是哪块配置不对啊?
解决方案 »
- Java Socket长连接 被动接收数据
- 用myeclipse好痛苦
- spring集成openJAP的问题
- Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
- htmlparser爬取网页时报Connection reset异常
- swing 開發容器問題(大小背景圖片疊加)
- 请问Weblogic 8.1怎样用weblogic的jDriver方式连接Oracle 10g?
- J2EE基础问题两三问,追加200分。
- 大家来谈谈有那些java流行的模式来架构开发项目。参者有分
- 用JCombobox时碰到的奇怪问题,急!!!
- DBCP问题
- 一个关于顺序的问题!
你这样写是在配置文件中找到 对应"/edituser.do?method=browse"的映射
这样写
response.sendRedirect("/edituser.do?method=browse")
return null;
它肯定是 unable to find '/edituser.do?method=browse' forward
因为找不到这个name。
看来配置文件的属性你还是不了解。
多看看吧。
你写的那个只要不在配置文件中出现,都找不到。
去掉 /