Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

filter and struts

 
Pranav Sharma
Ranch Hand
Posts: 258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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);
}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic