Author
Help using struts tag
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted Aug 19, 2004 16:10:00
0
<% Vector v = (Vector) request.getAttribute("domainlist"); for (int i = 0; i < v.size(); i++) { domain d = new domain(); d = (domain) v.elementAt(i); %> Display info in htm <%}%> I want to use struts tag and clean up my code. can anyone help me.
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56150
posted Aug 19, 2004 17:51:00
0
Unless you are already using Struts (or even if you are), I'd recommend using the JSTL tags. <c:forEach> can be used for iteration, for example.
[Smart Questions ] [JSP FAQ ] [Books by Bear ] [Bear's FrontMan ] [About Bear ]
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted Aug 20, 2004 08:08:00
0
I need to use struts tag and can anyone provide an example for this.
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56150
posted Aug 20, 2004 08:10:00
0
In that case, I'm moving this over to the Web Frameworks forum.
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15229
posted Aug 20, 2004 09:19:00
0
There seems to be 2 of this same question in this forum and since the other one has a more relivent response, I am closing this one.
I agree. Here's the link: jrebel
subject: Help using struts tag