I need to know how to run a JSP file on a web server. I have experience writing PHP, but for PHP all I have to do is save the file and open it in a web browser. Is there a simple tutorial that will help me understand how to run JSP files for a website?
You need to download and install a web server, such as Apache Tomcat, on your local computer. You can do this on any IDE, as well as an eclipse.
To see this step by step, you can go to JSP in eclipse
- Java, Tomcat, Jetty... .. . -, - (WAR), JSP.
IDE, eclipse Netbeans ( Netbeans, ), , , : http://www.oracle.com/technetwork/java/javaee/jsp/index.html
JSP Eclipse
IDE eclipse.
jdk say jdk1.7
-, , tomcat.
- eclipse. , jsp say test.jsp. - , "Hello World". test.jsp . !!!
http://www.srccodes.com/p/article/2/JSP-Hello-World-Program-using-Eclipse-IDE-and-Tomcat-web-server
, tomcat, jetty, jboss ( ). , - java, maven , , - .
JSP , , , Java Web Start (aka javaws.exe), :
C:\> javaws myjspfile.JSP
Java Web Start (javaws.exe) JRE, C:\Program Files\Java\jre7\bin
C:\Program Files\Java\jre7\bin