tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Smith <quick...@yahoo.com>
Subject how many nest <logic:iterate>
Date Tue, 31 Jan 2006 05:54:52 GMT
It seems that if you have more than three nested
<logic:iterate>,  the code is not going to work. 

For example, if you have:

<logic:iterate id="p1" name="myForm" property="list1">
<logic:iterate id="p2" name="myForm" property="list2">
 ${p2}
</logic:iterate>
</logic:iterate>

It is ok. But if you have :

<logic:iterate id="p1" name="myForm" property="list1">
<logic:iterate id="p2" name="myForm" property="list2">
<logic:iterate id="p3" name="myForm" property="list3">
 ${p3}
</logic:iterate>
</logic:iterate>
</logic:iterate>
p3 is not printed out.

Am I right? 

Here is my real code, did I do something worong? The
most inside <logic:iterate> did not print.

<logic:present name="protocolForm"
property="protocolActionList">
	<logic:iterate indexId="idx" id="media"
name="protocolForm" property="protocolActionList">
		<tr>
			<td><logic:lessThan name="ac" value="1">
			${media.startDate}
			</logic:lessThan>&nbsp;</td>
			<td>${media.startTime}&nbsp;</td>
			<td><logic:iterate id="p" name="protocolForm"
property="protocol">
				<logic:equal name="p" property="protocolActionId"
value="${media.id}">
					${p.type}
					<logic:iterate id="com" name="protocolForm"
property="compoundActionList">
						<logic:equal name="p.protocolActionId"
value="com.protocolActionId">
							ss${com.compound}
						</logic:equal>
					</logic:iterate>
				</logic:equal>
				</logic:iterate>&nbsp;</td>
			<td>
				<logic:greaterThan name="ac" value="0">
				<html:button property="delete" value=" Delete "
onclick="location.href='protocoldelete.do?id=${media.id}&studyid=${param.studyid}&experimentId=${param.experimentId}&type=${param.type}&menutype=${param.menutype}&protocolGroupId=${param.protocolGroupId}'"/>
				</logic:greaterThan>&nbsp;
			</td>
		</tr>
	<bean:define id="ac" value="${idx + 1}"/>
	</logic:iterate>
	</logic:present>


For 
--- DEEPA M N <deepu_1005@yahoo.co.in> wrote:

> 
> Hi,
>    
>   Here is a log file. Pls let me know how can i
> correct it.
>    
>   2006-01-31 10:30:54
> StandardWrapperValve[DownloadFiles]: Allocate
> exception for servlet DownloadFiles
> javax.servlet.ServletException: Error allocating a
> servlet instance
>  at
>
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:691)
>  at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144)
>  at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>  at
>
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>  at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>  at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>  at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>  at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>  at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>  at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>  at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>  at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>  at
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>  at
>
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>  at
>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>  at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>  at
>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>  at java.lang.Thread.run(Thread.java:595)
> ----- Root Cause -----
> java.lang.NoClassDefFoundError:
> com/deepa/servlet/DownloadFiles (wrong name:
> DownloadFiles)
>  at java.lang.ClassLoader.defineClass1(Native
> Method)
>  at
>
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>  at
>
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>  at
>
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
>  at
>
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
>  at
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
>  at
>
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
>  at
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:964)
>  at
>
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)
>  at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144)
>  at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>  at
>
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>  at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>  at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>  at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>  at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>  at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>  at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>  at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>  at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>  at
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>  at
>
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>  at
>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>  at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>  at
>
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>  at java.lang.Thread.run(Thread.java:595)
>    
>   Thank u in advance
>   Deepa
>    
> 
> 				
> ---------------------------------
>  Jiyo cricket on Yahoo! India cricket


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message