jQuery in Action, 3rd edition
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

jsp and ajax

Ameet Topare

Joined: Jul 22, 2008
Posts: 10

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

Joined: Jan 10, 2002
Posts: 63865

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] [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]
I agree. Here's the link: http://aspose.com/file-tools
subject: jsp and ajax
jQuery in Action, 3rd edition