aspose file tools*
The moose likes Struts and the fly likes Help using struts tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
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: 61437
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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: 61437
    
  67

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

Joined: Jul 11, 2001
Posts: 15299
    
    6

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.


GenRocket - Experts at Building Test Data
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help using struts tag