DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6695>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6695

bean:define behavior ( Tei Component )





------- Additional Comments From [EMAIL PROTECTED]  2002-03-04 12:48 -------
The proble comes from the "name" parameter.
If I user an rtexprvalue ( like name="<%=SomeConstantInJAVA%>" ) I get the 
exception, if I put there the value ( like name="VAlueOfConstant" ), program 
compiles well.
I attach here my micro-test program.
<%-- Micro test program for bean:define ClassCastException --%>
<%@ taglib uri="/WEB-INF/struts-bean.tld"   prefix="bean"   %>
<%! // Some dummy Constant
  public static final String KEY = "SomeUserKey" ;
%>
<html>
<body>
<%-- this compiles --%>
<bean:define id="_role_" name="SomeUserKey" 
property="roles.defaultRole.roleName" />
<%-- this does not compile --%>
<bean:define id="_role_" name="<%=KEY%>" 
property="roles.defaultRole.roleName" />
</body>
</html>

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

Reply via email to