my dog learned polymorphism*
The moose likes Servlets and the fly likes forward() does not work with jsp:include 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 » Java » Servlets
Bookmark "forward() does not work with jsp:include" Watch "forward() does not work with jsp:include" New topic
Author

forward() does not work with jsp:include

Mr. Fireball
Greenhorn

Joined: Oct 30, 2003
Posts: 1
Hi!
I'd like to do some stuff before each servlet request. So I wrote a servlet an mapped jsp to that servlet. At the end of the doGet() method I fetch the RequestDispatcher for jsp (defined in Tomcat web.xml) and forward it.

Everythig works fine with static includes like <% include ...>, but not with dynamic includes. Either i get infinite loops or the page aborts.

Any ideas?
Thank you in advance,
Fireball
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: forward() does not work with jsp:include