-
Presentation Logic and EJBs: Using Session
Beans to Help Bridge the Java-HTML Gap
-
Vol5 Issue 5 p.72
-
Listing 1:
-
- try {
-
Hashtable h1 = new Hashtable();
-
Hashtable h2 = new Hashtable();
-
// populate hashtable with data not in request
object
-
// that is necessary for processing
-
PageBean1 pb1 = new PageBean1(request, response,
h1);
-
pb1.processIncomingRequest();
-
// workflow to determine next page to display
-
// populate hashtable 2 with data needed for
processing
-
PageBean2 pb2 = new PageBean2(request, response,
h2);
-
pb2.processOutgoingResponse(request, response,
h2);
-
} catch (Exception e) {
-
// handle exceptions
-
}