That's because you're trying to implement as front controller **servlet** as a JSP ? Map your controller servlet to /foo (or anything *other* than *.jsp) then requests could all go to the controller servlet, and your servlet could send it off to any *.jsp page without invoking itself infinitely.
> -----Original Message----- > From: Sharon Cohen [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 05, 2003 7:43 AM > To: [EMAIL PROTECTED] > Subject: Front Controller Servlet > > > I am trying to build FrontController servlet for a web site > on Tomcat 4 , after long time of changes on the web.xml file > , I wasn't able to achieve this pattern, the web.xml portion is : > > <servlet-mapping> > <servlet-name>FCservlet</servlet-name> > <url-pattern>*.jsp</url-pattern> > </servlet-mapping> > > my problem start when the FrontController servlet needs to > forward the request to other jsp pages and when he uses the > Forward method , the tomcat activate my FrontController again > , and after a while I get : StackOverflowError . > > Thanks for any help > Sharon > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
