forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.jsp
More file actions
16 lines (14 loc) · 5 KB
/
index.jsp
File metadata and controls
16 lines (14 loc) · 5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<base href="<%=basePath%>">
<%
String path1=request.getServletPath();
path1 = path1.substring(1);
path1=path1.substring(0, path1.indexOf("/"));
response.sendRedirect("userInfo_goinUser.htm?account="+path1+"");
%>