struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Robert" ...@peopleware.lu>
Subject RE: How to have a generated string processed by Struts?
Date Wed, 29 Jan 2003 17:04:56 GMT
Hi,

I'm not sure of it (I'm a beginner) but, I think that you can't do it
because struts tags are translated to java code with the jsp page, so you
can't construct a java code with struts code inside...

But, if you want to output a message content you can do it with a thing like
this :

output = RequestUtils.message(		pageContext,
							null,
							Globals.LOCALE_KEY,
							"a.message"		);

Nicolas

-----Original Message-----
From: Luiz-Otavio Zorzella [mailto:zorzella@codaware.com]
Sent: mercredi 29 janvier 2003 17:40
To: struts-user@jakarta.apache.org
Subject: How to have a generated string processed by Struts?


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


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