CIS 636 Servlets and JSP examples

Curricula
syllabus |
announcements |
assignments | discussion

Archives
student work |
review notes

Resources
research materials |
tutorials | |

Contacts
home to: course | instructor |
department | La Salle home

E-Mail: redmond@lasalle.edu  


=================================================================

Some basic servlet examples (these are available for download and browsing, the server is not set up to run these)

A "Hello World" level servlet servlets/TestServlet.java Text version (for easy reference) servlets/TestServlet.java.txt

Hello World level - but has a www page to kick it off servlets/LongoServletTest.java Text version (for easy reference) servlets/LongoServletTest.java.txt and here is the html that could be used with the servlet (on a web server configured to run it): servlets/Servlet1.shtml

A variation on pet recommendation servlet from Just Java servlets/HandleGateKeeping.java Text version (for easy reference) servlets/HandleGateKeeping.java.txt and here is the html that could be used with the servlet (on a web server configured to run it): servlets/pet.html

Here is the html that could be used with a servlet along the search for the Holy Grail (on a web server configured to run it): servlets/SimpleForm2.htm (you will note the awful html generated by Microsoft Word). I don't currently have a servlet for this.

(View > Source OR right click > Save Target As to see the html rather than display the page)

Tomcat instructions for folders when really running from a www server TomcatDocumentationOnDirectoryStructure.htm

=================================================================

Some simple JSP files (server not set up to run these)

A JSP that displays the current time servlets/time.jsp

A JSP that echos back http headers (just for fun!) servlets/echo.jsp

(View > Source OR right click > Save Target As to see the html rather than display the page)

=================================================================

=================================================================