File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes logic iterate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "logic iterate" Watch "logic iterate" New topic

logic iterate


Joined: Mar 09, 2004
Posts: 2
I have generated the listbox using logic:iterate, the vector contains somthing like this
when my jsp is loaded the listbox is also loaded, but I want to know how to set the value with "a" and "b" accordingly.
right now when my jsp is like this
<option value=" ">a</option>
<option value=" ">b</option>
This is being generated by the logic:iterate tag.
poornima balagopal
Ranch Hand

Joined: Dec 02, 2003
Posts: 83
I never tried with list box. But with combobox instead of using logic:iterate you can populate the combobox.
<bean efine name="borrowerType" id="borrowerTypeList" scope="request"/>
<html:select property="borrowerType" onchange="JavaScript:getBorrowerCodes()" tabindex="1">
<html ptions collection="borrowerTypeList" labelProperty="borrowerType"
I dont know whether this will work for you
Try this way
Kiran Kumar
Ranch Hand

Joined: May 18, 2001
Posts: 107
Check out this link
there are example applications which u can check out for ur specific requirement.
there is one struts-exercise-taglib.war which i think will answer ur queries.

Thanks<br /> <br />Kiran <br /> <br />SCEA, SCJP 1.4,<br /> <br />"First they ignore u, then they laugh at u, then they fight u, <br />then u will win<br /> <br />Mahatma Gandhi"
I agree. Here's the link:
subject: logic iterate
It's not a secret anymore!