For run a jsp program you will need a server. for example Apache Tomcat which can be download from http://tomcat.apache.org/ .
After installation you can open the home page of Apache Tomcat by typing localhost:8080 on your browser's address bar where 8080 is aloted port number to the apache tomcat server at the time of installation . Home page of apache tomcat may look like this :
If this page appears then you have installed apache tomcat server successfully :)
sample jsp program :
After installation you can open the home page of Apache Tomcat by typing localhost:8080 on your browser's address bar where 8080 is aloted port number to the apache tomcat server at the time of installation . Home page of apache tomcat may look like this :
If this page appears then you have installed apache tomcat server successfully :)
sample jsp program :
<html>
<head>
<title>sample JSP program</title>
</head>
<body>
<% out.println("Hello World"); %>
</body>
</html>
save it as sample.jsp at the location C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\ROOT
Now type localhost:8080/sample.jsp/ on browser's address bar.
Output will look like this ::
Thank You :)

