struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 22077] New: - <bean:define> tag's type attribute's RT EXPR value
Date Fri, 01 Aug 2003 23:46:48 GMT
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=22077>.
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=22077

<bean:define> tag's type attribute's RT EXPR value

           Summary: <bean:define> tag's type attribute's RT EXPR value
           Product: Struts
           Version: 1.1 Final
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Custom Tags
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: alok.bhatia@wellsfargo.com


Hi: 

My JSP page looks like this:
<STUFF>
<bean:define id="pageBean" name="stmtPage" 
type="com.XXX.YYY.ZZZ.report.CCSalesSummaryPage"/>
<STUFF>

When I change the above to 
<STUFF>
<% String s ="com.XXX.YYY.ZZZ.report.CCSalesSummaryPage"; %>
<bean:define id="pageBean" name="stmtPage" type="<%=s%>"/>
<STUFF>

I get the following compile error: 
java.lang.ClassCastException: java.lang.Object
	at org.apache.struts.taglib.bean.DefineTei.getVariableInfo
(DefineTei.java:87)
	at weblogic.servlet.jsp.StandardTagLib.getTagPageVars
(StandardTagLib.java:517)
	at weblogic.servlet.jsp.StandardTagLib.genericStartBegin
(StandardTagLib.java:574)
	at weblogic.servlet.jsp.StandardTagLib.processStartTag
(StandardTagLib.java:691)
	at weblogic.servlet.jsp.JspLexer.mOPEN_EXTENSION_TAG(JspLexer.java:2642)

MY QUESTION: bean:define tld says that we can have RT EXPR value for type.  
Then, how come it gives this error?

Thanks for your help.
-Alok

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Mime
View raw message