alie D [mailto:[EMAIL PROTECTED]]
> Sent: June 23, 2003 11:43 AM
> To: Struts Users Mailing List
> Subject: Re: html:option - is there a selected option
attribute?
>
>
> Wendy,
>
> You have been very helpful. This is my first
STRUTS app and I seem to
> stumble the most on g
To: Struts Users Mailing List
Subject: Re: html:option - is there a selected option attribute?
Wendy,
You have been very helpful. This is my first STRUTS app and I seem to
stumble the most on getting these tags to work. I have not found any real
documentation examples to help me
I have an Options List and I want to make one of the items in the select
list selected. I am using the html-el tags. How do I mark an option as
selected?? Is there a way:
Thanks in advance,
Natalie
-
To unsubscribe, e-mail:
- is there a selected option attribute?
I have an Options List and I want to make one of the items in the select
list selected. I am using the html-el tags. How do I mark an option as
selected?? Is there a way:
Thanks in advance,
Natalie
day, June 23, 2003 12:52 PM
> To: Struts Users Mailing List
> Subject: html:option - is there a selected option attribute?
>
>
> I have an Options List and I want to make one of the
items in the select
> list selected. I am using the html-el tags.
How do I mark an option as
its the component property just check it in xml file ,,
-Original Message-
From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 4:43 PM
To: Struts Users Mailing List
Subject: Re: html:option - is there a selected option attribute?
You lost me; what
23, 2003 4:43 PM
To: Struts Users Mailing List
Subject: Re: html:option - is there a selected option
attribute?
You lost me; what corresponding boolean value??
Filip Polsakiewicz wrote:
Hi,
i had the same problem. Here is the solution. You have
to set the
corresponding boolean value to true
HTH
-Original Message-
From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 1:13 PM
To: Struts Users Mailing List
Subject: Re: html:option - is there a selected option attribute?
You lost me; what corresponding boolean value??
Filip Polsakiewicz wrote
hello dear
struts-html.tld file is for all html component stuff just go thru it ,,
-Original Message-
From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 4:47 PM
To: Struts Users Mailing List
Subject: Re: html:option - is there a selected option attribute
--
> From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 23, 2003 12:52
PM
> To: Struts Users Mailing List
> Subject: html:option - is there
a selected option attribute?
>
>
> I have an Options List and I want
to make one of the items in the
select
attribute
select
html:option value= selected=selected/option
html:option value=/option
/select
Filip Polsakiewicz wrote:
Sorry i was sleeping :-) I thought you were talking of checkboxes.
Well
i'd say it's not much different. In your formbeans reset method
: Natalie D Rassmann [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 23, 2003 1:26 PM
To: Struts Users Mailing List
Subject: Re: html:option - is there a selected
option attribute?
This will only work if I am reseting
In the formbean, I have the
selected option. I want to extract
.
How do I set the selected attribute
select
html:option value= selected=selected/option
html:option value=/option
/select
Filip Polsakiewicz wrote:
Sorry i was sleeping :-) I thought you were talking of checkboxes. Well
i'd say it's not much different. In your
ot;>SC/option>
/select>
/td>
I will use the selectedId from the OptionsBean to set the selected option
in the list.
How do I do this?? I don't think the overriding the reset
method is the answer??
Filip Polsakiewicz wrote:
Your formbean will be resetted on the first use and then
every time
did that solve ure problem
-Original Message-
From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 6:03 PM
To: Struts Users Mailing List
Subject: Re: html:option - is there a selected option attribute?
This isn't going to work or at least I am not sure how
Natalie wrote:
I will use the selectedId from the OptionsBean to set the selected option
in the list.
How do I do this?? I don't think the overriding the reset method is the
answer??
In the Action's execute method, set the value of that Form bean property to
whatever you want it to be.
Thank you, I will try that.
Wendy Smoak wrote:
Natalie wrote:
I will use the selectedId from the OptionsBean to set the selected option
in the list.
How do I do this?? I don't think the overriding the reset method is the
answer??
In the Action's execute method, set the value of
Wendy,
I am not sure how this would work. My form element is an Object which is
called OptionsBean. OptionsBean looks like this:
list - Arraylist of (int optionId and String optionLabel)
int selectedId
In my Action's execute method, I do a beanutils.copyProperties to copy the
dto (data
Natalie wrote:
In my Action's execute method, I do a beanutils.copyProperties to copy the
dto (data from DB) into my form. So, my form bean property is already set
to the list. This list is used to build the select list drop down box in
my jsp.
The entire contents of the drop down is a
Wendy,
You have been very helpful. This is my first STRUTS app and I seem to
stumble the most on getting these tags to work. I have not found any real
documentation examples to help me. At any rate, I tried to use the options
collection tag and I had no success. It was one error after
- is there a selected option attribute?
Wendy,
You have been very helpful. This is my first STRUTS app and I seem to
stumble the most on getting these tags to work. I have not found any real
documentation examples to help me. At any rate, I tried to use
the options
collection tag and I had no success
I am generating a dropdown list using the following code:
form:select property=groupId onchange=submit();
logic:iterate id=tmpGroup name=userPrivilegesForm
property=groups type=com.serviceintelligence.cems.core.Group
html:option value=%=
Programmer, CSMi
(703) 823-4300 ext. 170
-Original Message-
From: Greg Roll [mailto:groll;ServiceIntelligence.com]
Sent: Monday, November 04, 2002 4:26 PM
To: '[EMAIL PROTECTED]'
Subject: html:option - is there a selected option attribute?
I am generating a dropdown list using the following
-Original Message-
From: Greg Roll [mailto:groll;ServiceIntelligence.com]
Sent: Monday, November 04, 2002 1:26 PM
I am generating a dropdown list using the following code:
form:select property=groupId onchange=submit();
logic:iterate id=tmpGroup
24 matches
Mail list logo