Im not a JSP expert but I think you might be 'playing with fire' on that
one.
btw: Does it actually work or youve not tried it yet?

-----Original Message-----
From: Renato Romano [mailto:[EMAIL PROTECTED]
Sent: Friday, 16 January 2004 19: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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to