Servlet, JSP Architecture

Posted on 2004-11-22
Last Modified: 2013-11-24
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?

Question by:platinumbay
    LVL 13

    Accepted Solution

    LVL 6

    Author Comment

    Even though we are too far into the project to switch to struts, upon review I feel your answer would be the correct one in a perfect world.  Thanks!
    LVL 13

    Expert Comment

    thanks for accepting and welcome :-)

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
    Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
    Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now