File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat 3.2.2 and application.getResource(path) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Tomcat 3.2.2 and application.getResource(path)" Watch "Tomcat 3.2.2 and application.getResource(path)" New topic
Author

Tomcat 3.2.2 and application.getResource(path)

ca buki
Greenhorn

Joined: Oct 10, 2002
Posts: 12
I'm running a web application that has JSPs written in multiple languages, with each language in it's own directory. Some pages don't exist yet in some languages and if it doesn't, it defaults back to the default. I'm using the following call to determine if a .jsp exists in the current language and if it doesn't call up the default.

This works fine in Weblogic using a .war file, but when testing locally on a Tomcat server, it returns a URL, regardless if it really exists. Is there a better way to test if a file exists that's compatible with Tomcat and Weblogic?
 
 
subject: Tomcat 3.2.2 and application.getResource(path)
 
Threads others viewed
schedule auto start/stop for tomcat in windows
ResourceBundle & defaultLocale
checking whether HTML file exists
How to map non - *.jsp files to be served as regular JSP pages?
internationalization & Properties file order (gone south)
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com