This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread 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 Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts2 question" Watch "struts2 question" New topic

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 ]

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..
I agree. Here's the link:
subject: struts2 question