This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a requirement where i need to display the fields in a 2 column layout like left to right and these fields are displayed dynamically. I am using struts , here tiles wont work as the fields are dynamic in nature as well <c:forEach> and <logic:iterate> wont work either as they are used to display the 1 field at a time and will be displayed sequentially, which is one after another. Hence i need to use the while or for loop in the JSP with scriplet to do it.
Something like :-
This will allow me display the fields in the left to right manner,but i dont wnat to use scriplet , is there the same can be done using <c:forEach> or <logic:iterate> or we whether we can use a custom tag to do it? please shed some light into it.
Rithanya Laxmi wrote:
I am not using struts2 and i am using struts1.1
That's why we ask you at the top of the page to indicate which version you're using Struts 1.1 has been unsupported for what, 6 years now?
As for making columns, you can surround the Struts tags with regular HTML TR's and TD's. I haven't worked with Struts 1.x in a while, so I can't recall exactly how to do it.