hi!
i'm getting a problem with my html:options
what i have is a MyUtils class with a method to retrieve a list of agency
id's from the database
class MyUtils
{
//gets agencyIds creates LabelValueBeans and chucks them into a Vector
public static Vector getAgencyIds()
}
in my jsp page i had
I think your collection needs to implement the List interface (use an
ArrayList instead of a vector)
-Original Message-
From: ajay brar [mailto:[EMAIL PROTECTED]
Sent: 14 October 2003 12:45
To: [EMAIL PROTECTED]
Subject: URGENT: html:options
hi!
i'm getting a problem with my html:options
PROTECTED]
Subject: URGENT: html:options
hi!
i'm getting a problem with my html:options
what i have is a MyUtils class with a method to retrieve a list of agency
id's from the database
class MyUtils
{
//gets agencyIds creates LabelValueBeans and chucks them into a Vector
public static Vector
=agencyId
html:options collection=agencyIds
label=label
value=value /
/html:select
Nico.
- Original Message -
From: ajay brar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 2:53 PM
Subject: RE: URGENT: html:options
hi!
I think your
List [EMAIL PROTECTED]
Subject: Re: URGENT: html:options
Date: Tue, 14 Oct 2003 15:11:57 +0200
collection attribute of html:options tag is used to set the name of a
bean (in some scope) that is a collection of the
items off the select-box.
You need to put your Vector into page or request scope to use
PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: URGENT: html:options
Date: Tue, 14 Oct 2003 15:11:57 +0200
collection attribute of html:options tag is used to set the name of a
bean (in some scope) that is a collection of the
items off the select-box.
You need to put
6 matches
Mail list logo