X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fdolda%2Fjsvc%2Fj2ee%2FJ2eeContext.java;h=696e32b939e88f83877c139d84582a4e6b58ddbb;hb=c25c3aadf42cf04fe8dbbfb60624589ba60112bd;hp=f2531280ff7da64c8030e57f230269a73e05eaba;hpb=6f1acdb2f8879097cdd8c6cedfc0d6752f2b29ef;p=jsvc.git diff --git a/src/dolda/jsvc/j2ee/J2eeContext.java b/src/dolda/jsvc/j2ee/J2eeContext.java index f253128..696e32b 100644 --- a/src/dolda/jsvc/j2ee/J2eeContext.java +++ b/src/dolda/jsvc/j2ee/J2eeContext.java @@ -1,6 +1,7 @@ package dolda.jsvc.j2ee; import dolda.jsvc.*; +import dolda.jsvc.util.*; import javax.servlet.*; import javax.servlet.http.*; @@ -16,6 +17,10 @@ public class J2eeContext implements ServerContext { } public String rootpath() { - return(req.getContextPath()); + return("/" + Misc.stripslashes(req.getContextPath(), true, true)); + } + + public long starttime() { + return((Long)cfg.getServletContext().getAttribute("jsvc.starttime")); } }