aspose file tools*
The moose likes JSP and the fly likes jsp and ajax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp and ajax" Watch "jsp and ajax" New topic
Author

jsp and ajax

Ameet Topare
Greenhorn

Joined: Jul 22, 2008
Posts: 10
hi

first time my jsp comes with values from action class of struts.

but on next click i have to refresh the page using ajax.

but as beans values are reflected in actionform, that changes are not visible.

so how can i refresh jsp page using ajax?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61648
    
  67

Refreshing a page is not a good use of Ajax. If you are going to refresh the page, just do it the "normal" way. Why do you think you need Ajax?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ananth Chellathurai
Ranch Hand

Joined: Nov 21, 2007
Posts: 349

Exactly, if you need specific fields to be changed it will be useful use Ajax.

Ananth Chellathurai


Ananth Chellathurai [Walk on software]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: jsp and ajax