struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject [OT][JSTL] Re: value from varstatus
Date Sat, 16 Aug 2008 21:24:57 GMT
--- On Sat, 8/16/08, cpanon <cpanon@yahoo.com> wrote:
> Whenever I try to get the numerical value of varStatus all
> I get is this Typejavax.servlet.jsp.jstl.core.LoopTagSupport [...]

"All you get" is giving you precisely what you've asked for.

You'd need to use ${varStatus.count} (or index) or something. See the JSTL documentation [1,2].
Searching the fine web may also be of assistance [3].

Dave

[1] forEach docs
http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html

[2] LoopTagStatus docs
http://java.sun.com/products/jsp/jstl/1.1/docs/api/javax/servlet/jsp/jstl/core/LoopTagStatus.html

[3] STFW
http://www.google.com/search?q=c:foreach


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message