struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jannik Nørgaard Steen ...@digitalzone.dk>
Subject Re: Exception using Struts and Resin1.1.3 in methodbodyContent.getString() in doEndTag() method
Date Thu, 21 Sep 2000 17:40:36 GMT
Thank you for your answers. I've tried a setup with Resin 1.1.4 and it
works..:)

----- Original Message -----
From: "Craig R. McClanahan" <Craig.McClanahan@eng.sun.com>
To: <struts-user@jakarta.apache.org>
Sent: Thursday, September 21, 2000 6:58 PM
Subject: Re: Exception using Struts and Resin1.1.3 in
methodbodyContent.getString() in doEndTag() method


> Martin Cooper wrote:
>
> > The bodyContent question is one that is awaiting resolution by the JSP
spec
> > folks. I believe they're aware of the issue, but have not come up with a
> > resolution yet. Craig may know more about the status of this.
> >
>
> It is still on the list.
>
> In the mean time, as tags are ported to the new "split up" tag libraries,
we
> should migrate references to body content from the doEndTag() method to
the
> doAfterBody() method.  I already did that on the new "bean" tag library
tags.
> The form tag library is up next.
>
> >
> > In the meantime, if you can switch to a newer version of Resin (1.1.4 or
> > 1.2.b2), you can set a flag to work around the problem. Try adding <jsp
> > end-tag-hack='true'/> to your resin.conf.
> >
>
> Well, you can tell by the name what the Resin designers think the right
answer
> is :-).
>
> >
> > --
> > Martin Cooper
> > Tumbleweed Communications
> >
>
> Craig
>
>
> >
> > ----- Original Message -----
> > From: "Jannik Nørgaard Steen" <js@digitalzone.dk>
> > To: <struts-user@jakarta.apache.org>
> > Sent: Thursday, September 21, 2000 5:01 AM
> > Subject: Exception using Struts and Resin1.1.3 in method
> > bodyContent.getString() in doEndTag() method
> >
> > > Hi,
> > >
> > > I get an null pointer exception when using for example <struts:submit>
in
> > my
> > > JSP's.
> > > I've looked in the submit tag handler code and noticed that it calls
> > > bodyContent.getString()
> > > in the doEndTag() method, which obviously causes the exception (when
used
> > > with Resin).
> > >
> > > Furthermore I have looked in the Servlet 2.2. spec. and cannot find
any
> > > clear definition on
> > > at what points in the tag handler method calls the contents of the
> > > bodyContent should be
> > > avaliable.
> > >
> > > My question is:
> > >
> > > Is Resin not implemented correctly or should Struts be changed to
perform
> > > its bodyContent.getString()
> > > in the doAfterBody() ?
> > >
> > > Med venlig hilsen/Best Regards
> > > -----------------------------------------------
> > > Jannik Nørgaard Steen
> > > Software Developer
> > > Digital Zone International
> > >
> > > http://www.digitalzone.dk
> > > mailto:js@digitalzone.dk
> > > -----------------------------------------------
> > >
> > >
>
> --
> ====================
> See you at ApacheCon Europe <http://www.apachecon.com>!
> Session VS01 (23-Oct 13h00-17h00):  Sun Technical Briefing
> Session T06  (24-Oct 14h00-15h00):  Migrating Apache JServ
>                                     Applications to Tomcat
>
>
>


Mime
View raw message