Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run JSP files?

Tags:

jsp

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?

like image 711
Stan Murdoch Avatar asked Aug 13 '11 07:08

Stan Murdoch


People also ask

Can we run JSP without server?

If the server does not know what a jsp page is, or how to execute the code then there is no way to get it working. My opinion is that you need to find a new host, one that supports JSP. Without a container which runs jsp and servlet you cannot.

How do I test a JSP file?

Just create a directory in the tomcat webapps folder and place your JSP file in the newly created directory. For example, if your JSP is located at apache-`tomcat/webapps/test/home. jsp`, then you can access it in browser with URL `https://localhost:8080/test/home.jsp`.

Can we run JSP file in eclipse?

For starting the server and deploying the project in one step Right click on your project -> Run As -> Run on Server -> choose tomcat server -> next -> addAll -> finish. Yes, Let's see JSP is successfully running now.


1 Answers

You need to download and install web server like Apache Tomcat on your local machine. You can do it on any IDE also like eclipse.

like image 162
Jwalant Avatar answered Sep 26 '22 03:09

Jwalant