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"
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 :
one question, how to open a servlet after click in jps bottom?
ReplyDelete