2/28/19

How to run JPS Servlet Program on XAMPP | Tomcat Server


How to run JPS Servlet program on xampp.
XAMPP is a very easy to install Apache Distribution for Linux, Solaris, Windows, and Mac OS X. The package includes the Apache web server, MySQL, PHP, ...

 Download Xampp 


Step by Step:

1. Download & Install the xampp

2. After installation open the xampp and run on Tomcat Web server.



3. You have to put your .jps file below the file location.

 Path 1: "C:\xampp\tomcat\webapps\examples\jsp\create_folder_here\file_name.jsp"

- Or -

Path2: "C:\xampp\tomcat\webapps\create_folder_here\file_name.jsp"

create_folder_here which means your site name. for example: e-commerce system
file_name.jsp which means your file name of jsp. for example: hello-world.jsp


4. After put your file above the location, open the browser and type like this.
If you have selected file  Path 1: "C:\xampp\tomcat\webapps\examples\jsp\create_folder_here\file_name.jsp". you have to type "http://localhost:8080/examples/jsp/hello-world.jsp".


If you have selected file Path2: "C:\xampp\tomcat\webapps\create_folder_here\file_name.jsp". you have to type "http://localhost:8080/jsp-prac/hello-world.jsp"

5. that's it.


hello-world.jsp Code :

<html>

<body>

<%= new java.util.Date() %>
<br/><br/>
<%
out.println("Welcome to IT OF Najathi's Blogs");
%>

</body>

</html>



Output of hello-world.jsp Code :




1 comment:

  1. one question, how to open a servlet after click in jps bottom?

    ReplyDelete

About

Hi, I'm Najathi.
I've started entrepreneurial company, Twin Brothers.Inc.
One is self-funded & the other is venture backed. I also send a weekly. where I share relevent, curated links.

Every Week I Publish a short post on writing, publishing, or content of IT Related

Contact Form

Name

Email *

Message *