Thursday 18 April 2013

how to run jsp program in xampp

save your program in C:\xampp\tomcat\webapps\examples\jsp   
" in jsp folder " without making any folder .or

for folder --->C:\xampp\tomcat\webapps\examples\create folder here(this is your folder name and store all your file without going in jsp folder)

 simple jsp program save it as 
 first.jsp


<html>
<head>
<title>blog post:ApacheTomcatServer</title>
</head>
<body>

<%-- START --%>
<%
    out.println("UserName = aavik ");
    out.println("Running first program in JSP.");
%>
<%-- END --%>

</body>
</html>

 




in your url type http://localhost:8080/examples/jsp/first.jsp

3 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete