Faculty of ESBE
Internet Protocols & Technologies
Lab 2: JSP Web Applications The aim of this lab session is to develop simple JSP web applications that run on Tomcat web server.
Equipments: Two networked PCs with Red Hat Linux operating systems, logbook, and a USB memory stick for saving your work.
Exercises 1: 1. Create a JSP file called date1.jsp, and save it in the /opt/tomcat/webapps/test directory.
Date 1 <% // This is a scriptlet. Notice that the "date" // variable we declare here is available in the // embedded expression later on. System.out.println( "Evaluating date now" ); java.util.Date date = new java.util.Date(); %> Hello! The time is now <%= date %>