Hi All,

        I am developing some custom tags for my application. For one of 
my tag attributes i have the rtexprvalue set to true. The following 
scenario does not work

Usage:
<%
String userName = "Shan"
%>
<my:MyTag name="<%=userName%>_guest"/>

When i see the generated code, the value for userName is not replaced, 
and the whole expression is considered as a String and passed to the 
method.
i.e the setName method is called as setName("<%=userName%>_guest");

but the result i expected was
setName(userName+"_guest");

The same thing works fine if i give it as

<my:MyTag name="<%=userName%>"/>

and the generated result was setName(userName);

Is this a bug  or the expected functionality because for other html tags 
such as input i can specify it as

<input value="text<%=userName%>"/>

Thanks
Shanmugam.PL


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to