Why don't you just extend one that already supports most of what you want to do?
-- James Mitchell Software Developer/Struts Evangelist http://struts.sourceforge.net/struts-atlanta/ ----- Original Message ----- From: "Renato Romano" <[EMAIL PROTECTED]> To: "'Noureddine Bekrar'" <[EMAIL PROTECTED]>; "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Friday, March 14, 2003 10:10 AM Subject: RE: Tag Extension You mean something like: ?? Public class SelectPlusButton extends TagSupport { doStartTag(...) { // Write out a table definition... SelectTag st = new SelectTag(); st.doStartTag(..); ... ButtonTag bt = new ButtonTag(); bt.doStartTag(); .... } } ____________________________________ Renato Romano Sistemi e Telematica S.p.A. Calata Grazie - Vial Al Molo Giano 16127 - GENOVA e-mail: [EMAIL PROTECTED] Tel.: 010 2712603 _____________________________________ -----Original Message----- From: Noureddine Bekrar [mailto:[EMAIL PROTECTED] Sent: venerd� 14 marzo 2003 15.52 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Tag Extension i think to do that , you must write a new tag java class (extends "TagSupport" class)and in this class you will use a java code of the 2 other classes ( select and option). and after this you will declare your new tag in the tld file. ----- Original Message ----- From: "Renato Romano" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Friday, March 14, 2003 3:24 PM Subject: Tag Extension > What is the standard way to "extend" a struts tag, or generally > whatever jsp tag ? Do I have to extend the Java class Implementing > that tag ? To be more clear: in my application I have to often use a > select/options struts tag, together with a button, so it would be > useful in the jsp page to only use one construct. Any ideas ? > Thanks a lot. > > Renato > > P.S.: I know, this is not really a struts question, but I think it > would be of interest ... > > ____________________________________ > Renato Romano > Sistemi e Telematica S.p.A. > Calata Grazie - Vial Al Molo Giano > 16127 - GENOVA > > e-mail: [EMAIL PROTECTED] > Tel.: 010 2712603 > _____________________________________ > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

