struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen, Dean (Zhun)" <>
Subject nested write issue
Date Tue, 03 Sep 2002 21:56:22 GMT
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%>"/>
		<% } %>


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?


Dean Chen

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message