struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Richardson" <Derek.Richard...@appiancorp.com>
Subject RE: How to have a generated string processed by Struts?
Date Wed, 29 Jan 2003 17:13:00 GMT
Something I've thought about but haven't tried - how about using composition to instantiate
an instance of the Struts tag, populate its properties, capture its output, and then write
that output to the stream?

> -----Original Message-----
> From: David Graham [mailto:dgraham1980@hotmail.com]
> Sent: Wednesday, January 29, 2003 11:52 AM
> To: struts-user@jakarta.apache.org
> Subject: Re: How to have a generated string processed by Struts?
> 
> 
> AFAIK, you can't do that.
> 
> David
> 
> 
> 
> 
> 
> 
> >From: Luiz-Otavio Zorzella <zorzella@codaware.com>
> >Reply-To: "Struts Users Mailing List" 
> <struts-user@jakarta.apache.org>
> >To: struts-user@jakarta.apache.org
> >Subject: How to have a generated string processed by Struts?
> >Date: Wed, 29 Jan 2003 08:40:22 -0800
> >
> >What if I wanted to generate Struts tags dynamically, say 
> something like 
> >this:
> >
> ><%= myClass.output () %>
> >
> >public class MyClass {
> >
> >     public String output () {
> >	// I want this to be further processed by Struts!!!
> >	return "<bean:message key=\"a.message\"/>"
> >     }
> >}
> >
> >How to do it?
> >
> >Thanks,
> >
> >Zorzella
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
> 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


Mime
View raw message