to
carry the array of selected checkboxes to the next page.
(Please trim your posts.)
I assume there's a String[] in your form bean. You can iterate over it
and write out several html:hidden tags with the appropriate values.
Struts should fill up your String[] property again when the resulting
Subject: RE: [OT] - Request against Session
From: Samyukta Akunuru [mailto:[EMAIL PROTECTED]
Using session/hidden variables-what would be the best way to
carry the array of selected checkboxes to the next page.
(Please trim your posts.)
I assume there's a String[] in your form bean. You can
Hi,
My form bean contains the following get set methods :
setRate(String[] rate)
{
rate = this.rate;
}
public String[] getRate()
{
return rate (which is the String[])
}
Also one int variable (counter) which stores the no. of elements in the
Array.
public int counter() {
return
etc...
-Original Message-
From: Chawla, Yogesh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 11:46 AM
To: 'Struts Users Mailing List'
Subject: Urgent help reqd Stuck..!! - Getting a value String[] from a
Form Bean
Importance: High
Hi,
My form bean contains the following get
, October 01, 2003 3:41 PM
To: [EMAIL PROTECTED]
Subject: RE: Urgent help reqd Stuck..!! - Getting a value String[] from
a Form Bean
You can use the Logic:iterate tag...Inside that you can uye any HTMl tag you
want...
Also have a look at nested tags ...They will help you.
Why are you using
How to use the logic.iterate tag in this case - can let me know..
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 3:41 PM
To: [EMAIL PROTECTED]
Subject: RE: Urgent help reqd Stuck..!! - Getting a value String[] from
a Form Bean
You
1. setRate() isn't doing a thing.
2. use JSTL to iterate over the array using c:forEach after setting a
page-scoped variable containing the array:
c:set var='arrayValues' value='${pageScope.request.myForm.rate}'/
tr
c:forEach items='$(arrayValues)' var='item'
td
c:out
7 matches
Mail list logo