Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 2465 invoked from network); 6 May 2005 14:12:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 May 2005 14:12:32 -0000 Received: (qmail 1479 invoked by uid 500); 6 May 2005 14:13:59 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 1401 invoked by uid 500); 6 May 2005 14:13:57 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 1048 invoked by uid 99); 6 May 2005 14:13:50 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from proxy.qas.com (HELO MAIL2.qas.com) (195.172.82.234) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 06 May 2005 07:13:49 -0700 Received: from orion.qas.com (orion.qas.com) by MAIL2.qas.com (Content Technologies SMTPRS 4.3.17) with ESMTP id for ; Fri, 6 May 2005 15:10:52 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Infinite loop with action mappings Date: Fri, 6 May 2005 15:10:52 +0100 Message-ID: <5684A7E6FB10504393A2806C1F4C021003E0F015@orion.qas.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Infinite loop with action mappings Thread-Index: AcVSRWlTd2vwllFjS/+QGRDVbjzxbw== From: "Allistair Crossley" To: X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I have a catch-all servlet mapping to push all requests to my Struts contro= ller in web.xml; controller /* I have 2 action mappings; When I request http://www.domain.com/view Struts finds the action mapping a= nd delegates a forward to /views/layout.jsp. However, /views/layout.jsp is = being picked up by the /* servlet mapping in web.xml and being routed back = to Struts. This time because there is no action mapping for /views/layout.j= sp it goes to the wildcard action mapping and that action's tile view is re= turned. This causes an infinite loop in Struts. Is this more to do with the servlet mapping, or is there something I can in= struct Struts to do with regard to getting that JSP out to the response wit= hout causing another call to the controller? I need every request to go into the struts framework, but I also need my JS= Ps to work inside struts which is not happening right now due to this infin= ite loop. Regards, Allistair 2005-05-06 14:48:58,424 - DEBUG (org.apache.struts.action.RequestProcessor:= 174) - Processing a 'GET' for path '/view' 2005-05-06 14:48:58,424 - DEBUG (org.apache.struts.action.RequestProcessor:= 992) - Delegating via forward to '/views/layout.jsp' 2005-05-06 14:48:58,424 - DEBUG (org.apache.catalina.core.ApplicationDispat= cher:143) - servletPath=3D, pathInfo=3D/views/layout.jsp, queryString=3Dnul= l, name=3Dnull 2005-05-06 14:48:58,424 - DEBUG (org.apache.catalina.core.ApplicationDispat= cher:370) - Path Based Forward 2005-05-06 14:48:58,424 - DEBUG (org.apache.struts.util.ModuleUtils:169) - = Get module name for path=20 2005-05-06 14:48:58,424 - DEBUG (org.apache.struts.util.ModuleUtils:193) - = Module name found: default 2005-05-06 14:48:58,424 - DEBUG (org.apache.struts.action.RequestProcessor:= 174) - Processing a 'GET' for path '/views/layout.jsp' 2005-05-06 14:48:58,424 - DEBUG (org.apache.struts.config.ActionConfigMatch= er:102) - Attempting to match '/views/layout.jsp' to a wildcard pattern 2005-05-06 14:48:58,424 - DEBUG (org.apache.struts.action.RequestProcessor:= 257) - Looking for Action instance for class com.qas.newmedia.internet.cor= e.page.action.PageAction 2005-05-06 14:48:58,424 - DEBUG (org.apache.struts.action.RequestProcessor:= 271) - Returning existing Action instance =20 ------------------------------------------------------- QAS Ltd. Developers of QuickAddress Software www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 ------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org