Servlet, JSP Architecture
Posted on 2004-11-22
Currently, our J2EE web app uses Serlvets and JSP, with more behind the scenes. Basically, the web request goes to the Servlet, which passes the Request, Response the the JSP, which uses a TabLib to render the data (XML,XSL).
The problem is that now we want to group serlvets together on a page, so in essence multiple servlets would be responsible for the content of the page.
Our workaround it to create master servlets which get all the content for the page, and then use Jspf includes with Taglibs to draw their part of it. The pain of this is that everytime we need to move a bucket, we need to recreate the servlet with the new data.
Is there a way to have Jspf files call Servlets so the request goes to the master Jsp page, it calls the Jspf's, and they call their servlet to do the processing? Is it possible to implement J2EE security for this method?