I've searched the documentation and mailing lists and find only a couple of
oblique references to the optgroup option for select lists. Is there any
way to support this directly or indirectly?
Thanks - Richard
-
To
If I use a collection to create a multi-select html:select, how do I get
the selected items back to my action class? Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Define a String[] in your form bean with the same name as your select box.
David
From: Cohan, Sean [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts (E-mail) [EMAIL PROTECTED]
Subject: Multi-Select List Box
Date: Sat, 1 Feb 2003 11:39:40 -0500
If I use
Thanks.
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 01, 2003 11:56 AM
To: [EMAIL PROTECTED]
Subject: Re: Multi-Select List Box
Define a String[] in your form bean with the same name as your select box.
David
From: Cohan, Sean [EMAIL
Can anyone post a sample? I don't know how to set the indexed properties.
If I do:
public void setSelectBox(int index, String item) {
selectBox[index] = item;
}
i can get a NullPointerException or an ArrayIndexOutOfBoundsExceptions
because I don't know selectBox array size...
What is the
Guido == Guido [EMAIL PROTECTED] writes:
Guido Can anyone post a sample? I don't know how to set the indexed properties.
Guido If I do:
Guido public void setSelectBox(int index, String item) {
GuidoselectBox[index] = item;
Guido }
Guido i can get a
]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Multi-Select List Box
Date: Sat, 1 Feb 2003 18:58:45 +0100 (MET)
Can anyone post a sample? I don't know how to set the indexed properties.
If I do:
public void setSelectBox(int index, String item) {
selectBox[index] = item;
}
i
Subject: How do I pre-select an element from a select list?
From: Scott Danzig [EMAIL PROTECTED]
===
Hi,
Using Struts, I'm able to create an instance of a form, and prepopulate it
with various information, then have it display this information in HTML
spawned from a JSP page after the forward
Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: How do I pre-select an element from a select list?
Date: Thu, 21 Mar 2002 13:55:02 -0800
Subject: How do I pre-select an element from a select list?
From: Scott Danzig [EMAIL PROTECTED]
===
Hi,
Using Struts, I'm able to create
Subject: Re: How do I pre-select an element from a select list?
From: Scott Danzig [EMAIL PROTECTED]
===
This helps a lot... it was very clear. I'm stuck on one more thing. I need
to dynamically set the preselected value from the Action class. I tried
adding a property to the form
Remove the value attribute from the html:select tag. In your action's
perform method, call formbean.setChoice(2) prior to forwarding the
request to your jsp.
Struts Newsgroup (@Basebeans.com) [EMAIL PROTECTED] writes:
Subject: Re: How do I pre-select an element from a select list?
From
HI,
I have two select lists, one filled with data and the other empty
Lets call the filled list as AllElements
and the empty list as UserElements
AllElements UserElements
-- ---
| element1| | |
|
]'
riant.com [EMAIL PROTECTED]
cc:
09/06/2001 01:41 Subject: Mainatinig Select list state
AM
Hi,
This might answer your question(s).
http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg14470.html
From: Aaron O'Hara <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: select list
Date: Thu, 30 Aug 2001 10:04:54 -0700
MIME-Version: 1.0
Re
: Thursday, August 30, 2001 1:04 PM
Subject: select list
All,
I'm familiar with Java, but new to the struts framework and have what is
probably an elementary question. I'm creating a database-driven
application
and on my JSP page I want to populate, amoung many things, a select list.
In options
as other attributes such as size, width, size, number)
I have a database table, Container Types, that stores these values and
related text descriptions (ID, Desc).
The user interface (web) will access the data contained in the Shipment and
Container objects.
I need to present the user with a select list
Hello,
I am trying to put a multiple select in the page list using struts tag.
I have defined a array attribute in the corresponding form bean.
The size of the select list as well as the array is three. But I am getting
an Array OutofBound exception as soon as I submit the page.
Please
17 matches
Mail list logo