• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on Sequence diagram

 
Vidyasagar Guduru
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

or

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
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First One seems to be write.

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

Filter is called before the controllers.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic