File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Question on Sequence diagram Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Question on Sequence diagram" Watch "Question on Sequence diagram" New topic

Question on Sequence diagram

Vidyasagar Guduru

Joined: Apr 17, 2006
Posts: 26
I have a controller srevlet and two filters. One filter is for input (Request) processing and other filter is for output (Response) processing.
From user point of view we are requesting a Servlet (from the URL) to access the system.
But technically which one is invoked first what should be the sequence

Request --> Filter --> Controller --> Request Handlers


Request --> Controller --> Filter --> Controller --> Request Handler

In my previous projects we used to load the filters from the servlets (no configuration in web.xml and those filters are just java classes).

But with filters in J2EE, if we configure the filters in web.xml what should be the correct order of invocation.

Please let me know.

(I just started designing sequence diagrams for the assignment)
Alok Sharma

Joined: May 17, 2004
Posts: 16
First One seems to be write.

Request --> Filter --> Controller --> Request Handlers

Filter is called before the controllers.
I agree. Here's the link:
subject: Question on Sequence diagram
It's not a secret anymore!