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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: html:link along with logic:iterate
Alawadhi, Mona wrote: 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 When you only have the one parameter, it's easy with the paramId, paramName, paramProperty attributes. For example: html:link page=/addressListAction.do paramId=letter paramName=choice If you have more than one parameter, you have to use scriplets. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:link along with logic:iterate
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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:link along with logic:iterate
Thank you, Doug and Keith.. it works! Whoo Hoo! Mona -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:15 AM To: 'Struts Users Mailing List' Subject: RE: html:link along with logic:iterate 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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]