The other comments are probably valid, but I thought I would note this:
>onclick='document.forms[this.form].param.value="save" ;
This should be:
onclick='this.form.param.value="save";'
Matt Kruse
Because the value of param is not passed in the Request object; it is passed
in the Form object. Try:
ActionForm myForm = ( ActionForm ) form;
String sid = myForm.param;
or
DynaActionForm myForm = ( DynaActionForm ) form;
String sid = myForm.get( "param" );
Mark
-Original Message-
Fro
> I can't pass parameters from javascript to Action Class.
> My jS
>
>
> onclick='document.forms[this.form].param.value="save" ;
>document.forms[this.form].submit() ;' />
Use the struts tag
Sergey,
Change your HTML from to
-Richard
-Original Message-
From: Sergey.Livanov [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2003 10:21 AM
To: [EMAIL PROTECTED]
Subject: can't pass parameters
I can't pass parameters from javascript to Action Class.
My jS
(
4 matches
Mail list logo