Running JSP in Tomcat.
Hello,
I have installed Eclipse and Tomcat on my PC. I am able to run Java code without any problems using Eclipse. I am able to run servlets using tomcat. To run a servlet I had to create a web.xml file under WEB-INF folder and it worked.
Now, I am trying to run a "Hello world" JSP (in reality it is an HTML file as I have not included any Java code yet). I saved it as .JSP though. I created a folder "HelloWorld" and created JSPHelloWorld.jsp. When I enter "localhost/8080/HelloWorld/JSPHelloWorld.jsp" it does not recognize it. I did not create a web.xml file. Is that the problem? What kind of set up do I need to make? Tomcat is NOT that great when it comes to giving what the error is.
Please help!!
Thank you!!
|