wood burning stoves 2.0*
The moose likes Struts and the fly likes Change URL on button click Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Change URL on button click" Watch "Change URL on button click" New topic
Author

Change URL on button click

kiran chirravuru
Greenhorn

Joined: Nov 25, 2009
Posts: 26
How to change URL on <s:submit> button click in struts 2.0 using javascript


Regards
Kiran
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9305
    
  17

change URL

What do you mean by change the URL. When a submit button is clicked, the containing form is submitted to the server. Do you simply want to do some javascript on the click of a button?? No need to use struts submit button usually to do something like that. There's an onclick event on HTML button element. Also the window.location javascript property can be used to change the URL in the browser...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Change URL on button click