Commit f04c6f66 authored by Medicean's avatar Medicean

jsp shell 基础信息调整

parent a83b3218
...@@ -111,8 +111,7 @@ ChangeLog: ...@@ -111,8 +111,7 @@ ChangeLog:
return ret; return ret;
} }
String WwwRootPathCode(HttpServletRequest r) throws Exception { String WwwRootPathCode(String d) throws Exception {
String d = this.getClass().getResource("/").getPath();
String s = ""; String s = "";
if (!d.substring(0, 1).equals("/")) { if (!d.substring(0, 1).equals("/")) {
File[] roots = File.listRoots(); File[] roots = File.listRoots();
...@@ -286,7 +285,7 @@ ChangeLog: ...@@ -286,7 +285,7 @@ ChangeLog:
String serverInfo = (String)System.getProperty("os.name"); String serverInfo = (String)System.getProperty("os.name");
String separator = File.separator; String separator = File.separator;
String user = (String)System.getProperty("user.name"); String user = (String)System.getProperty("user.name");
String driverlist = WwwRootPathCode(r); String driverlist = WwwRootPathCode(d);
return d + "\t" + driverlist + "\t" + serverInfo + "\t" + user; return d + "\t" + driverlist + "\t" + serverInfo + "\t" + user;
} }
......
...@@ -103,8 +103,7 @@ Ver:1.3 ...@@ -103,8 +103,7 @@ Ver:1.3
return ret; return ret;
} }
String WwwRootPathCode(HttpServletRequest r) throws Exception { String WwwRootPathCode(String d) throws Exception {
String d = this.getClass().getResource("/").getPath();
String s = ""; String s = "";
if (!d.substring(0, 1).equals("/")) { if (!d.substring(0, 1).equals("/")) {
File[] roots = File.listRoots(); File[] roots = File.listRoots();
...@@ -278,7 +277,7 @@ Ver:1.3 ...@@ -278,7 +277,7 @@ Ver:1.3
String serverInfo = (String)System.getProperty("os.name"); String serverInfo = (String)System.getProperty("os.name");
String separator = File.separator; String separator = File.separator;
String user = (String)System.getProperty("user.name"); String user = (String)System.getProperty("user.name");
String driverlist = WwwRootPathCode(r); String driverlist = WwwRootPathCode(d);
return d + "\t" + driverlist + "\t" + serverInfo + "\t" + user; return d + "\t" + driverlist + "\t" + serverInfo + "\t" + user;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment