You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Graham <dg...@hotmail.com> on 2003/02/18 16:37:04 UTC

Re: Custom tags with Struts

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

David



>From: "Rajesh P" <ra...@mphasis.com>
>Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>To: "Struts Users Mailing List" <st...@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


Stamping Text Templates?

Posted by Michael Marrotte <ma...@nicusa.com>.
Are there any Apache helper tools for stamping text templates?

Ideally, I would like to put something like the <logic:iterate>,
<bean:write> tags in a static text file.  Then from a Struts Action read the
text file (maybe into a String) process the "tags", stamping in dynamic
session values (looping over a Collection) and use javamail to send it off.

Or is there another more straightforward way to do sophisticated String
stamping using Struts,  another Apache product, or even with plain old Java?

Any help is greatly appreciated.

Thanks,

--Michael Marrotte




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