On Thu, 28 Jun 2001 07:22, Nick Chalko wrote:
> Sorry,  yes it was in a <html:html><html:form>
you do mean <html:html></html:form>
                       ^^^
dont you?

>
>
>
> -----Original Message-----
> From: Bob Byron [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 27, 2001 2:14 PM
> To: [EMAIL PROTECTED]
> Subject: Re: null pointer error
>
>
>
> Is your text element contained within an <html:form>
> tag?
>
> --- Nick Chalko <[EMAIL PROTECTED]> wrote:
> > My jsp page with  the following tag
> > <html:text property="username" size="20"
> > maxlength="20" value="test"> inside
> > </html:txt>
> >
> > generates the following java code (from VAJ 3.5.3)
> >          do {
> >                         // end
> >
> > out.print(_jspx_html_data[4]);
> >                         // begin
> > [file="C:\\login.jsp";from=(16,0);to=(16,69)]
> >                             /* ----  html:text ----
> > */
> >
> > org.apache.struts.taglib.html.TextTag
> > _jspx_th_html_text_1 = new
> > org.apache.struts.taglib.html.TextTag();
> >
> > _jspx_th_html_text_1.setPageContext(pageContext);
>
> _jspx_th_html_text_1.setParent(_jspx_th_html_form_2);
>
>
> JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,
>
> > "maxlength","20",null,null, false);
>
> JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,
>
> > "property","username",null,null, false);
>
> JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,
>
> > "size","20",null,null, false);
>
> JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,
>
> > "value","test",null,null, false);
> >                             try {
> >                               int
> > _jspx_eval_html_text_1 =
> > _jspx_th_html_text_1.doStartTag();
> >                               if
> > (_jspx_eval_html_text_1 ==
> > Tag.EVAL_BODY_INCLUDE)
> >                               throw new
> > JspTagException("Since tag handler
> > class org.apache.struts.taglib.html.TextTag
> > implements BodyTag, it can't
> > return Tag.EVAL_BODY_INCLUDE");
> >                           if (_jspx_eval_html_text_1
> > != Tag.SKIP_BODY) {
> >                               try {
> >                               if
> > (_jspx_eval_html_text_1 !=
> > Tag.EVAL_BODY_INCLUDE) {
> > // the next nile sets out to null
> >                               out =
> > pageContext.pushBody();
> >
> > _jspx_th_html_text_1.setBodyContent((BodyContent)
> > out);
> >                           }
> >
> > _jspx_th_html_text_1.doInitBody();
> >                           do {
> >                           // end
> >
> > out.print(_jspx_html_data[5]);
> >                           // begin
> > [file="C:\\login.jsp";from=(25,0);to=(25,0)]
> >                           } while
> > (_jspx_th_html_text_1.doAfterBody() ==
> > BodyTag.EVAL_BODY_TAG);
> >                       } finally {
> >                           if (_jspx_eval_html_text_1
> > !=
> > Tag.EVAL_BODY_INCLUDE)
> >                               out =
> > pageContext.popBody();
> >                       }
> >                   }
> >                   if
> > (_jspx_th_html_text_1.doEndTag() == Tag.SKIP_PAGE)
> >                       return;
> >               } finally {
> >                   _jspx_th_html_text_1.release();
> >               }
> >
> >
> > The proplem is  pageContext.pushBody() returns null
> > which then fails the
> > next time something is written to out.
> > Any ideas.
> >
> > R,
> > Nick
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/

Reply via email to