struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen, Dean (Zhun)" <Dean.C...@gs.com>
Subject nested write issue
Date Tue, 03 Sep 2002 21:56:22 GMT
Hi,
I have a quick question, I need a way to write a table to HTML. However, the
# of columns is dynamic.
The column names are "column1", "column2", etc.
I tried the following:

<nested:iterate property="collection">
	<tr class="<bean:write name="style" property="next"/>">
		<% for(int i=1;i<Integer.parseInt(columnCount);i++) { %>
		<td nowrap align="center">
			<nested:write property="column<%=i%>"/>
		<% } %>
		</td>

	</tr>
</nested:iterate>

However, I get an exception, apparently the JSP <%=%> isn't processed before
the nested is.
I've also tried 
	<nested:write property="<%="column"+i%>"/>
but that doesn't work either.

Any ideas?

Thanks.

Dean Chen



--
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