Create a custom RequestProcessor that extends the Struts RequestProcessor. In the custom class override the processForwardConfig method to do whatever you want.

Emmanouil Batsis wrote:

Bill Siggelkow wrote:

You can use container-managed security to restrict access to URLs -- IIRC direct requests (or redirects) to the resources is restricted, but forwards are not.


True, as Michael also suggests (WEB-INF is by default protected by the container). However, I need some more flexibility without having to move pages between folders or play with container config files.

So I guess my question should be rephrased as "looking for something in the Struts APIs to check if the request has been forwarded or not", as all requests go through struts and perhaps there could be something in there for this; J2EE-based solutions are known but i'm looking for something better.

Thanks,

Manos


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



Reply via email to