Re: question about Tomcat5.5 getServletContext().getContext(String url);

2009-12-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/22/2009 4:35 AM, André Warnier wrote: > In other words, [that code] is trying to get the context of a webapp which > should > be located at webapps/File. > If you do not have such a webapp, then that is the reason for the > message above

Re: question about Tomcat5.5 getServletContext().getContext(String url);

2009-12-22 Thread Pid
On 22/12/2009 09:13, Peter Chen wrote: Hi, In a JSP file, there is a sentence like this: ServletContext sc = this.getServletContext().getContext("/File"); if(sc == null){ Logger.warn(msg,"Can't get the context of /File."); return; } What's the mean of this sentence? Ask the author o

Re: question about Tomcat5.5 getServletContext().getContext(String url);

2009-12-22 Thread André Warnier
Peter Chen wrote: Hi, In a JSP file, there is a sentence like this: ServletContext sc = this.getServletContext().getContext("/File"); if(sc == null){ Logger.warn(msg,"Can't get the context of /File."); return; } What's the mean of this sentence? Now, I run this application in Tomc

question about Tomcat5.5 getServletContext().getContext(String url);

2009-12-22 Thread Peter Chen
Hi, In a JSP file, there is a sentence like this: ServletContext sc = this.getServletContext().getContext("/File"); if(sc == null){ Logger.warn(msg,"Can't get the context of /File."); return; } What's the mean of this sentence? Now, I run this application in Tomcat5.5, and find the l