Is it possible to have two JSPs with the same name, in two different directories on the server?

John Zukowski

Yes it is possible. The JSP engine names the actual servlet classes based upon the entire directory tree. Imagine something in http://www.jguru.com/jspfiles/foo/bar/one.jsp being in a package of jspfiles.foo.bar and something in http://www.jguru.com/jspfiles/foo/baz/one.jsp in a package of jspfiles.foo.baz. The entire directory path determines the internal name of the JSP-generated servlet, not just the final filename.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact