I need to know how to run a JSP file on a webserver. I have experience writing PHP, but for PHP all I have to do is save the file and open it in the web browser. Is there an easy tutorial that will help me understand how to run JSP files for a web site?
6 Answers
Download an IDE say eclipse.
Download the jdk say jdk1.7
Download a web server say tomcat. Download the binary distribtion from here
Create a dynamic web project in eclipse. Right click on the project , add a new jsp file say test.jsp. Write something in the body tag like "Hello World". Right click on test.jsp and run it on server. There you go!!!
for more information Visit http://www.srccodes.com/p/article/2/JSP-Hello-World-Program-using-Eclipse-IDE-and-Tomcat-web-server

- 315
- 1
- 14
First of all you will need a Java web server like Tomcat, Jetty...etc. These will allow your application to run. Second you need to create a web project(WAR), which will contain your servlet's and JSP's.
I suggest you download a good IDE like eclipse or Netbeans(preferably Netbeans if you're new to this) and have a look at the samples they provide or just go and look here: http://www.oracle.com/technetwork/java/javaee/jsp/index.html

- 474
- 2
- 7
Another means for running JSP files, depending on what you're doing of course, is using Java Web Start (aka javaws.exe), as in:
C:\> javaws myjspfile.JSP
Java Web Start (javaws.exe) is included in the JRE, which for me was in C:\Program Files\Java\jre7\bin

- 342
- 3
- 10
application server is needed, like tomcat、jetty、jboss(for enterprise)。 there are so many articles on the web, how to run a java web project, i advise you to use maven to create,build,deploy web project for its ease.

- 11
- 3