Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

struts2 question  RSS feed

 
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..
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!