This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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: 63208
    
  69

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]
 
Have you checked out Aspose?
 
subject: jsp and ajax
 
jQuery in Action, 3rd edition