struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas De Loof" <nicolas.del...@cgey.com>
Subject Re: Variable in a Struts tag
Date Wed, 26 Mar 2003 10:23:33 GMT
It seems you use struts standard html taglib. use html-el taglib (in the contrib directory
of struts RC1 distrib).

standard taglib is "only" JSP1.1 compliant and doesn't compute JSP1.2 Expression Language.

Nico.


> I have the JSTL/Struts code:
>     <c:import url="sample.xml" varReader="xmlSource">
>       <x:parse var="customer" xml="${xmlSource}" />
>     </c:import>
>     <html:form ...>
>       <x:set var="custName" select="$string(customer/name)" />
>       Customer Name: <html:text value="${custName}" ... />
>       ...
>     </html:form>
> 
> But when i write:
>       Customer Name: <html:text value="${custName}" ... />
> the Struts taglib don't reads "${custName}" as a variable but as a string so
> create a textbox with the string "${custName}" inside!
> 
> How can i do?!
> Thanx
> 
> Gio
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org

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


Mime
View raw message