Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ajax and struts2

 
Ritesh Badwaik
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic