highedweb3.ppt

Download Report

Transcript highedweb3.ppt

Rensselaer Luwak
The J2EE Framework
Java Technologies
External
Application
1
Rensselaer Luwak
J2EE Container
Deploying Applications
• J2EE server specific
– Some provide GUI tools to build and deploy
applications (WebSphere, BEA WebLogic)
– Some require editing XML configuration files (JBoss)
• JBoss
– Drop .ear archive files into a “deploy” directory
• Hot deploy & redeploy
2
Rensselaer Luwak
Servlets
Servlets
• Used for web applications
• Extend functionality of an HTTP server
• Replace CGIs
• Filters are part of the spec
• Consist of get and post methods for requests
3
Rensselaer Luwak
Servlets: JSP
Java Server Pages
• Interactive web pages
– <jsp:include page=“/docs/footer.html”/>
– <h2><bean:write property="pageTitle“ name="swfForm"/></h2>
– <% String tempUrl = “http://www.rpi.edu”; %>
• Extension of Servlet technology
• Similar to ASP
• Standard Tag Libraries available
– Struts:
• MVC framework
• Industry standard
• Extensible
– Can define and implement tag libraries
– Used by numerous vendors, including ColdFusion MX
4
Rensselaer Luwak
Servlets: Filters
Filters
• Transform HTTP requests and responses
servlet
filter
request
request
response
response
5
Rensselaer Luwak
Servlets: Filters
Filter Example: The Kiosk
browser
Kiosk
XSLT
request
stylesheet
XHTML
XML
response
6
Rensselaer Luwak
Servlets
JSP/XML/XSLT
Example: The Kiosk
Session
Beans
Entity
Beans
article
client view
get article
restore
category
admin view
return
utility
7