aspose file tools*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "logic iterate" Watch "logic iterate" New topic
Author

logic iterate

amuthan
Greenhorn

Joined: Mar 09, 2004
Posts: 2
hello,
I have generated the listbox using logic:iterate, the vector contains somthing like this
v.add["a"]
v.add["b"]
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.
Thanks!
poornima balagopal
Ranch Hand

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

Joined: May 18, 2001
Posts: 107
Hi
Check out this link
http://forum.exadel.com/viewtopic.php?t=120
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: http://aspose.com/file-tools
 
subject: logic iterate