Softeem Consultancy Service
JavaServer
JavaServer
Pages
Pages
overview
overview
ID:SCSJ004-JSP&Servlet
Softeem Consultancy Service
2006-9-19 Servlet and JSP overview 2
Road Map
Road Map
z What’s JavaServer Pages
z JSP
z Develop JSP application in Eclipse(WTP)
z JSP & DAO
Softeem Consultancy Service
2006-9-19 Servlet and JSP overview 3
What
What
’
’
s
s
JavaServer
JavaServer
Pages
Pages
• Represent (yet) another method for creating server side
applications;
• embed Java commands directly within HTML.
Softeem Consultancy Service
2006-9-19 Servlet and JSP overview 4
A JSP Sample
A JSP Sample
Helloworld.jsp
<html>
<head>
<title>Hello, World JSP Example</title>
</head>
<body>
<h2> Hello, World!
The current time in milliseconds is
<%= System.currentTimeMillis() %>
</h2>
</body>
</html>
Softeem Consultancy Service
2006-9-19 Servlet and JSP overview 5
Installation and Setup
Installation and Setup
• Obtain Servlet and JSP Software
–Apache Tomcat.
• see http://jakarta.apache.org/.
–Sun’s JWS(Java Web Server).
• See
http://www.sun.com/software/jwebserver/try/.
–Caucho Resin
• See http://www.caucho.com/