Iterate problem in Strtuts
Posted on August 8th, 2006 by HuHe
When I transfer a variable of action class to jsp, I find some thing interesting:
If the variable is an Array, then in jsp, I need to write both first two line(1 and 2):
1: <logic:iterate id=”dish” name=”dishes” type=”myPack.Dish”>
2: <logic:present name=”dish”>
3: <bean:write name=”dish” property=”dishName”>
4: </bean:write>
5: </logic:present>
6: </logic:iterate>
then no problem. If I kill the no.2 line then jsp [...]
No Comments »
Filed under: Java
