Re: Struts138 - Restrict Access to my actions?

2007-09-19 Thread Paul Benedict
Thomas,

But you're using Struts 1.3.8 right? The interceptor solution is for Struts
2.

I once thought of adding an internal attribute to my Struts actions. If
the action had this property set through set-property, then the Controller
would not allow the action to be executed directly (i.e., through the
address bar). The only way it could be accessed was if the action was
internally forwarded or included from a request.

Does this sound similar to you?

Paul


Re: Struts138 - Restrict Access to my actions?

2007-09-18 Thread Balaji J

Hi Tom,

Interceptor is the best solution for this kind of problem.

Pass all your action requests to your custom interceptor that should
validate your requests and redirect to respective actions.

Regards,
Balaji


nomax wrote:
 
 Hi,
  
 I want to restrict access to my actions - meaning: I dont want users to
 be able to type them in the adressbar and jump around in my page as they
 like to. 
 It kinda makes my navigation effords senseless.
 Ive try to write a servlet-filter which checks for actions beginning
 with secure  - but It filters out every single of those actions -
 regardless if I call it from one of my classes or directly from the
 adress-bar
 Id love another approach - or some corrections for my filter 
  
 thanks guys
  
 regards, Tom
 
  
 
  
 
 

-- 
View this message in context: 
http://www.nabble.com/Struts138---Restrict-Access-to-my-actions--tf4472422.html#a12752255
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]