Respected Friends,
I am facing problems with
JSP, I dont know how to run a JSP page using
tomcat web server, can any one please tell me how to run the JSP page using tomcat, where to save the JSP page inside tomcat and what command to type in browser to run it. I tryed to run one JSP page using the following procedure but was unable to run it successfully every time I get a 404-File Not Found error , the procedure I am following is as follows :
1) the name of my JSP page is Hello.jsp, I save this JSP page to the following path :
D:\TOMCAT\webapps\my\Hello.jsp
As you might have guessed that inside webapps I create a folder namely "my" and inside that folder I save my JSP page.
2) After saving the JSP page I enter the following command in the browser :
http://localhost:8080/my/Hello.jsp But I get the 404-File not found error, can any one please tell what mistake I am making and also please check the source code present below.
//////////////////////////////////////////////////////////
<html>
<body>
Hello<%=new
String("world!") %>
</body>
</html>
////////////////////////////////////////////////////////////
Please tell me that what mistake I am making,also please tell that is there any problem with the source code,please reply as soon as possible,this is really urgent for me.
Thanking You,
Salman Faraz.