Thanks,
That worked. I need to read the documentation!!!
-Original Message-
From: Michael Jouravlev [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 27, 2005 12:21 PM
To: Struts Users Mailing List
Subject: Re: Dynamically generating parameterized links using
logic:iterate
I guess, it would something like this:
logic:iterate id=result name=ParcelSearchForm
property=results type=com.acme.ParcelObj
html:link page=/somepage.do paramId=param1
paramName=result paramProperty=parcel
bean:write name=result property=parcel/
/html:link
/logic:iterate
where com.acme.ParcelObj is the object type, which is collected within
results and which has parcel property.
Michael.
On 4/27/05, Randall Svancara [EMAIL PROTECTED] wrote:
First of all, I know this must be a frequently asked question. In
java server pages, I would do this:
%
while someiterator.hasNext(){
%
a href=/somepage?param1=%=String
strVal=(String)someiterator.next()%Go/abr /
%
}
This seems fairly strait forward. Using the struts framework and
tags, I am struggling.
logic:iterate id=result name=ParcelSearchForm property=results
html:link page=/somepage.do name=result scope=page
paramId=parcel bean:write name=result
property=parcel//html:linkbr /
/logic:iterate
I am not sure what I need to use in order to grab the parcel value
from the form bean. I know my syntax is wrong.
Can someone please demonstrate the proper way to do this.
Randall
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]