This week's giveaways are in the MongoDB and Jobs Discussion forums. We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line! See this thread and this one for details.
I'm writing a servlet which is to act as a facade for the web application. It needs to check some details and the forward to the requested uri.
I have declared the web.xml entry as
<servlet><description>This is the main Facade for the webapp</description> <display-name>Facade</display-name> <servlet-name>Facade</servlet-name> <servlet-class>com.myapp.web.servlets.Facade</servlet-class> <load-on-startup>2</load-on-startup> </servlet>
Now the problem is that as soon as i forward, the request comes back to the facade again. This results in a recursive looping.
Any insights how I can break that. I'm using Tomcat 6 & I can't have urls like *.do. No extensions. So its like I need every incoming request to come to my facade but not the ones that the facade itself forwards. I'm kind of stuck here Thanks
Joined: Aug 19, 2005
Please refrain from cross-posting to multiple JavaRanch forums.