Return-Path: Delivered-To: apmail-jakarta-taglibs-dev-archive@jakarta.apache.org Received: (qmail 50744 invoked by uid 500); 27 Apr 2001 09:41:28 -0000 Mailing-List: contact taglibs-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: taglibs-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list taglibs-dev@jakarta.apache.org Received: (qmail 50735 invoked from network); 27 Apr 2001 09:41:27 -0000 Received: from xxl-gw3.abovenet.de (HELO www.ambulanceboerse.de) (216.200.115.40) by h31.sny.collab.net with SMTP; 27 Apr 2001 09:41:27 -0000 Received: from t107 (telig.com [212.185.126.250]) by www.ambulanceboerse.de (8.9.3/8.9.3) with SMTP id LAA06197 for ; Fri, 27 Apr 2001 11:41:34 +0200 From: "Stefan Riegel" To: Subject: AW: A bit of newbie question Date: Fri, 27 Apr 2001 11:37:35 +0200 Message-ID: <000801c0cefd$b182a1f0$6b72a8c0@telig.local> 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 CWS, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 In-Reply-To: Importance: Normal X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hello, Peter Giannopoulos, funny, but I did ask a similar question almost the same time :-) Peter Alfors confirmed, that their is no way to use Custom Tags as attribute values in Custom Tags. Now we have some design choices: 1. Use scripting: This solution is the most flexible and less complicated but the users of Your tags need to know Java coding. 2. Use some approaches similar to James Strachans proposal: It can be useful in some situations but the "othertag" has to know about, that it is beeing used as an attribute. 3. Use a nested attribute tag similar to this: This approach needs also some special coding especially if you want to permit both possibilities to set the attrib2 value (as common attribute with the value supplied as a string or attribute tag with a value supplied as another tag). The use of such tags are also very verbos. 4. ... More ideas? ... I'am not very happy with none of this possibilities but JSP Custom Tags are still very usefull. For me it is the best on the road :-) Regards Stefan Riegel > -----Urspr�ngliche Nachricht----- > Von: Peter Giannopoulos [mailto:Peter.GIANNOPOULOS@gemplus.com] > Gesendet: Donnerstag, 26. April 2001 20:50 > An: taglibs-dev@jakarta.apache.org > Betreff: A bit of newbie question > > > Hello all, > > I am new to the taglib development world so please bare with me, if I > sometimes seem to ask silly questions. :-) > > That being said, I would love to know if there is a way to > use a custom tag > within another custom tag (as an attribute value) > > For example something like (please let me know if I'm being > stupid here...is > there a better way?) > > " /> > OR > > " /> > ----> I really would rather avoid any code between <% and > %> on the jsp > page. > > Basically the page will invoke itself and every time it does > it passes to > itself a incremented counter. Based on the value of the > counter the /> tag should modify it's behaviour. > > Any suggestions? Or maybe even pointers to documentation that > deals with > this kind of thing? Is it even reasonable want to do this? > > > > Thanks, > > --------------------------------------------------------- > Peter Giannopoulos, Software Developer > Gemplus Software, Advanced Projects Group > > Phone: +15147322434 > Fax: +15147322401 > Gemplus Card International, Http://www.gemplus.fr > > > > I hear and I forget, > I see and I remember, > I do and I understand. > > > > ----------------------------------------------------------- >