struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kamholz, Keith (corp-staff) USX" <kkamh...@moog.com>
Subject RE: <html:link> along with <logic:iterate>
Date Thu, 29 May 2003 15:14:54 GMT
Use something similar to this:

<logic:iterate name="addressListFormBean" property="letterOptions"
id="choice">
	<html:link page="/addressListAction.do" paramId="userSelection"
paramName="choice" paramProperty="labelStr">
		<bean:write name="choice" property="labelStr"/>
	</html:link>
</logic:iterate>

(You may have to change it, because I'm not sure exactly what some of your
variables refer to.)
Then you can just call a request.getParameter("userSelection") in your
action class to find out which was selected.

- Keith

www.buffalo.edu/~kkamholz


-----Original Message-----
From: Alawadhi, Mona [mailto:malawadhi@kpmg.com]
Sent: Thursday, May 29, 2003 10:35 AM
To: 'Struts Users Mailing List'
Subject: RE: <html:link> along with <logic:iterate>


I've got this far in my code, but how can I specify which letter was
selected after specifying my Action page? (it is Underlined)

<logic:iterate name="addressListFormBean" id="choice"
property="letterOptions">
       		<html:link page="/addressListAction.do?letter=  ???">
       		<bean:write name="choice" property="labelStr"/>
       		</html:link>
       		</logic:iterate>

Mona



-----Original Message-----
From: Alawadhi, Mona 
Sent: Thursday, May 29, 2003 10:23 AM
To: 'Struts Users Mailing List'
Subject: <html:link> along with <logic:iterate>


Hello,

I am trying to display letters (A to Z) that are stored in a Vector/List in
my FormBean (index kind of thing).
I would like the user to click on a letter, where I can capture the value of
that letter, run my query, and display results accordingly.

When I tried to use <bean:write> along with <logic:iterate>, the letters
would only be displays, and are not clickable.
How can I use the <html:link> in this case? or is there any other tag I
could use?


Thank you,

Mona 


****************************************************************************
*
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. 

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter.         
****************************************************************************
*


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message