File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes filter and struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "filter and struts" Watch "filter and struts" New topic

filter and struts

Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 256
Im trying to implement a filter, which when a certain condition is satisfied, the filter forwards the control to another jsp/action than it was originally destined for.

I have put a dummy filter in and it works. I dont know how to call this jsp/action from here.

So the question is how do i call the new action from the filter.
Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 256
dont bother,


fyi, i did this

if(condition is satisfied){
string path = httpRequest.getContextPath() + "/module/"
{, servletResponse);
It is sorta covered in the JavaRanch Style Guide.
subject: filter and struts
Similar Threads
container managed security and tiles
url-pattern in filter mapping in struts2
Do I have to choose only one view solution in Struts2?
problem while giving a url pattern in filter mapping
calling a action class method from JSP in struts