aspose file tools*
The moose likes Struts and the fly likes to fetch response using AJAX on button click is it to be done the same with Struts2 as in Struts1? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "to fetch response using AJAX on button click is it to be done the same with Struts2 as in Struts1?" Watch "to fetch response using AJAX on button click is it to be done the same with Struts2 as in Struts1?" New topic
Author

to fetch response using AJAX on button click is it to be done the same with Struts2 as in Struts1?

Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 644
I am doing a simple example on AJAX, Jquery and Struts. On clicking a button it should show hello appended by name (entered from textbox) as response. It is like hello world example. I know how to do this using Struts 1. Now I want to do this using struts 2. I have below doubt:
- Do I have to do this using Jquery,AJAX in the same way in Struts 2 as I would have done in Struts1?
or
- Does it have to be done is any different way as Struts 2 provides support for AJAX,Jquery? ( I know struts 2 provides AJAX support but for this example I do not think it should be useful.For this example coding should be done same way as in Struts 1. Am I correct or wrong?
Thanks...
 
Don't get me started about those stupid light bulbs.
 
subject: to fetch response using AJAX on button click is it to be done the same with Struts2 as in Struts1?