struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: customize fielderror
Date Sun, 31 May 2009 21:59:33 GMT
Martin Gainty wrote:
> can we assume fieldErrors is some sort of List<E> ?
> http://java.sun.com/javase/6/docs/api/java/util/List.html#get(int)

No, fieldErrors is a map, the entries of which are a list--as the JSP 
snippet implied, and as in the docs.

>> <s:if test="fieldErrors.get('email').size() > 0"><s:property
>> value="fieldErrors.get('email').get(0)" /></s:if>
> (would be easier to follow example if we could see referenced variables)

What referenced variables?

Dave

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


Mime
View raw message