sturts 1.xif(xdshl<shl){
return mapping.findForward("Failure");
}
return mapping.findForward("success");
下面是我写的配置文件 但有问题<action path="/insert"
type="com.name.assets.query">
<forward name="success"
path="/index.jsp"/>
<forward name="Failure"
path="/failure.jsp"/></action>
return mapping.findForward("Failure");
}
return mapping.findForward("success");
下面是我写的配置文件 但有问题<action path="/insert"
type="com.name.assets.query">
<forward name="success"
path="/index.jsp"/>
<forward name="Failure"
path="/failure.jsp"/></action>
解决方案 »
- 用axis2 和 hibernate 开Webservice出现 org.apache.axis2.AxisFault
- 求教一个HQL语句
- 在glassfish上建的数据源,为什么initialcontext.lookup("java:comp/env/..");这个方法不成功?
- 关于相对路径和绝对路径,懂的进
- isEmpty()错误
- [转载&改编]一步一步开发Spring Framework MVC应用程序-2(Intellij IDEA版)
- struts 自定义validator怎么写的最好有例子
- 请教......?????有分
- eclips+Lomboz+JBoss运行错误,但是单独运行JBoss正确,不知道什么问题
- 为什么我写的applet读写xml程序在jbuilder中可以用,但打成JAR放在tomcat下时,就不能用了?
- 图片不能显示
- struts 国际化 native2ascii 怎么弄 求助 在线等
2010-2-1 16:21:37 org.apache.struts.action.ActionMapping findForward
警告: Unable to find 'Failure' forward.
name="Failure"有问题,检查你的name值和mapping中的值是否一致,大小写也必须一致。
return mapping.findForward("Failure");
}
return mapping.findForward("success");这段代码不严谨!if(xdshl<shl){
return mapping.findForward("Failure");
}
else{
return mapping.findForward("success");
}
加上else