The J2EE Framework Java Technologies External Application
Deploying Applications 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
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
Java Server Pages Servlets: JSP 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
Filters Transform HTTP requests and responses Servlets: Filters filter
Filter Example: The Kiosk Servlets: Filters Filter Example: The Kiosk browser XSLT stylesheet Kiosk request XML XHTML response
Servlets Session Beans Entity Beans Example: The Kiosk Servlets JSP/XML/XSLT Session Beans Entity Beans article get article client view restore utility category admin view return