• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Stripes and Front Controller

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I promise I will be the best, most loyal friend ever! All for this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic