File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Validation on each Request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validation on each Request" Watch "Validation on each Request" New topic

Validation on each Request

Amitt Thakkarr

Joined: Apr 25, 2011
Posts: 7

If we need to implement common validation(like validate the ROLE of user or credentials of user) on each request, where we should place such code in Struts.

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33119

The request processor or servlet. Or in a servlet filter.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Validation on each Request
It's not a secret anymore!