The moose likes Other Application Frameworks and the fly likes Stripes and Front Controller Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Stripes and Front Controller" Watch "Stripes and Front Controller" New topic

Stripes and Front Controller

M Rama
Ranch Hand

Joined: Mar 04, 2005
Posts: 91
I am getting a hang of what stripes is all about. Having used none of the frameworks, this question might apply to something like struts as well.

We have a home grown MVC which has a servlet as the single point of entry into the application. This servlet not only decides what to do next, but also make sure the proper security is enforced and so on.

How would something like this implemented with stripes, as the form submission takes the control to the actionlistener and specific methods.
Frederic Daoud
Ranch Hand

Joined: May 22, 2008
Posts: 71
Stripes also works this way: when a request comes in, Stripes determines which Action Bean and which event handler method will handle the request.

For security, you can implement an interceptor, which is code that runs for every request at specific times in the Stripes lifecycle. This is easier to do than writing a servlet filter, and is tightly integrated within Stripes.

Frederic Daoud
Author, Stripes...and Java Web Development is Fun Again
Stripes book
I agree. Here's the link:
subject: Stripes and Front Controller
It's not a secret anymore!