-
JSP pages
I am very new to JSP . Inorder to test my example jsp pages, I need to install apache in my system. Thats when I saw a folder named apache inside an existing folder of an already installed application framework . Does that mean that I have already installed it in my system?? Inside the apache folder, there is a tomcat folder and inside the folder there are usual folders like bin,conf,logs,lib etc. The bin folder has bootstrap.jar,cataline.bat,commons-loggin-api.jar,setclasspath.jar, tomcat-juli.jar and version.bat. Do i need to install apache inorder to run my jsp pages??Or this existing folder is enough? If enough, How to use it to run my JSP pages? Can anybody help me??
-
for develop aim you just can unpack tomcat distributive and run it.
for run you need set up JAVA_HOME environment. then move in folder tomcat/bin and run startup.but.
I advice you read Head First JSP and Servlet, There are more detail elaborate it.
-
Thanks for that reply Petr..I installed,set the variables and started the server. It is getting started alright. But I cant run my jsp pages . I created a sample page and put the file in webaps folder. Tried to access the file by giving the foolwing in the URL :http://localhost/checkresult.jsp btut page not found is shown.I know something is missing..But what??
-
Where did you locate JSP page. Can you show path?
-
I placed my JSP file in webapps folder inside the apache home folder.
C:\apache-tomcat-7.0.12\webapps\Exmaple1.jsp
-
You need locate your jsp in webapps/ROOT or create a separate web app module.
-
Thanks...It worked.... :)