Hi,
I have the following code in my jsp, 

    <html:select property="securityOptions" multiple="false">
      <bean:define id="securityOptions" name="personalForm"
property="securityOptions" type="java.util.Collection"/>
      <html:options collection="securityOptions" property="value"
labelProperty="label"/>
    </html:select>
__________________________________________________________________
This is parsed into the following, 

_jspx_th_bean_define_0.setPageContext(pageContext);
 
_jspx_th_bean_define_0.setParent(_jspx_th_html_select_0);
                    _jspx_th_bean_define_0.setId("securityOptions");
                    _jspx_th_bean_define_0.setName("personalForm");
 
_jspx_th_bean_define_0.setProperty("securityOptions");
 
_jspx_th_bean_define_0.setType("java.util.Collection");
                    try {
                        int _jspx_eval_bean_define_0 =
_jspx_th_bean_define_0.doStartTag();
                        if (_jspx_eval_bean_define_0 !=
javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                            try {
                              if (_jspx_eval_bean_define_0 !=
javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                              out = pageContext.pushBody();
 
_jspx_th_bean_define_0.setBodyContent((javax.servlet.jsp.tagext.BodyCont
ent) out);
                              _jspx_th_bean_define_0.doInitBody();
                          }
                          do {
                          // end
                          // begin
[file="/personal.jsp";from=(73,3);to=(73,113)]
                          } while (_jspx_th_bean_define_0.doAfterBody()
== javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AG
AIN);
                      } finally {
                          if (_jspx_eval_bean_define_0 !=
javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE)
                              out = pageContext.popBody();
                      }
                  }
                  if (_jspx_th_bean_define_0.doEndTag() ==
javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
                      return;
              } finally {
                  _jspx_th_bean_define_0.release();
              }
              java.util.Collection securityOptions = null;
              securityOptions = (java.util.Collection)
pageContext.findAttribute("securityOptions");

______________________

I get a ClassCastException on the above line ,
pageContext.findAttribute("securityOptions");

Thanks,
Sunder                                                  


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

Reply via email to