File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Head First Android this week in the Android 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
It's not a secret anymore!