aspose file tools*
The moose likes Struts and the fly likes make an Ajax call using Jquery to Struts Action Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "make an Ajax call using Jquery to Struts Action Class" Watch "make an Ajax call using Jquery to Struts Action Class" New topic
Author

make an Ajax call using Jquery to Struts Action Class

Yuta Lolap
Ranch Hand

Joined: Jun 03, 2012
Posts: 80



This is wat is in my jsp .

I have a struts-config.xml in which there is a mapping for the action



and i have a hello-servlet.xml (module specific spring bean file which is included in application context.xml)

which has the bean id mapped as


Will this ajax call work?



--
-
Yuta

Yogesh Lonkar
Ranch Hand

Joined: Jul 17, 2012
Posts: 94

Did you tried doing so? if you don't try you won't get problem. and if you don't get problems you will be trouble if they arrive at wrong time and you won't improve your self as developer.


Learning some thing New Every Day
Saif Asif
Ranch Hand

Joined: Aug 11, 2011
Posts: 440

Will this ajax call work?


The best way to find out would be to test it Have you tried it your self ? was the result as you expected or did you face any issue ?


Muhammad Saif Asif Mirza
OCJA(5/6) OCJP(6) OCJWCD(6)
Yuta Lolap
Ranch Hand

Joined: Jun 03, 2012
Posts: 80

Yes i tried is uccessfullly could get the action class to be called. Simple action Action class without spring integration. Now i want to send json data .

How does one json data in this ajax call and receive it at the other end?

How to make fldatatype attribute in ajax and jsonify the data and send?

does it maen i have to do something like follows:

Also does any of have a links to an ebooks based on jquery and ajax?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60053
    
  65

Yuta Lolap wrote:


fldatatype? tpJson? I don;t think you are typing those correctly.

Also does any of have a links to an ebooks based on jquery and ajax?

You can purchase an ebook of my jQuery book jQuery in Action (2nd Ed) from the Manning site here.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Yuta Lolap
Ranch Hand

Joined: Jun 03, 2012
Posts: 80

That was wrong. No such think as FlDatatype. My Bad.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: make an Ajax call using Jquery to Struts Action Class
 
Similar Threads
Ajax JSON looping in jQuery
Struts 2 Dojo autocompleter not working in Struts 2.0.14?
How to Populate TextField result in another Textfield on same page..using struts2 jquery AJAX
.getJSON not returning any response.
pass value from struts2 form to javascript