标签:xxx import utf-8 comm ons 导致 页面 配置 filter
问题:项目首页登录:如想让(A)10.118.66.20:8080/ABX/ 与(B)10.118.66.20:8080/ABX/index.do,链接跳转的页面一样
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
(1)可在index.jsp页面中处理
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://sf.com/taglib/sf-common" prefix="common"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
//加入下面语句
response.sendRedirect("index.do"); // 同时后台代码sessionFilter不拦截此index.do
%>
标签:xxx import utf-8 comm ons 导致 页面 配置 filter
原文地址:http://www.cnblogs.com/mxzer/p/6411589.html