JavaServer Page (JSP) Development Steps
updated 31 March 2008
For page centric JSP in our environment:
- Initially, it is probably useful to prepare and test SQL commands
interactively;
next write a java application with JDBC to accomplish the same functions
planned for the JavaServer Page;
then:
- Create a JavaServer Page with an editor such as NotePad;
and save this file with the file extension .jsp
- Store the file (or create a folder for the file) down this path:
c:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps
- Start Tomcat: this may be done through "Services" or
clicking on tomcat6.exe in the Tomcat bin directory;
- Invoke a browser (e.g. Internet Explorer)
- Open the JSP file in the browser. Select File|Open and type
http://localhost:8080/yourJSPfile.jsp
-
note: if your file(s) are in a folder under webapps, then include
the folder name in the path (in our class demonstration I opened a
file as)
http://localhost:8080/jspExamples/HelloWorld.jsp
because of having stored several JSP files in a folder named jspExamples