JavaServer Page (JSP) Development Steps

updated 31 March 2008

For page centric JSP in our environment:

  1. 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:
  2. Create a JavaServer Page with an editor such as NotePad; and save this file with the file extension .jsp
  3. Store the file (or create a folder for the file) down this path:
    c:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps
  4. Start Tomcat: this may be done through "Services" or
    clicking on tomcat6.exe in the Tomcat bin directory;
  5. Invoke a browser (e.g. Internet Explorer)
  6. Open the JSP file in the browser. Select File|Open and type
    http://localhost:8080/yourJSPfile.jsp
  7. 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