thanks.  that worked.

> -----Original Message-----
> From: Cedric Dumoulin [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, September 26, 2001 11:59 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: template taglib example
> 
> 
>   Try to add flush="true" in each of your <template:get ... flush="true" >
> tags.
> This should solve the problem (coming from your web container).
> 
>     Cedric
> 
> "Vaillancourt, Richard" wrote:
> 
> > Thanks Kevin.
> >
> > See enclosed.  Extremely simple template example.
> >
> > The taglibs seem to work in that the individual .jsps are located and
> > rendered as html, it's just that the order of execution seems off.
> >
> > The individual pieces of html are at the top, and the template is on the
> > bottom?
> >
> > Is this it?
> >
> > I modified the following code per some instructions, I was having other
> > issues before I made these changes (couldn't get to linked pages in
> > strutsexample app)
> >
> > org.apache.struts.taglib.html.FormTag.doEndTag
> >
> > thanks
> >
> > -Rick
> >
> >  /**
> >      * Render the end of this form.
> >      *
> >      * @exception JspException if a JSP exception has occurred
> >      */
> >     public int doEndTag() throws JspException {
> >
> >         // Remove the page scope attributes we created
> > /*      pageContext.removeAttribute(Constants.BEAN_KEY,
> >                                     PageContext.REQUEST_SCOPE);
> > COMMENTED OUT!!!!
> >         pageContext.removeAttribute(Constants.FORM_KEY,
> >                                     PageContext.REQUEST_SCOPE);
> > */
> >         // Remove the page scope attributes we created
> >         pageContext.removeAttribute(Constants.BEAN_KEY);
> >         pageContext.removeAttribute(Constants.FORM_KEY);
> >
> >         // Render a tag representing the end of our current form
> >         StringBuffer results = new StringBuffer("</form>");
> >
> >         // Render JavaScript to set the input focus if required
> >         if (focus != null) {
> >             String tempFocus = focus;
> >             StringBuffer refocus = new StringBuffer("[");
> >             if (tempFocus.indexOf("[") > 0) {
> >                 StringTokenizer st = new StringTokenizer(tempFocus,
> "[");
> >                 if (st.countTokens() == 2) {
> >                     tempFocus = st.nextToken();
> >                     refocus.append(st.nextToken());
> >                 }
> >             }
> >             results.append("\r\n");
> >             results.append("<script language=\"JavaScript\"");
> >             results.append(" type=\"text/javascript\">\r\n");
> >             results.append("  <!--\r\n");
> >             results.append("    document.forms[\"");
> >             results.append(name);
> >             results.append("\"].elements[\"");
> >             results.append(tempFocus);
> >             results.append("\"]");
> >             if (refocus.length() > 1) {
> >                 results.append(refocus.toString());
> >             }
> >             results.append(".focus()\r\n");
> >             results.append("  // -->\r\n");
> >             results.append("</script>\r\n");
> >         }
> >
> >         // Print this value to our output writer
> >         JspWriter writer = pageContext.getOut();
> >         try {
> >             writer.print(results.toString());
> >         } catch (IOException e) {
> >             throw new JspException
> >                 (messages.getMessage("common.io", e.toString()));
> >         }
> >
> >         // Continue processing this page
> >         return (EVAL_PAGE);
> >
> >     }
> >
> > >        <<templateExample.txt>>
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > > Sent: Tuesday, September 25, 2001 7:22 PM
> > > To:
> > > Cc:   Vaillancourt, Richard
> > > Subject:      Re: template taglib example
> > >
> > >
> > >
> **************************************************************************
> > >
> > > Note: This e-mail is subject to the disclaimer contained at the bottom
> > > of this message.
> > >
> > >
> **************************************************************************
> > > :
> > >
> > > Not sure your template look like, but you may try to use flush="true"
> in
> > > your template.
> > >
> > > There is a broken JSP container in Websphere 3.5 not sure 4.0 fixed it
> or
> > > not.
> > >
> > > Regards
> > > Kelvin
> > >
> > >
> > > :
> > >
> **************************************************************************
> > > ******
> > >
> > > The information transmitted in this message and attachments (if any)
> > > is intended only for the person or entity to which it is addressed.
> > > The message may contain confidential and/or privileged material.
> > > Any review, retransmission, dissemination or other use of, or taking
> > > of any action in reliance upon this information, by persons or
> entities
> > > other than the intended recipient is prohibited.
> > >
> > > If you have received this in error, please contact the sender and
> delete
> > > this
> > > e-mail and associated material from any computer.
> > >
> > > The intended recipient of this e-mail may only use, reproduce,
> disclose or
> > > distribute the information contained in this e-mail and any attached
> > > files,
> > > with the permission of CGU Insurance.
> > >
> > > This message has been scanned for viruses and cleared by MailMarshal.
> > >
> > > ********************************************************************
> > > :
> >
> >
> ------------------------------------------------------------------------
> >
> >    templateExample.txtName: templateExample.txt
> >                       Type: Plain Text (text/plain)

Reply via email to