struts2 设置默认首页不带路径的形式
2014-08-27 01:32
253 查看
<!-- 配置Struts2的核心的过滤器 --> <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value> </init-param> <init-param> <param-name>forceEncoding</param-name> <param-value>true</param-value> </init-param> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>*.action</url-pattern> <!-- 用于跳转首页转发用的 --> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> </filter-mapping> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%-- <% response.sendRedirect(request.getContextPath() + "/welcome.action"); %> --%> <jsp:forward page="client/index_welcome.action"></jsp:forward>
相关文章推荐
- struts2设置默认首页
- struts2设置加载非默认路径的struts.xml文件解决方案
- Struts2设置加载非默认路径的struts.xml文件的方法
- struts2设置非默认路径的struts.properties以及.properties文件解决方案
- struts2设置默认首页
- struts2设置加载非默认路径的struts.xml文件解决方案+Struts2初学 Struts2的action接收用户数据方式
- CMD默认路径的设置
- Struts2 welcome-file-list 设置的路径不能是Action地址
- delphi中设置默认路径的函数
- Eclipse/MyEclipse默认workspace路径设置
- Eclipse/MyEclipse默认workspace路径设置
- Apache虚拟目录和默认首页的设置
- struts2中struts.xml 非默认路径的配置 转帖
- struts2中struts.xml 非默认路径的配置
- openssl 通过环境变量设置默认的配置文件路径(conf cnf)
- 在web.xml中设置虚拟文件默认首页--index.do的方法
- Js:添加收藏/设置默认首页
- Apache虚拟目录和默认首页的设置
- plesk for Linux 没有默认首页的优先级别设置
- 将默认首页设置成index.do的方法