and whoy don't use one filter? i am usin one filter; in my web.xml i have mapped all my jsp pages (*.jsp) to this filter, an the filter actions are made first and in the second fase the systems shows me the jsp page ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, August 06, 2003 12:59 AM Subject: Re: Front Controller Servlet
> The reason it is crashing is because you are forwarding to a JSP page, > however you have already taken over jsp processing in your servlet by > declaring that it should handle *.jsp, thus it forwards in a circle until > it runs out of stack space. > Try using another extension for your controller, such as .ktx as we use in > ours. This can then forward sucessfully to jsps! > > Should be: > <servlet-mapping> > <servlet-name>FCservlet</servlet-name> > <url-pattern>*.ktx</url-pattern> > </servlet-mapping> > > Then your links can be to index.ktx instead and it will got through ok. > Pete > > Kiss Technologies > > http://www.kisstechnologies.co.uk/ > > 4, Percy Street > London > W1T 1DF > > Phone numbers: > > Phone 020 7692 9922 > Fax 020 7692 9923 > > > > > "Sharon Cohen" <[EMAIL PROTECTED]> > 05/08/2003 13:42 > Please respond to "Tomcat Users List" > > To: <[EMAIL PROTECTED]> > cc: > 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]