Henner,

Please could you tell me what dangers there may be by commenting out code in 
the dofinally method in a tag. 

Jez.


> Henner Kollmann <[EMAIL PROTECTED]> wrote:
> 
>  
> This is definitivly a bug in resin. Tomcat resuses the tags but but the
> initialize for each new loop. This is described in the jsp definitions 
> as
> tag reusing. This tag reusing is the reason why we introduce the 
> doFinally
> once. So i will not change this in dbforms.
> 
> Best regards,
> Henner
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED] On 
> > Behalf Of [EMAIL PROTECTED]
> > Sent: Wednesday, October 18, 2006 12:25 AM
> > To: jdbforms-interest@lists.sourceforge.net
> > Subject: [dbforms] DbForms and Resin. Null pointer exception.
> > 
> > Hi all,
> > 
> > I just ported by DbForms App from Tomcat 5.5 to Resin and 
> > found that most of the tags don't work in a looped 
> > environment (ie displaying a list of records). In this case 
> > the first tag works but for all subsequent tags you get a 
> > null pointer exception. 
> > 
> > I know that in the past there have been various messages 
> > posted regarding Resin so I thought that I'd share my findings.
> > 
> > After analysing the java file generated by Resin and Tomcat I 
> > found that the way Tomcat processes tags is by creating a new 
> > instance of the tag for each loop iteration.
> > 
> > Tags in the Resin java generated file are defined at class 
> > level. For each loop iteration it processes the tag and calls 
> > the dofinally routine which clears all tag information (it 
> > also initialises the tag on the first iteration only by 
> > checking if the tag is null), thus the subsequent loop fails 
> > as all the internals are set to null.
> > 
> > The solution (and it is a hack) is to comment out the 
> > contents of the doFinally methods for each tag that could be 
> > used in a looping situation. Once this is done there does not 
> > seem to be any other inherent problem with Resin.
> > 
> > Jez.
> > 
> > --------------------------------------------------------------
> > -----------
> > Using Tomcat but need to do more? Need to support web 
> > services, security?
> > Get stuff done quickly with pre-integrated technology to make 
> > your job easier Download IBM WebSphere Application Server 
> > v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&;
> dat=121642
> > _______________________________________________
> > DbForms Mailing List
> > 
> > http://www.wap-force.net/dbforms
> >

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to