aspose file tools
The moose likes Struts and the fly likes Help using struts tag Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply locked New topic
Author

Help using struts tag

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
<%
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
    
  13

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

In that case, I'm moving this over to the Web Frameworks forum.
Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15229

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
 
Similar Threads
Using struts tag, retrieve value from Map & Vector
Struts Help!!!
Struts
Iterate tag for Vector
Help me