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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
It is sorta covered in the JavaRanch Style Guide.
subject: Question on Sequence diagram
Similar Threads
Front Controller vs Application Controller
custom tag help
filter execution sequence question
Filter Sequence issue
Filter or ActionServlet