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: Custom tags with Struts
Date Tue, 18 Feb 2003 15:49:47 GMT
To explain David's response :
You can't use a "JSP custom tag" as input to another "JSP custom tag"'s
attributes.

In JSP, HTML tags are just plain text (no matter how they are nested with
JSP code), but JSP tags must be nested as XML style.

Nico.


but i was able to use the struts tag within a html tag as follows:
<input type="hidden" name='<bean:write name="fb" property="prop1"/>'
value='<bean:write name="fb" property="prop2"/>'>



-----Original Message-----
From: David Graham [mailto:dgraham1980@hotmail.com]
Sent: Tuesday, February 18, 2003 9:07 PM
To: struts-user@jakarta.apache.org
Subject: Re: Custom tags with Struts


You can't use a tag as input to another tag's attributes.

David



>From: "Rajesh P" <rajesh.p@mphasis.com>
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>Subject: Custom tags with Struts Date: Tue, 18 Feb 2003 20:49:48 +0530
>
>Hello Everyone,
>I had created a Custom tag for formatting number to decimal places based on
>some business rules. The tag looks like this:
><formatChecker:check value=" "/>
>In the value attribute I need to send data from my form bean. I tried as
>follows:
><formatChecker:check value='<bean:write name="fbname" value="price"/>'/>
>I tried with single quotes and double quotes, but the custom tag does not
>evaluate the struts bean tag but takes the value as "<bean:write
>name="fbname" value="price"/>"
>Please, can anyone tell me how i can proceed with this.
>Thanks in advance,
>Rajesh
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org


_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail


---------------------------------------------------------------------
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


---------------------------------------------------------------------
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