You can't use EL expressions with the base Struts tag library.  They will only work if 
you're using the contributed Struts-EL tag library, from the "contrib" directory.  
You'll have to make sure your "taglib" directive specifies the correct TLD, and you'll 
probably want to use a different prefix ("html-el" is suggested).  Struts-EL is not 
yet in a released version, only in the nightly build

> -----Original Message-----
> From: Richard Doust [mailto:[EMAIL PROTECTED]]
> 
> Hi.
> I have a form that wants to get the initial value for a 
> <html:text> field
> from a property of a bean associated with a different form on 
> the page.
> I have tried this:
> <html:text property="userName" value="<c:out 
> value="${foo.userName}"/>"/>
> and this:
> <html:text property="userName" value="${foo.userName}"/>
> but obviously these won't work because, in the latter case, 
> EL isn't being
> processed in the attributes of the struts tag.
> Does anyone know how I could do this?
> Thanks,
> Rich
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to