I don’t know then.  Get a debugger and try to figure it out by stepping through.

 

Rick Herrick

[EMAIL PROTECTED]

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bunty India
Sent: Thursday, July 06, 2006 11:50 PM
To: displaytag-user@lists.sourceforge.net
Subject: Re: [displaytag-user] [displaytag - Help] Database Table

 

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
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user




--
=======================
Knowledge Is Power Share It

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
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to