How to run JSP files?

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?

+5
source share
6 answers

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

+3
source

- Java, Tomcat, Jetty... .. . -, - (WAR), JSP.

IDE, ​​ eclipse Netbeans ( Netbeans, ), , , : http://www.oracle.com/technetwork/java/javaee/jsp/index.html

+1

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

+1

, tomcat, jetty, jboss ( ). , - java, maven , , - .

0

JSP , , , Java Web Start (aka javaws.exe), :

C:\> javaws myjspfile.JSP

Java Web Start (javaws.exe) JRE, C:\Program Files\Java\jre7\bin

0

All Articles