This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes struts2 question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2 question" Watch "struts2 question" New topic
Author

struts2 question

Raj Bhandari
Ranch Hand

Joined: Oct 19, 2005
Posts: 97
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

Joined: Feb 15, 2005
Posts: 4864
I'd suggest just using JSTL:

[ May 28, 2008: Message edited by: Merrill Higginson ]

Merrill
Consultant, Sima Solutions
Raj Bhandari
Ranch Hand

Joined: Oct 19, 2005
Posts: 97
Tks Merrill, I knew one option is jstl or we could do this:



Hopefully, it helps someone..
 
 
subject: struts2 question