JavaServer Pages (JSP) is a technology that helps software developers create dynamically generated web pages based on HTML, XML, or other document types.
To run JSP programs we require the Tomcat. You can download the latest version of Tomcat from Apache Website
Following is the Detailed Step to Step Process of Executing first JSP program -
Step 1 - Create the proper Web directory in the 'webapps' of the Tomcat
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> index.jsp
To run JSP programs we require the Tomcat. You can download the latest version of Tomcat from Apache Website
Following is the Detailed Step to Step Process of Executing first JSP program -
Step 1 - Create the proper Web directory in the 'webapps' of the Tomcat
- In the webapps directory, create the project folder called First (name of project mainly, in this case i named my project folder as First)
- In the Project directory try to have the following hierarchy of the folders -
- First WEB-INF folder in project directory, then two folders lib and classes in the WEB-INF.
Step 3 - Create the web page named index.jsp, place it in the project directory.
For the "Hello world"JSP Program we have only few lines of codes as -
First Jsp Example
You have Successfully Run the first Jsp program
Step 4 - Go to web browser and type http://localhost:8080/First (assuming the tomcat is already started).
where is the program........
ReplyDelete