Return-Path: Delivered-To: apmail-jakarta-struts-dev-archive@jakarta.apache.org Received: (qmail 15302 invoked by uid 500); 4 Jul 2001 15:00:21 -0000 Mailing-List: contact struts-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: struts-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list struts-dev@jakarta.apache.org Received: (qmail 15265 invoked from network); 4 Jul 2001 15:00:17 -0000 Received: from 213-193-186-50.adsl.easynet.be (HELO mail.hubmethods.com) (213.193.186.50) by h31.sny.collab.net with SMTP; 4 Jul 2001 15:00:17 -0000 Received: from ERIC ([127.0.0.1]) by mail.hubmethods.com (MERAK 2.10.340) with ESMTP id 6309528F for ; Wed, 04 Jul 2001 17:00:45 +0200 From: "Eric Fesler" To: Subject: RE: custom tag as attribute of another custom tag Date: Wed, 4 Jul 2001 17:00:45 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N I had the same problem. That's why I wrote a new link tag. This tag allows to define the parameters using nested tags. You can refer to my last posting in the thread if you want some more information. Eric > -----Message d'origine----- > De : Brennan.OShea@alltel.com [mailto:Brennan.OShea@alltel.com] > Envoy� : lundi 2 juillet 2001 16:08 > � : struts-dev@jakarta.apache.org > Objet : custom tag as attribute of another custom tag > > > Can someone tell me if it is possible to have a custom tag as an > ATTRIBUTE of another custom tag? I have been unable to find the answer > to this question. I am trying to use a within the "href" > attribute of in order to dynamically get the value of > "Param3" which is in bean "ampp". See below: > > "> > > > > The compile error I get is: > > "javax.servlet.jsp.JspException: You must specify a name attribute if > the property attribute is present" > > It seems to me that this would be an fairly common requirement of custom > tags. I could modify the tag to always evaluate the "href" > attribute to see if the tag is present and if so retrieve > that value -- but that doesn't sound very clean. I am trying to use > custom tags as much as possible and Java scriptlets as little as > possible. I could use the standard HTML instead of or > else continue to use and retrieve the value with Java > scriptlet -- neither of which is ideal. > > > Thanks for your help. > > Brennan O'Shea > > >