<s:actionerror />
<s:fielderror cssStyle="color:red" />
在
<action name="hello" class="com.hello">
<result name="input">/MyJsp.jsp</result>
<result name="success">/MyJsp.jsp</result>
<interceptor-ref name="defaultStack" />
</action>
这样的条件下是能显示出来的,但是在经过了hello1.action后,就显示不出来了。
如有这么一些配置文件
<action name="hello" class="com.hello">
<result name="input">hello1</result>
<result name="success">hello1</result>
<interceptor-ref name="defaultStack" />
</action>
<action name="hello1" class="com.hello1">
<result name="input">/MyJsp.jsp</result>
<result name="success">/MyJsp.jsp</result>
<interceptor-ref name="defaultStack" />
</action>
当我在hello这个action里面产生了actionerror或者filederror之类的,怎么在hello1的MyJsp.jsp里面显示出来???
当我访问hello.action 它产生了actionerror或者filederror之类的,然后跳转到hello1.action,这里怎么显示?<s:actionerror />
<s:fielderror cssStyle="color:red" />
我不知道我说明白我的意思了没
<s:fielderror cssStyle="color:red" />
在
<action name="hello" class="com.hello">
<result name="input">/MyJsp.jsp</result>
<result name="success">/MyJsp.jsp</result>
<interceptor-ref name="defaultStack" />
</action>
这样的条件下是能显示出来的,但是在经过了hello1.action后,就显示不出来了。
如有这么一些配置文件
<action name="hello" class="com.hello">
<result name="input">hello1</result>
<result name="success">hello1</result>
<interceptor-ref name="defaultStack" />
</action>
<action name="hello1" class="com.hello1">
<result name="input">/MyJsp.jsp</result>
<result name="success">/MyJsp.jsp</result>
<interceptor-ref name="defaultStack" />
</action>
当我在hello这个action里面产生了actionerror或者filederror之类的,怎么在hello1的MyJsp.jsp里面显示出来???
当我访问hello.action 它产生了actionerror或者filederror之类的,然后跳转到hello1.action,这里怎么显示?<s:actionerror />
<s:fielderror cssStyle="color:red" />
我不知道我说明白我的意思了没
解决方案 »
- Hibernate 关于主键机制问题
- 新人遇到困难,请走过艰辛新人路的大侠们帮帮忙吧
- 一个JavaEE程序,页面标签用的Struts2,提示Internate 无法打开action页面,
- hibnate中 update save saveorupdate的区别
- struts2问题求救:No configuration found for the specified action
- Hiberneta one to many关系,讲明白立刻给分(100分)
- xp下装什么样的数据库好?(急求)
- 帮忙呀~~~jsp调用类问题~~~
- 求回复springMVC+quartz如何访问数据库数据,进行判断后选择性自动发送邮件呢???
- 关于 流程引起跟任务调度的疑问
- 请问一个hibernate的query查询问题
- SQL Manager 2007工具创建数据库的时候出问题了:Access denied for user ' ' @'localhost' (using pa
<result name="input" type="chain">hello1</result>
<result name="success" type="chain">hello1</result>
<interceptor-ref name="defaultStack" />
</action>
<action name="hello1" class="com.hello1">
<result name="input">/MyJsp.jsp</result>
<result name="success">/MyJsp.jsp</result>
<interceptor-ref name="defaultStack" />
</action>
配置一下result的type属性,struts2中result有多种type属性给用户选择,相应的类容可以找资料看看。
<s:fielderror cssStyle="color:red" />不行了?