aspose file tools
The moose likes Struts and the fly likes ajax and struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "ajax and struts2" Watch "ajax and struts2" New topic
Author

ajax and struts2

Ritesh Badwaik
Greenhorn

Joined: Feb 23, 2009
Posts: 16
Hello friends,
I am new to ajax, Can anyone tell how to use ajax with struts2? The problem is as follows:
I have to submit a form using ajax. the action class generates a image and I have to use that image in the same form(input page)
Please suggest some books or give some small code snippet.

Thanking you,
Ritesh

Johannes Geppert
Ranch Hand

Joined: Jan 12, 2010
Posts: 67
Ritesh Badwaik wrote:Hello friends,
I am new to ajax, Can anyone tell how to use ajax with struts2? The problem is as follows:
I have to submit a form using ajax. the action class generates a image and I have to use that image in the same form(input page)
Please suggest some books or give some small code snippet.


I can suggest you the struts2 jquery plugin for submitting a form with AJAX.

http://code.google.com/p/struts2-jquery/wiki/SubmitTag

Of course you can use the official dojo plugin, but this is deprecated.

Best Regards

Johannes Geppert


My Java and Webprogramming Blog
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ajax and struts2