Why would you want it in the reset method? You can do a request.getAttribute("property");
Shawn -----Original Message----- From: Pham Anh Tuan To: Struts Users Mailing List Sent: 1/26/2006 8:15 PM Subject: Re: [HELP] Can't not get parameter when submit a form <form method="POST" enctype="multipart/form-data"> hidden tag <input type="hidden"> ? You can not get that html hidden property in reset method of FormBean ... any solution :( ----- Original Message ----- From: "Garner, Shawn" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <user@struts.apache.org> Sent: Friday, January 27, 2006 12:38 AM Subject: RE: [HELP] Can't not get parameter when submit a form <form method="POST" enctype="multipart/form-data"> > Use an html hidden property to get this value. > > Shawn > > -----Original Message----- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper > Sent: Wednesday, January 25, 2006 1:31 PM > To: user@struts.apache.org > Subject: Re: [HELP] Can't not get parameter when submit a form <form > method="POST" enctype="multipart/form-data"> > > Pham Anh Tuan wrote: >> Hi all, >> >> I got a problem when I submit a form with setting like below >> <form name="postEditFrm" method="POST" enctype="multipart/form-data"> >> >> <input type="submit" value="add" > onclick='postEditFrm.action="$link.setAction("/addNewPost.do")?myNum=4"; post > EditFrm.submit;'> >> >> </form> >> >> I can not get the parameter name "myNum" from > request.getParameter("myNum") or > request.getParameterMap.containsKey("myNum"); >> >> I want to get the parameter here because I want to user that parameter > "myNum" in reset method of ActionBean. > > Maybe you need something like > > <input type="submit" value="add" onclick="this.form.action=' > /addNewPost.do?myNum=4;this.form.submit;" /> > > L. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ************************************************************************ **** > This email may contain confidential material. > If you were not an intended recipient, > Please notify the sender and delete all copies. > We may monitor email to and from our network. > ************************************************************************ **** > > --------------------------------------------------------------------- > 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] **************************************************************************** This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. **************************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]