Hi
I am using stuts 1.1 and a filter that traps all requests of type *.jsp. So basically i want to stop any access to *.jsp from the client. However, when i use struts and do a
forward internally from the action class to a .jsp, this filter is getting invoked...which i thought shudnt happen!
so what is the workaround? is there a way to check that the request is a forwarded request and not from client?
Some one told me that servlet 2.3 does not clarify what requests to filter...which is fixed in 2.4. So this being the case is there a workaround...can i check in my filter whether this request is from the client or internal forward?
thanks
-ram
-
Struts and Filter (1 messages)
- Posted by: sriram chandra
- Posted on: June 21 2004 22:59 EDT
Threaded Messages (1)
- REDIRECT = FALSE by Matthew Wilson on June 22 2004 07:17 EDT
-
REDIRECT = FALSE[ Go to top ]
- Posted by: Matthew Wilson
- Posted on: June 22 2004 07:17 EDT
- in response to sriram chandra
Did you make sure you have redirect=false in your struts-config.xml?
I acomplish what you are trying to do by placing the JSP's inside the WEB-INF directory.