Yes you miss something. Try the bookstore testBOOKSListDynaBug.jsp. This is
a test page to test all the different methods to access the current row. And
if you can wait up to the evening i will commit a version which tests the
cout tag too.

Regards,
Henner 

> -----Ursprüngliche Nachricht-----
> Von: Luca Fossato [mailto:[EMAIL PROTECTED] 
> Gesendet: Mittwoch, 20. April 2005 12:46
> An: Henner Kollmann
> Cc: jdbforms-interest@lists.sourceforge.net
> Betreff: jstl behaviour fixed ? - Was: Re: AW: AW: [dbforms] 
> jstl behaviour on record list page
> 
> Hi Henner,
> 
> I don't understand this piece of code:
> 
> DbBodyTag::doStartTag, line ~207
> ------------------------------------------------------------------
> 
>         if (!rsv.isLast()) {                            
>             rsv.moveNext(); // teleport us to future...
> 
>             // This must be done because currentRow_xxx is reread from
>             // the pagecontext after(!) the body of the tag. 
> This means
>             // that the current body contains the currentRow 
> of rsv(i - 1)
>             // # jp 27-06-2001: replacing "." by "_", so that 
> SCHEMATA can be used
>             pageContext.setAttribute("currentRow_"
>                                      +
> myParent.getTableName().replace('.', '_'),
>                                      rsv.getCurrentRowAsMap());
> 
>             try {
>                pageContext.setAttribute("position_"
>                                         + 
> myParent.getTableName().replace('.',
>                                                               
>             
> '_'),
>                                         
> Util.encode(myParent.getTable().getPositionString(rsv),
>                                                     
> pageContext.getRequest().getCharacterEncoding()));
>             } catch (Exception e) {
>                throw new JspException(e.getMessage());
>             }
> 
>             rsv.movePrevious(); // ...and back to present ;=) 
>          
>          }
>       }
> 
> ------------------------------------------------------------------
> 
> why rsv.moveNext() ? Is it like the jdbc resultSet, where it 
> is necessary to do a resultSet.next() to get the first record ?
> 
> I'm testing this stuff with an application; I commented the
> rsv.moveNext() and rsv.movePrevious() lines ...  it seems the 
> application works without problems AND I can access to the 
> currentRow_${TABLENAME} page attribute getting the correct 
> values: the following "jsp" declarations on the current 
> record give all the same correct result:
> 
> <db:label fieldName="IS_ONLINE"/>
> ${currentRow_ITEM.IS_ONLINE}    // jstl syntax permitted only 
> in Tomcat 
> 5.x and web apps 2.4
> [scriplet: <%=currentRow_ITEM.get("IS_ONLINE") %>]
> 
> Am I missing something (insert, update and delete operations 
> seem to work correctly...) ?
> My env is: DbForms latest from CVS with default navigation 
> settings, jdk1.5, tomcat 5.5.7
> 
> Regards,
> Luca
> 
> 
> Henner Kollmann ha scritto:
> 
> >I debugged it yesterday - only change is to move the 
> currentRow to the 
> >body tag.
> >
> >Henner
> >  
> >
> 
> 




-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
DbForms Mailing List

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

Reply via email to