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----- From: Sergey.Livanov [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 1:21 PM To: [EMAIL PROTECTED] Subject: can't pass parameters I can't pass parameters from javascript to Action Class. My jS <input type='hidden' value='param' /> <input type=image src="jpg/down.jpg" onclick='document.forms[this.form].param.value="save" ; document.forms[this.form].submit() ;' /> ( Newbie FAQ ) Action: public class paramAction extends Action { public ActionForward perform ( ActionMapping mapping , ActionForm form , javax.servlet.http.HttpServletRequest request , javax.servlet.http.HttpServletResponse response ) throws IOException, ServletException { String sid = request.getParameter( "param" ) ; SID == NULL ! Thanks in advance -- Best regards, Sergey.Livanov mailto:[EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]