This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic