aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "filter and struts" Watch "filter and struts" New topic
Author

filter and struts

Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 258
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: 258
dont bother,

thanks

fyi, i did this

if(condition is satisfied){
string path = httpRequest.getContextPath() + "/module/default.do"
httpResponse.sendRedirect(path);
}else
{
chain.do(servletRequest, servletResponse);
}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: filter and struts