jQuery in Action, 2nd edition*
The moose likes Struts and the fly likes Struts with Ajax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts with Ajax" Watch "Struts with Ajax" New topic

Struts with Ajax

amit sharma
Ranch Hand

Joined: Jul 19, 2006
Posts: 129
Can anyone help me how to add ajax functionality in struts framework
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60785

What specific issue are you having?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
amit sharma
Ranch Hand

Joined: Jul 19, 2006
Posts: 129
I want to redesign my website in ajax if i can use struts with ajax then it is very helpful for me.
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456

i'm afraid you are not providing enough information for us being able to answer something meaningfull.

the quick answer will be: yes, you can use AJAX with struts. search for the term in this forum and you'll find out that you are by far not the first who is asking this question.

if you have more detailled questions, like a concrete scenerio (instead of "a web app"), please come bakc here,

bye for now,
amit sharma
Ranch Hand

Joined: Jul 19, 2006
Posts: 129
My problem is that when i make a call to action class(using ajax) then a new page loaded .I want that i receive response in form of text so that using that response i change some part of my page .
alan wamser
Ranch Hand

Joined: Jan 30, 2006
Posts: 41
If I understand what you are asking, when you call the struts action you are getting forwarded to the next page. If that's the issue then return null.
I agree. Here's the link: http://aspose.com/file-tools
subject: Struts with Ajax
Similar Threads
how to use ajax with struts?
ajax on struts
struts 2 + dynamic input + showing said input
AJAX without struts. Is it possible?
Toolkit for AJAX?