Need help on <html:optionsCollection> tag in Struts
843840Jan 23 2008 — edited Jan 23 2008i have a problem with <html:optionsCollection> tag,
i am gettintg the exception like this.
i created a LabelValueBean and i added values into it's constructor , and i added these beans to the collection which is there in the FormBean' s corresponding setter method inside of Action Class.
but during the jsp accessing, i am getting this.
javax.servlet.jsp.JspException: Failed to obtain specified collection
at org.apache.struts.taglib.html.OptionsCollectionTag.doStartTag(OptionsCollectionTag.java:222)
at jsp_servlet._jsp.__index._jsp__tag3(__index.java:260)
at jsp_servlet._jsp.__index._jsp__tag2(__index.java:227)
at jsp_servlet._jsp.__index._jsp__tag0(__index.java:154)
at jsp_servlet._jsp.__index._jspService(__index.java:115)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:223)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3245)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2003)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1909)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
can you guys help me .