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
0
votes
1 answer

Struts Json Plugin Date conversion when date field is empty

I have issues with Json plugin not able to convert my empty string to a null date object. In spring mvc I have initbinder in my controller which takes care of this. How can I achieve this with struts json plugin.
user2192298
  • 35
  • 1
  • 9
0
votes
1 answer

how to call struts2 action from javascript?

I am calling Struts2.3 dojo autocompleter onChange and updating a text field according to autocompleter value using jquery ajax. if autocompleter enter value is not in database then i want to call an action to add that item first in database. my…
Sandeep vashisth
  • 1,040
  • 7
  • 20
  • 40
0
votes
2 answers

Struts2 jquery Grid ajax data reload on form submit

I have a fairly simple use case in which, I have a search form and a Grid The grid is suppose to show some default results on loadSearch.action. When the user enters few criteria in search form and hit submit button then ajax results must be…
0
votes
0 answers

show action result in same page in struts2

I am trying to show result in same page but it is showing result in separate page. The action is adding attribute to the session, I want to show the value of that attribute as a result. <%@ page language="java" contentType="text/html;…
0
votes
1 answer

Not able to plot Date values in json graph using Struts 2 jquery chart plugin 3.4.0

I am using Struts2 jquery chart plugin 3.4.0. I am getting blank chart when i use json for getting date values from the Action class.If i use simple action then same code works fine. Here is my jsp code.
Jeetu Verma
  • 199
  • 1
  • 5
  • 19
0
votes
1 answer

My action is taking time in executing with Struts2 jQuery Plugin

I am using Struts2 jQuery Plugin 3.2.1 for ajax and widgets. my actions are taking time in executing when i use sj actions. Without Struts2 jQuery tags , it is working fine. I searched on net but i am unable to find appropriate answer. Please share…
Jeetu Verma
  • 199
  • 1
  • 5
  • 19
0
votes
1 answer

How to submit a form on sj dropdown select?

I am using Struts 2 jquery plugin's dropdown list. i want to submit the form which has this dropdown and want to give the target to some other div.please give some idea.Thanking you in advance. here is the code:
Jeetu Verma
  • 199
  • 1
  • 5
  • 19
-2
votes
1 answer

Struts2 json requests are executed more than once

I have some requests in my struts 2 application. When using json request, i can see them running more than twice, even 5 times. why! Please help! I Have my method declared like this : @Actions({ @Action(value = "/getelements", results = {…
Biggg Jimmm
  • 67
  • 2
  • 12
1 2 3 4 5 6 7
8