I cannot use this approach, since my own tag must define a series of links based on the "state" of the object it is processing. I detail my needs also to get your help on my way of proceeding in such a situation:
I have a page several pages in fact) showing a table of "results" (objects retrieved from the DB). A tipical handling of this is a <logic:iterate> tag that shows each object's properties inside a <tr> element. One of the column I need to show is an "Available Actions" column, which should show an icon with a link to the "action". This set of actions depends generally on the "state" of the object; for example one object may be "deletable" while another would not. So I thought to handle this behavior (on the web tier) by constructing this tag that inspect the object state and generates an img and a link element allowing the user to select only appropriate actions. The code I inserted works fine, but as said by Andrew I feel like I'm playing with fire... So I would have a confirmation that this way of proceeding is quite correct!! Thanks ____________________________________ 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: Paul McCulloch [mailto:[EMAIL PROTECTED] Sent: venerd� 16 gennaio 2004 13.06 To: 'Struts Users Mailing List' Subject: RE: Ling Tag client The approach I use when I want to leverage another tags functionality is to nest the tag I want to use inside my own tag body. My own tag then processes the result of the other tag. e.g. <mytags:sometag> <html:link/> </mytags:sometag> I don't know if this will help in your situation or not. Paul > -----Original Message----- > From: Renato Romano [mailto:[EMAIL PROTECTED] > Sent: 16 January 2004 11:37 > To: 'Struts Users Mailing List' > Subject: Ling Tag client > > > I'm trying to define a Tag that does some work, and defines a link to > some resource. To define this link I was trying to use the struts > <html:link> tag in this way: > > LinkTag linkTag = new LinkTag(); > linkTag.setPageContext(pageContext); > linkTag.setHref("http://myhost/mypage"); > linkTag.doStartTag(); > try > { > pageContext.getOut().print("Go to myHost"); > } > catch (IOException e) > { > e.printStackTrace(); > return SKIP_PAGE; > } > linkTag.doEndTag(); > return SKIP_BODY; > > Is this the correct way to utilize an external Tag definition ?? > Thanks > > ____________________________________ > 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] > ************************************** Axios Email Confidentiality Footer Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message. WARNING: While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused. --------------------------------------------------------------------- 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]

