Hi, This is simple. Checkout the following link
http://displaytag.sourceforge.net/11/tut_implicitobjects.html regards --- Shilpa <[EMAIL PROTECTED]> wrote: > Hi, > > Can I have a column in the displaytag table which > will show the row > count? > > I mean a serial number for each row which will > ultimately indicate the > number of rows. > > It is urgent... > > Thanks in advance, > > Shilpa > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of > [EMAIL PROTECTED] > Sent: Saturday, July 08, 2006 12:34 AM > To: [email protected] > Subject: displaytag-user Digest, Vol 3, Issue 11 > > Send displaytag-user mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, > visit > > https://lists.sourceforge.net/lists/listinfo/displaytag-user > or, via email, send a message with subject or body > 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it > is more specific > than "Re: Contents of displaytag-user digest..." > > > Today's Topics: > > 1. Re: [displaytag - Help] Database Table (Bunty > India) > 2. [displaytag - Help] RE: Jsp 2.0 > (SourceForge.net) > 3. Re: [displaytag - Help] Database Table (Rick > Herrick) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 7 Jul 2006 12:20:02 +0530 > From: "Bunty India" <[EMAIL PROTECTED]> > Subject: Re: [displaytag-user] [displaytag - Help] > Database Table > To: [email protected] > Message-ID: > > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="utf-8" > > i tried this but not working > > On 7/6/06, Rick Herrick <[EMAIL PROTECTED]> > wrote: > > > > BuntyIndia wrote: > > > Thanks Rick for your Reply.... > > > > > > i tried what u written in the post but still it > is printing Nothing > > found > > > to > > > display. > > > > > > What i do now? > > > > Actually I think it's even simpler than what I > said earlier. You're > > storing your list like this: > > > > request.setAttribute("rows2", rows1); > > > > Now, there's no need to have different names for > them, since the > attribute > > name is just a string key in a map and doesn't > pertain at all to the > > object namespace. But that doesn't really matter, > since you could > name > > your attribute Fred if you want: > > > > request.setAttribute("HiImFred", rows1); > > > > But then in your <display:table> tag, you > specified the name attribute > as > > the OBJECT name, not the attribute name: > > > > <display:table name="rows1"> > > > > displaytag tries to retrieve the list from the > attribute store of the > > request scope, meaning it does: > > > > request.getAttribute("rows1"); > > > > But of course there IS no rows1 there. It doesn't > matter what the > object > > name is, what matters is what you stored the > attribute as: > > > > <display:table name="HiImFred"> > > > > Or: > > > > <display:table name="rows2"> > > > > Try that and I'll think you'll get what you need. > > > > You still need to clean up your database code, but > I think you'll get > to > > that later. > > > > -- > > Rick Herrick > > [EMAIL PROTECTED] > > > > I haven't got time for inner peace. > > > > "No reasonable definition of reality could be > expected to permit > > this."--Albert Einstein, Boris Podolsky and Nathan > Rosen in 1935 > > > > > > 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 > > _______________________________________________ > > displaytag-user mailing list > > [email protected] > > > https://lists.sourceforge.net/lists/listinfo/displaytag-user > > > > > > -- > ======================= > Knowledge Is Power Share It > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://sourceforge.net/mailarchive/forum.php?forum=displaytag-user/attac > hments/20060707/5c678bb3/attachment.html > > ------------------------------ > > Message: 2 > Date: Fri, 07 Jul 2006 05:00:06 -0700 > From: "SourceForge.net" <[EMAIL PROTECTED]> > Subject: [displaytag-user] [displaytag - Help] RE: > Jsp 2.0 > To: [EMAIL PROTECTED] > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="ISO-8859-1" > > > Read and respond to this message at: > https://sourceforge.net/forum/message.php?msg_id=3811369 > By: boske3 > > Ah i see ! > Question for you? > Did you include in your project all .jar files?If > you not > You must include next jar files in your project: > commons-beanutils-1.7.0.jar > commons-collections-3.1.jar > commons-lang-2.1.jar > commons-logging-1.0.4.jar > displaytag-1.1.jar > === message truncated === __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------------------------- 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 _______________________________________________ displaytag-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/displaytag-user

