This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 63349

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]
I agree. Here's the link:
subject: jsp and ajax
It's not a secret anymore!