Well Sumita this is what you have got to do.
On click of the button
call this function this way onclick=propmbox()
function promptBox() {
text=prompt(USer Enter.,);
}
In the plce of text have a hidden field the way ted explained and assign the
cvalue to that hidden field
document.form.hiddenfiled.value=prompt(USer Enter,);
and submit the form. and there you are its all done.
HTH
Regards,
Taati
-Original Message-
From: Susmita Pati [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 5:29 PM
To: 'Struts Users Mailing List'
Subject: Need Help in Popup to Action handler class
Hi All
I think I had posted this problem earlier. I am a newbee in struts. I need
to open a popup window at the click of the button. Accept a value in the
popup. Pass the value back to an action handler which is called by the
same
button.
Would really appreciate the help
thanks in advance
susmita
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 5:19 PM
To: Struts Users Mailing List
Subject: Re: html:select selected=selected ?
It's a feature =:o)
If you don't want one of the items selected, then there's no reason to
use the option tags.
The idea is that it is suppose to select the current state.
It may be that you need to be sure payer.state is set to at the
beginning.
-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services
Michael Marrotte wrote:
I'm trying to generate:
select name=state
option value=/option
option value=ALAL/option
option value=AKAK/option
option value=ASAS/option
option value=AZAZ/option
...
So, I use the following syntax:
html:select property=state name=payer
html:option value=/html:option
html:option value=ALAL/html:option
html:option value=AKAK/html:option
html:option value=ASAS/html:option
html:option value=AZAZ/html:option
...
But, I don't get the desired result, instead I get (e.g. when
payer.getState()==AK):
select name=stateoption value=/option
option value=ALAL/option
option value=AKselected=selectedAK/option
option value=ASAS/option
option value=AZAZ/option
Does anyone know why the HTML is generated this way? Is there a way to
get
my desired results, from above?
Any help is greatly appreciated.
Thanks,
--Michael Marrotte
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]