This is what I do in my doStartTag() and it works!

  // Write the output and exit.
      try{
          JspWriter out = pageContext.getOut();
          out.write(htmlOut);
      }catch(Exception ne) {
          return SKIP_BODY;
      }

and htmlOut is a string, ex:

String htmlOut = "Hello";

cg

----- Original Message -----
From: "Schneider, Eric" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, August 27, 2002 9:22 AM
Subject: RE: Outputting from a taglib in struts


> I haven't done it in a while, but isn't it something like:
>
> [in your doStartTag() method]
>
> JspWriter out = pageContext.getOut();
> out.print("Hello "+name+"!");
>
> Cheers,
> e.
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 27, 2002 10:23 AM
> > To: [EMAIL PROTECTED]
> > Subject: Outputting from a taglib in struts
> >
> >
> >
> > I am playing with making a taglib and having the biggest
> > issues with it.
> >
> > I am trying to output and have been trying to use:
> >
> >  pageContext.getOut().write("Hello "+name+"!");
> >
> > To write to the output.  This only returns [Exception
> > in:/WEB-INF/jsp/twizard/mainmenu.jsp] null
> >
> > I am following a tutorial, sort-of...  Does struts require anything
> > special?  I would think not...  (I am also using tiles if
> > that matters)
> >
> > Thanks
> >
> > PS. If anyone can recommend a tutorial I would be greatful...
> >
> >
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
>
>
> **********************************************************************
> This message, including any attachments, contains confidential information
intended for a specific individual and purpose, and is protected by law.  If
you are not the intended recipient, please contact sender immediately by
reply e-mail and destroy all copies.  You are hereby notified that any
disclosure, copying, or distribution of this message, or the taking of any
action based on it, is strictly prohibited.
> TIAA-CREF
> **********************************************************************
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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

Reply via email to