tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dionisio Ruiz de Zarate" <dioni...@tinieblas.com>
Subject Re: Front Controller Servlet
Date Tue, 05 Aug 2003 23:31:27 GMT
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: <pete.storey@kisstechnologies.co.uk>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
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" <sharon669@hotmail.com>
> 05/08/2003 13:42
> Please respond to "Tomcat Users List"
>
>         To:     <tomcat-user@jakarta.apache.org>
>         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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>



Mime
View raw message