Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stripes and Front Controller

 
M Rama
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic