This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am trying to implement the Front Controller pattern for all requests through my application. In web.xml:
This is basically just what Sun has on their site for implementing this pattern. And in the FrontController servlet I am trying to forward to jsp pages using the RequestDispatcher.forward method. I have tried it with both the ServletRequest and ServletContext objects. When I call a page it overflows the stack because the servlet keeps calling itself. What am I doing wrong? Thanks, Jim [ January 17, 2002: Message edited by: Jim Hall ]
you wrote <url-pattern>*</url-pattern> then all requsts are gonna send to FC servlet include your *.jsp forwarding request. one possible way to solve this problem is, change the url-pattern in web.xml(ex. *.go). then *.go url will be requested to FC, and inside FC, forwarding to *.jsp will work okay.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com