Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Struts and the fly likes display tag and struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "display tag and struts" Watch "display tag and struts" New topic

display tag and struts

bubu lina

Joined: Aug 11, 2008
Posts: 28
i apparently know nothing about matter what i try. that is why i still need some help.
i am using display tag to show some data in a table.(nice library) the issue here is to have a dinamically pagesize.
i have this variable in the .jsp page that has the value = 15 for example. in the display tag i wanna tell the program to take the value of that variable.
tryed like this:

But noo go. tryied only writing "myvar". tryied

can't grasp how this works..struts
Thank you
bubu lina

Joined: Aug 11, 2008
Posts: 28
found the sollution:

hope this helps somebody
Punit Singh
Ranch Hand

Joined: Oct 16, 2008
Posts: 952
bubu lina wrote:found the sollution:

hope this helps somebody

Another way if your pagesize is coming in the request from other jsp, or action, or your pagesize in any scope like request, session, application with the attribute name myPageSize the use this one:

I agree. Here's the link:
subject: display tag and struts
It's not a secret anymore!