Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Create security with Struts !

 
Moniphal Say
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Anyone can tell me the clue or any information or any site about the security with Struts Framework.
I work on the web application using struts, I want to create the security to my project so that any user must be login before get into any pages of my project.
I found some pages can be accessed directly without log in if those pages do not contain the action.
Is there anyway to forbid this access direct?

Thanks for any help!
regards,
Moniphal
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WEB-INF folder
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can create a ServletFilter and map all requests to go through that Servlet and determine whether or not the requested resource is allowed to be viewed by the current user or not.
 
Moniphal Say
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks Gregg and Marc !
Gregg,I'll try as what you told me.

Thanks for your help!
Regards,
Moniphal
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic