Red Hat Application Server: JOnAS User Guide | ||
---|---|---|
Prev | Chapter 31. Integrating Tomcat and JOnAS (for JOnAS version < JOnAS 2.6) | Next |
Writing JSPs in place of a java servlet allows you to easily create web content that has both static and dynamic components. JSP offers all the dynamic capabilities of a Java Servlet but provides a more natural approach to creating static content. More details about using JSPs can be found on java.sun.com (http://java.sun.com/products/jsp/).
It could be a good idea to hide all the mechanisms to access EJBs from JSPs by using a proxy java bean, referred in the JSP by the special usebean tag. This technique is shown in the alarm example; just look at one of the .jsp files. A proxy java bean ViewProxy.java has been used to contain the glue necessary to access EJB.