struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rejin NS" <re...@pitsolutions.com>
Subject Re: Help - Logic:iterate!!!
Date Thu, 29 Aug 2002 06:11:43 GMT
I think you should take another look at the type in:

<bean:define id="summList"
>        name="partSummaryForm"
> property="summary"
> type="java.util.Collection"/>

Hope this helps.
-rejin.

----- Original Message -----
From: "NATARAJAN, SANKAR (SBCSI)" <sn6123@sbc.com>
To: <struts-user@jakarta.apache.org>
Sent: Wednesday, August 28, 2002 11:58 PM
Subject: Help - Logic:iterate!!!


> Hello All,
>
> I am using <logic:iterate> like as follows :
>
> <bean:define id="summList"
>        name="partSummaryForm"
> property="summary"
> type="java.util.Collection"/>
>  <logic:iterate id="summ"
>       name="summList">
> <A name='<bean:write name="summ" property="clsvc"/>'>
> <!-- //---></A>
> <table width =100% border=0 >
> <tr><td align='right'>
> <h2><bean:write name="summ" property="url"/></td></tr>
> </table>
> <table  border=0 cellpadding='0' cellspacing='1'>
> <tr><td><bean:message key="heading.dasParticipantSum1"/></td></tr>
> <tr><td><bean:message key="heading.dasParticipantSum2"/></td></tr>
> <tr><td class='label'><bean:message key="heading.dasParticipantName"/>
> <span class='reportval'>
> <bean:write name="summ" property="custName"/></span></td></tr>
> <tr><td class='label'><bean:message key="heading.dasParticipantProduct"/>
> <span class='reportval'>
> <bean:write name="summ" property="clsvc"/></span></td></tr>
> <tr><td class='label' wrap='false'>
> <bean:message key="heading.dasParticipantNonDiscTotal"/></td></tr>
> <tr><td align='center' class='reportval'>
> <bean:write name="summ" property="nonDiscount"/></td></tr>
> <tr><td class='label'>
> <bean:message key="heading.dasParticipantDiscTotal"/></td></tr>
> <tr><td  align='center' class='reportval'>
> <bean:write name="summ" property="discount"/></td></tr>
> <tr><td class='label'>
> <bean:message key="heading.dasParticipantTotal"/>
> <span class='reportval'>
> <bean:write name="summ" property="clsvc"/></span></td></tr>
> </table><br><br>
> </logic:iterate>
>
> I don't know what i am doing wrong and i am getting the following
exception.
> Can you please help me to locate my mistake ?
>
> [8/28/02 11:10:35:296 PDT] 6259c6dc WebGroup      X Servlet Error:
> java.util.ArrayList: java.lang.ClassCastException: java.util.ArrayList
> at
> _dasParticipantSummary_jsp_17._jspService(dasParticipantSummary.jsp
> :28)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:142)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:300)
> at
> org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430)
> at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
> .java:827)
> at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
> eServlet.java:167)
> at
>
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
> t.java:297)
> at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
> Servlet.java:110)
> at
>
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
> 2)
> at
>
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
> ager.java:1012)
> at
>
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
> er.java:913)
> at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
> ebAppRequestDispatcher.java:523)
> at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
> Dispatcher.java:282)
> at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
> ispatcher.java:112)
> at
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
> 14)
> at
>
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
> sor.java:417)
> at
>
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
> sor.java:390)
> at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:271)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
> .java:827)
> at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
> eServlet.java:167)
> at
>
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
> t.java:297)
> at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
> Servlet.java:110)
> at
>
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47
> 2)
> at
>
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
> ager.java:1012)
> at
>
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
> er.java:913)
> at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
> ebAppRequestDispatcher.java:523)
> at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
> Dispatcher.java:282)
> at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
> ispatcher.java:112)
> at
> com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91)
> at
>
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
> java:184)
> at
>
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
> vocation.java:67)
> at
>
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Cacheabl
> eInvocationContext.java:106)
> at
>
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
> estProcessor.java:125)
> at
>
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
> .java:315)
> at
>
com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.ja
> va:60)
> at
>
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
> at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
> at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
>
>
> Thanks
> Sankar
> SBC Services,
> 4420 Rosewood Drive, #5W059
> Pleasanton,CA - 94588
> Phone: 925-737-2855
> Pager: 925-975-7482
> Fax   : 925-847-8793
>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message