day, 31 January 2002 7:36 AM
To: 'Struts Users Mailing List'
Subject: RE: initializing html:select
I have been noticing that it appears that the "value"
attribute of select never takes a run time expression.
I have the following:
where I want to use the sa
List"
> <[EMAIL PROTECTED]>
>
> To: [EMAIL PROTECTED]
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject: Re: initializing html:select
>
>
>
> That would be great, but how do you get a reference to the form bean?
>
> Or perhaps I misunderstand.
[EMAIL PROTECTED]
-Original Message-
From: Jakkampudi, ChandraseKhar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 2:12 PM
To: 'Struts Users Mailing List'
Subject: RE: initializing html:select
You can set the value paramater like this
Value c
"Robert Tyler Retzlaff" <[EMAIL PROTECTED]> on
01/30/2002 03:46:55 PM
Please respond to "Struts Users Mailing List"
<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject: Re: initializing html:select
That would be great, b
: "'Struts Users Mailing List'"
> <[EMAIL PROTECTED]>
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject: RE: initializing html:select
>
>
>
> Like I said, it can take a real time expression. So you can do
>
> value="<%=(String)requ
> You have to have scriptlets or expressions to set the value dynamically.
>
>
> -Original Message-
> From: Robert Tyler Retzlaff [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 2:25 PM
> To: [EMAIL PROTECTED]
> Subject: Re: initializing html:selec
to "Struts Users Mailing List"
<[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'"
<[EMAIL PROTECTED]>
cc: (bcc: David Hay/Lex/Lexmark)
Subject: RE: initializing html:select
Like I said, it can take a real time expression. So you can d
: [EMAIL PROTECTED]
Subject: Re: initializing html:select
Yes, but what I'm after is being able to dynamically set the
initial values. I have an object in the request upon which
the initial value depends. So specifying it in the value
parameter (unless I used code in the jsp page) isn
ltiple set to true. It should work in your case.
>
> -Original Message-
> From: Robert Tyler Retzlaff [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 2:01 PM
> To: [EMAIL PROTECTED]
> Subject: initializing html:select
>
>
> How do you initialize t
: Wednesday, January 30, 2002 2:01 PM
To: [EMAIL PROTECTED]
Subject: initializing html:select
How do you initialize the to a particular option
so that it appears to be the default when the form is loaded.
.. my ActionForm class
private String selectProperty;
private String[] values
EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 3:01 PM
To: [EMAIL PROTECTED]
Subject: initializing html:select
How do you initialize the to a particular option
so that it appears to be the default when the form is loaded.
.. my ActionForm class
private String selectProperty;
How do you initialize the to a particular option
so that it appears to be the default when the form is loaded.
.. my ActionForm class
private String selectProperty;
private String[] values = { ""+1, ""+2 };
private String[] names = { "One", "Two" };
.. setter/getters
12 matches
Mail list logo