Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts2 question

 
Raj Bhandari
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I want to find out the size of a results list so I can display correct message.
In Struts 1.x, I'd do this:


But how do I do the same using Struts2 ? Is there a way now without JSTL tags for this?

Tks :-)
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd suggest just using JSTL:

[ May 28, 2008: Message edited by: Merrill Higginson ]
 
Raj Bhandari
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tks Merrill, I knew one option is jstl or we could do this:



Hopefully, it helps someone..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic