Return-Path: Delivered-To: apmail-jakarta-struts-dev-archive@jakarta.apache.org Received: (qmail 32159 invoked by uid 500); 2 Jul 2001 14:44:40 -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 32097 invoked from network); 2 Jul 2001 14:44:38 -0000 Received: from emerald.alltel.com (198.133.100.6) by h31.sny.collab.net with SMTP; 2 Jul 2001 14:44:38 -0000 Received: from sbridge.lit.alltel.com (not verified[10.33.2.48]) by emerald.alltel.com with MailMarshal (4,1,0,0) id ; Mon, 02 Jul 2001 09:48:08 -0500 Date: Mon, 02 Jul 2001 9:45 -0500 From: "Brennan OShea" Subject: RE: custom tag as attribute of another custom tag Message-ID: <2001070209443392-172d5fb9@alltel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N True. That was the first thing I checked but the rtexprvalue is set to "true" already and it doesn't make any difference: link href false true Thanks again! -----Original Message----- From: struts-dev@jakarta.apache.org at INTERNET [mailto:IMCEACCMAIL-struts-dev+40jakarta+2Eapache+2Eorg+20at+20INTERNET@ alltel.com] Sent: Monday, July 02, 2001 9:27 AM To: OShea, Brennan; struts-dev@jakarta.apache.org at INTERNET Subject: RE: custom tag as attribute of another custom tag The spec says: rtexprvalue <=> scriptlets Wellington -----Original Message----- From: Taylor Cowan [mailto:tcowan@silverstream.com] Sent: Monday, July 02, 2001 4:27 PM To: struts-dev@jakarta.apache.org Subject: Re: custom tag as attribute of another custom tag I thought that you can use a custom tag as an attribute value for another tag, provided the attribute is designated within the TLD file as being true. Taylor ----- Original Message ----- From: "Lacerda, Wellington (AFIS)" To: Sent: Monday, July 02, 2001 9:07 AM Subject: RE: custom tag as attribute of another custom tag > No, a custom tag is not admissible as a tag attribute. > You can pass your attributes in a Map. > > Wellington > > -----Original Message----- > From: Brennan.OShea@alltel.com [mailto:Brennan.OShea@alltel.com] > Sent: Monday, July 02, 2001 4:08 PM > To: struts-dev@jakarta.apache.org > Subject: 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