Get your CodeRanch badge!*
The moose likes Struts and the fly likes forward  same page without refreshing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "forward  same page without refreshing" Watch "forward  same page without refreshing" New topic
Author

forward same page without refreshing

anvi kon
Ranch Hand

Joined: Jan 08, 2010
Posts: 133
Hi,

I have two buttons save and finish.

I want to enable the button finish whenever I click the save button.

page1.jsp.

<script>
InitialLoad()
{
document.getElementById('finish').disabled = true;

}

save(){
document.getElementById('finish').disabled = false;
}
</script>



strutsconfig.xml
<forward name="success" path="atre.dodUpgrade.show.page1"/>



Using the above I can enable it temporarly. But whenever I call the forward page it on action class





The Problem is page Refresh again and it shows disabled button for finish.

what could be the solution for this?

Thanks



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: forward same page without refreshing
 
Similar Threads
Enable button
disable submit button help
disable anchor tags on printable page
I want to implement editable autocompleter in struts2 using jquery.
enabling buttons on forms