Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 91967 invoked from network); 2 Sep 2009 19:15:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Sep 2009 19:15:18 -0000 Received: (qmail 26441 invoked by uid 500); 2 Sep 2009 19:15:14 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 26406 invoked by uid 500); 2 Sep 2009 19:15:14 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 26372 invoked by uid 99); 2 Sep 2009 19:15:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Sep 2009 19:15:14 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Musomesa@aol.com designates 205.188.169.203 as permitted sender) Received: from [205.188.169.203] (HELO imr-da06.mx.aol.com) (205.188.169.203) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Sep 2009 19:15:03 +0000 Received: from imo-ma04.mx.aol.com (imo-ma04.mx.aol.com [64.12.78.139]) by imr-da06.mx.aol.com (8.14.1/8.14.1) with ESMTP id n82JEebh001962 for ; Wed, 2 Sep 2009 15:14:40 -0400 Received: from Musomesa@aol.com by imo-ma04.mx.aol.com (mail_out_v42.5.) id t.d4a.56613662 (37047) for ; Wed, 2 Sep 2009 15:14:36 -0400 (EDT) Received: from smtprly-ma03.mx.aol.com (smtprly-ma03.mx.aol.com [64.12.207.142]) by cia-db03.mx.aol.com (v125.7) with ESMTP id MAILCIADB035-5c554a9ec4152e7; Wed, 02 Sep 2009 15:14:31 -0400 Received: from webmail-m012 (webmail-m012.sim.aol.com [64.12.101.96]) by smtprly-ma03.mx.aol.com (v125.7) with ESMTP id MAILSMTPRLYMA033-5c554a9ec4152e7; Wed, 02 Sep 2009 15:14:29 -0400 To: user@struts.apache.org Subject: Re: Action Tag java.lang.StackOverflowError Date: Wed, 02 Sep 2009 15:14:28 -0400 X-AOL-IP: 70.153.131.107 In-Reply-To: X-MB-Message-Source: WebUI MIME-Version: 1.0 From: musomesa@aol.com X-MB-Message-Type: User Content-Type: multipart/alternative; boundary="--------MB_8CBFA18BA30DF45_4550_ED74_webmail-m012.sysops.aol.com" X-Mailer: AOL Webmail 44148-STANDARD Received: from 70.153.131.107 by webmail-m012.sysops.aol.com (64.12.101.96) with HTTP (WebMailUI); Wed, 02 Sep 2009 15:14:28 -0400 Message-Id: <8CBFA18B8E860FB-4550-7567@webmail-m012.sysops.aol.com> X-AOL-SENDER: Musomesa@aol.com X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Flag: NO ----------MB_8CBFA18BA30DF45_4550_ED74_webmail-m012.sysops.aol.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" =20 1) Create a file called snippet.jsp with just: =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0

=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 And this line is= from the target action. =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0

--------------------------------- =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=20 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=20 2) Change result in your struts.xml to read =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /snippet.jsp =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 ----------------------------------------------- 3) Just a comment: you are overriding the execute() method with the same= functionality you are inheriting from ActionSupport so your TargetAction can be abbreviated= to: package manning.chapterSix; import com.opensymphony.xwork2.ActionSupport; public class TargetAction extends ActionSupport {} -------------------------------------------------- 4) index.jsp stays the same: =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 Action Tag =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0

=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 Action Tag =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0

=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0

=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 This line is befo= re the ActionTag invokes the secondary action. =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0

=C2=A0=C2=A0=C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =20 Chris =20 =20 -----Original Message----- From: BrianNicely@aspca.org To: Struts Users Mailing List Sent: Wed, Sep 2, 2009 2:14 pm Subject: Re: Action Tag java.lang.StackOverflowError Is there an example you could point me to (that actually works) or help me= =20 get my example working? =20 =20 Brian E. Nicely Programmer / Analyst Knowledge Management =20 ASPCA=C2=AE 1717 South Philo Road, Suite 36 Urbana, IL 61802 =20 briannicely@aspca.org =20 P: 217-337-9700, 9799 F: 217-337-0599 www.aspca.org =20 The information contained in this e-mail, and any attachments hereto, is= =20 from The American Society for the Prevention of Cruelty to Animals=C2=AE= (ASPCA =C2=AE) and is intended only for use by the addressee(s) named herein and= may=20 contain legally privileged and/or confidential information. If you are not= =20 the intended recipient of this e-mail, you are hereby notified that any=20 dissemination, distribution, copying or use of the contents of this=20 e-mail, and any attachments hereto, is strictly prohibited. If you have=20 received this e-mail in error, please immediately notify me by reply email= =20 and permanently delete the original and any copy of this e-mail and any=20 printout thereof. =20 ----------MB_8CBFA18BA30DF45_4550_ED74_webmail-m012.sysops.aol.com--