File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to call struts application through JSON

 
Mumtaz Khan
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How can I make a call to struts 2.0 based webapplication from a mobile application as client ? I know this can be done with JSON, but I am a newbie to both struts and JSON. Can anyone help me.
 
Mumtaz Khan
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a struts2 based web application and I am using json-default to return json result type as response from my action class. I am able to call this action from browser but not from another application, which is a mobile based application that is developed in javascript. Here is my javascript code to call the action in struts web application:
Entry in struts.xml is:

Do I need an interceptor in struts application to receive request from mobile application?What is the other way to call struts 2.0 application from a mobile application to receive JSON response? Looking from some help.Thanks in advance.


 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic