Questions tagged [struts2-json-plugin]

Struts2 JSON Plugin. The JSON plugin provides a JSON support for actions in Struts2.

In latest communication practice across almost all the cross platforms JSON is the best light weight technique.

Struts2-json-plugin provides a "json" result type that serializes actions into JSON. i.e. Whole object will be serialized into JSON format.

Official Documentation : http://struts.apache.org/2.2.3/docs/json-plugin.html

113 questions
3
votes
1 answer

How to validate JSON being sent using Struts2 JSON Plugin without throwing exception

Suppose there's a Double variable in an action, and if the value sent in the request body is something like {"dblField":""} and the interceptorStack looks like :
coding_idiot
  • 13,526
  • 10
  • 65
  • 116
3
votes
2 answers

Why are multiple DTOs altering the session Map?

In My recent project, I am using jQuery Grid, generating dynamic grids when user click on button. At server side data is manipulated by using the Session. First I am getting Session object and casting that object to gatepassDTO. Then I am…
3
votes
2 answers

How to make an Action to accept dynamic JSON data from the user interface in Struts 2?

I would like to have an Action class which should accept a JSON string constructed from user interface with no setter and getter in the Action class. Is it possible? If so, what conventions would I need to follow in Action class and in…
Laxmikanth Samudrala
  • 2,203
  • 5
  • 28
  • 45
3
votes
0 answers

Struts2 jquery grid with double select box

I have used truts2 jQuery grid plugin with DropDown select box in my web application. That work's pretty good. Here's the codes i have tried so far: @Action(value="selectcountries", results= { @Result(name="success", type="dispatcher",…
edaklij
  • 4,121
  • 11
  • 31
  • 43
3
votes
1 answer

Struts2 Jquery conformation

I'm using struts2-jquery plugin in my application, i'm using its sj:a component to submit forms. Here is my code.
3
votes
1 answer

Not getting data in jquery grid in Struts 2

Grid.jsp: jqGrid Example Part 1