Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

display tag and struts

 
bubu lina
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
i apparently know nothing about struts..no 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
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
found the sollution:


hope this helps somebody
 
Punit Singh
Ranch Hand
Posts: 952
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic