Monday, August 31, 2009

How to run an individual JSP

Without creating an application directory structure how would you run an individual jsp file?

Using TOMCAT
Create a folder "myapplication" within C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ and place your jsp file in it.
This is how the file path looks C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\myfile.jsp

Now start the TOMCAT server.
Use the following url in your browser to run the jsp file.
http://localhost:8080/myapplication/myfile.jsp

1 comment: