struts.xml dispatcher
struts.xml文件:
<action name="login" class="com.ntv.action.LoginAction">
<result name="success" type="redirect">list</result>
</action>
<action name="list" class="com.ntv.action.ListAction">
<!-- 配置结果集 -->
<result name="listuser" type="dispatcher">list.jsp</result>
<result name="error">error.jsp</result>
</action>
跪求大神!
1、红色部分为什么报错?红色部分的list跟下面一行<action name="list"中的list对应的啊。也就是登陆成功,action里面返回success,重新定向list变量。所以会找到action name="list"对应,如果返回的是listuser就跳转到list.jsp页面?(我想做的功能由登陆跳转到显示用户的信息)
不知道怎么改,跪求大神!!!!!!!
<action name="login" class="com.ntv.action.LoginAction">
<result name="success" type="redirect">list</result>
</action>
<action name="list" class="com.ntv.action.ListAction">
<!-- 配置结果集 -->
<result name="listuser" type="dispatcher">list.jsp</result>
<result name="error">error.jsp</result>
</action>
跪求大神!
1、红色部分为什么报错?红色部分的list跟下面一行<action name="list"中的list对应的啊。也就是登陆成功,action里面返回success,重新定向list变量。所以会找到action name="list"对应,如果返回的是listuser就跳转到list.jsp页面?(我想做的功能由登陆跳转到显示用户的信息)
不知道怎么改,跪求大神!!!!!!!
...全文
相关推荐
Struts2在Tomcat容器中的加载过程
**初始化Filter Dispatcher**:Struts2的Filter Dispatcher被初始化,加载配置文件(如struts-default.xml、struts-plugin.xml和应用级的
Struts关于登陆
本文将深入探讨Struts如何实现登录功能,涉及的主要知识点包括Action、Form Bean、Dispatcher Servlet、Interceptor以及 strut.xml 配置。1.
struts框架开发
**Dispatcher**: Struts中的Dispatcher(通常指的是ActionServlet)负责分发用户请求,根据配置文件中的ActionMapping找到对应的Action执行。
struts中文帮助手册
在Struts框架中,核心概念包括Action、ActionForm、Dispatcher(也就是控制器Servlet,即Struts Action Servlet)、配置文件(struts-config.xml
org.apache.struts2.dispatcher.FilterDispatcher
总的来说,`org.apache.struts2.dispatcher.FilterDispatcher`是Struts 2框架中一个至关重要的组件,负责请求的分发和Action的调用,对于理解和掌握Struts


