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: Struts 2 and Velocity
Date Sat, 27 Jun 2009 11:18:54 GMT
Robin Mannering wrote:
>  From the documentation at 
> http://struts.apache.org/2.1.6/docs/velocity-tags.html, I see the format 
> is:
> 
> #s**tag **(...) ... #end
> 
> However, I'm having difficult using the tags.  The following is ok and 
> works as expected
> 
>      #stextfield ("label=Employee Name" "name=empname" "size=15" 
> "maxlength=10")
> 
> However, I would like to display fieldErrors as I need by name.  I'm 
> trying the following which doesn't seem to work.
> 
> #sfielderror     #sparam ("value=username")
> #end
> The 'end' tag is not expected on this one
> 
> Can anybody point me in the right direction?

Does #sfielderror ("fieldname=username") not work, or do you need 
multiple fields?

Dave

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


Mime
View raw message