struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajay Patil" <>
Subject Re: problem with struts bean tag when created on the fly
Date Thu, 26 Jun 2003 05:02:13 GMT
Dear Ashish,

For <bean:message> tag to be replaced by the label in properties
file, the tag needs to be typed inside the JSP file. Only the
tags typed in JSP page are parsed by JSP processor. 

If the Java code is returning any tags, they will be treated as normal
character data and just outputted as it is by the JSP processor.

- Ajay

Ajay Patil
Vertex Software Pvt. Ltd.

----- Original Message ----- 
>From  Ashish Kulkarni <> 
Date  Wed, 25 Jun 2003 13:26:15 -0700 (PDT) 
Subject  problem with struts bean tag when created on the fly  

I am trying to the following, I have a java class
which builds a String for displaying in webpage,
I have some code in this class which builds String as
if it is struts bean tag, like my string when build
looks like this
'<bean:message key="report1"/>'
and the java code to build this is
String title = new String("\'" + "<bean:message 
and then i print this String at run time
but the problem is the bean tag does notand get
blanks, the value for report is not retrieved from
properties file.
why is this happening like this


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message