Hi, I have a date.jsp which will return todays date. I have deployed this date.jsp under C:\Tomcat 4.1\webapps\JspProj\WEB-INF\date.jsp but i m getting the error "The requested resource (/date.jsp) is not available."
I tried placing the date.jsp in C:\Tomcat 4.1\webapps\JspProj\WEB-INF\classes\date.jsp. this also did not work. please hepl me. thanks in advance suseela
First of all, could you please read the ranch's Naming Policy and change your name accordingly ? Thank you :thumb:
this also did not work. please hepl me.
I'd suggest that you read some basic documentation on web application. Things you put under WEB-INF are not directly accessible. They are hidden from the client. For the moment, try to put your JSP file at the context root (C:\Tomcat 4.1\webapps\JspProj\), or in a directory below it (C:\Tomcat 4.1\webapps\JspProj\jsp\)
Thank you Christophe Verre. I have tried placing date.jsp under C:\Tomcat 4.1\webapps\JspProj\date.jsp. even though I am getting the same error "The requested resource (/JspProj/date.jsp) is not available."
Please retry by following these steps : 1. Make a directory called "jspproj" under webapps 2. Put your JSP file in it 3. Make a directory called WEB-INF under "jspproj" 4. Create a file called "web.xml" under WEB-INF 5. Copy/Paste the following code into web.xml :