Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp:forward alternatives  RSS feed

 
Tom Henricksen
Author
Ranch Hand
Posts: 144
5
Eclipse IDE jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a index.jsp that we use jsp:forward on. But this doesn't go through the filters we would like to apply. If I replace it with response.sendRedirect() it will apply filters but this is done on the client machine not the server, which I guessing is going to be slower. Is it possible to do something similar to jsp:forward and apply Filters?

Thanks,
Tom
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Servlet Spec 2.4, you can configure your filters to intercept forwards.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Download a copy of the servlet spec (link in my signature) and search for:
<dispatcher>FORWARD</dispatcher>
 
Tom Henricksen
Author
Ranch Hand
Posts: 144
5
Eclipse IDE jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are slated to go to Websphere 6 soon. So I will use that in the future. Is there anything in Servlet 2.3 that could do this?

Thanks,
Tom
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66208
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tom Henricksen:
We are slated to go to Websphere 6 soon.


My condolences.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!