so if you call requestDispatcher.forward(request,response) or requestDispatcher.include(request,response), the filter doesn't get executed again ?


That is strange, since I though there was a pattern to stop the second dispatch from executing the filter again.

Cameron.

Hani Suleiman wrote:

Due to the incompetence on the part of certain vendors on the 2.3 expert group, they couldn't manage to have filters invoked through action dispatchers performing well, so the 2.3 spec says a filter should only be invoked once per request,

On Dec 18, 2003, at 9:06 AM, Cameron Braid wrote:

Ok.. I didn't realise that.

One thing that you could do is create a DirectAccessBlockingFilter ;)

The name says it all ;)

You will have to configure this filter to be 'once per request' so that it only blocks access during the first request dispatch, allowing subsequent dispatches (from the webwork servlet dispatcher) to access the JSP pages.

You can then just map this filter to the extensions you want to protect.

Cameron



BOGAERT Mathias wrote:

The approach by Rickard doesn't work on some application servers.
So do a test before you decide to move everything.

Cheers,
Mathias

-----Original Message-----
From: Rickard Öberg [mailto:[EMAIL PROTECTED]
Sent: donderdag 18 december 2003 14:55
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] How to prevent access to the index.jsp and other
*.jsp files



remigijus wrote:



Hi


How can I prevent client form ditect access to any jsp page. I want
all
pages to be accessed only after action action process.

Put them under /WEB-INF/ e.g. /WEB-INF/myapp/someform.jsp

/Rickard




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Opensymphony-webwork mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork






--
Any damn fool can write code that a computer can understand...
The trick is to write code that humans can understand.
[Martin Fowler http://www.martinfowler.com/distributedComputing/refactoring.pdf]
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork



------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork



--
Any damn fool can write code that a computer can understand...
The trick is to write code that humans can understand.
[Martin Fowler http://www.martinfowler.com/distributedComputing/refactoring.pdf]





-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to