> hi, > I have used that it is working, but the problem is I need to > re-load the page freame newly. In my present case, Iam getting data from > database. All the values will be displayed on the textbox's. > When i used the code which u have given it is reloading but > the values are not getting lost, I mean the page is getting reloaded but > not getting the textboxes blank. It is carrying previous data. can u help > me rgds this. > Rajam T. wrote: > > > Hi, > > You can use the below given statements in javascripts to forward the > control to the action. > > document.forms[0].action='myAction.do'; > document.forms[0].submit(); > > Thanks & Regards > > Rajam Thirunavukkarasu > > -----Original Message----- > From: msg2ajay [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 08, 2007 8:47 AM > To: user@struts.apache.org > Subject: how to forward some action from javascritp > > > hi i have to forward to controller with javascritp my script is as below. > > <html> > <head> > function fwd(field){ > var val=field.value; > if(val == 1){ > [b]mypage.do[/b] //<----------- this is how i needed > } > } > </head> > <body> > <html:select property="myPage" onchange=fwd(this)> > <html:option value="1">one</html:option> > <html:option value="2">one</html:option> > <html:option value="3">one</html:option> > </body> > </html> > > > thx in Adv > Ajay > -- > View this message in context: > http://www.nabble.com/how-to-forward-some-action-from-javascritp-tf4234069.html#a12046424 > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > **************** CAUTION - Disclaimer ***************** > This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended > solely for the use of the addressee(s). If you are not the intended > recipient, please notify the sender by e-mail and delete the original > message. Further, you are not to copy, disclose, or distribute this e-mail > or its contents to any other person and any such actions are unlawful. > This e-mail may contain viruses. Infosys has taken every reasonable > precaution to minimize this risk, but is not liable for any damage you may > sustain as a result of any virus in this e-mail. You should carry out your > own virus checks before opening the e-mail or attachment. Infosys reserves > the right to monitor and review the content of all messages sent to or > from this e-mail address. Messages sent to or from this e-mail address may > be stored on the Infosys e-mail system. > ***INFOSYS******** End of Disclaimer ********INFOSYS*** > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/how-to-forward-some-action-from-javascritp-tf4234069.html#a12065110 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]