I have a properties file (LDAP.properties) from which I want to read some properties. The code works fine when I run through a driver application, with the file in the current directory. However, when I move the LDAP.properties file to WEB-INF/classes and create a .war, and deploy it, the servlet throws a FileNotFoundException . I can see the LDAP.properties file in the Tomcat 4.0/webapps/DemoClient/WEB-INF/classes directory (DemoClient being my app name)
Is there something obvious I am missing ? regards Shourya > -----Original Message----- > From: Lance Prais [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 11, 2002 6:18 PM > To: [EMAIL PROTECTED] > Subject: Endswith question > > > I have two questions: > > 1. I have the following line: > ConnectMode_OfficeMode.pdf > I want to check to see what the .filetype is. I assume I would use > If endswith(txt) > { > DO SOMETHING > } > It is not working? > > 2. I have multiple items that I will be checking therefore I > was thinking of > using switch...case > String s = null; > Switch(test) > { > case endswith(txt) > s= something; > case endswith(doc) > s= something else; > case endswith(html) > s= something more; > } > This does not seem to work. > > COuld someone either take a look at the code and let me know > what you see. > > Thanks is advance > Lance > > ______________________________________________________________ > _____________ > To unsubscribe, send email to [EMAIL PROTECTED] and > include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: > http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
