153 Commits

Author SHA1 Message Date
Jarek Lipski 73cace0cbb Adds sorted and navigable set support JSON plugin
See WW-4937 for more details.
2018-05-12 16:59:17 +02:00
Lukasz Lenart 7f3c09c98e Merge pull request #208 from aleksandr-m/feature/lang_to_text
WW-4915 Replace deprecated commons-lang3 classes
2018-03-16 14:30:40 +01:00
Lukasz Lenart f1610537c8 Merge pull request #177 from aleksandr-m/feature/WW-4875
WW-4875 Add ability to use Java based configuration
2018-03-16 14:23:06 +01:00
Aleksandr Mashchenko 478945a0bd WW-4915 Replace deprecated commons-lang3 classes (add commons-text dependency, replace StringEscapeUtils) 2018-02-05 21:15:17 +02:00
Yasser Zamani 4738d1d802 WW-4873 Makes ActionInvocation not serializable 2017-12-13 19:34:54 +03:30
Aleksandr Mashchenko 7a9b5029a5 WW-4875 Add json constant configuration 2017-11-21 20:46:36 +02:00
Stefaan Dutry 0bde78cc36 changed Map iterations to use entrySet when both key and value are used 2017-11-13 21:13:27 +01:00
Yasser Zamani fb0a6120db WW-4846 Fixes unit tests for JDK8 2017-11-04 10:22:25 +03:30
Yasser Zamani 92502510df WW-4846 Adds unit tests 2017-11-04 09:37:12 +03:30
Lukasz Lenart 8b95838c58 Adds proper XML header 2017-10-22 12:29:13 +02:00
Lukasz Lenart a03373022d Adds missing header with license 2017-10-21 18:40:42 +02:00
Lukasz Lenart e7c65fb0b4 Adds missing header with license 2017-10-21 17:47:51 +02:00
Lukasz Lenart 73359c480b Adds missing header with license 2017-10-21 11:24:48 +02:00
Lukasz Lenart cb389d292d Fixes Maven site generation 2017-10-20 09:05:29 +02:00
Yasser Zamani ecdc0f8379 WW-4034 a few non-functional changes 2017-10-06 14:03:22 +03:30
Yasser Zamani 996e17927b WW-4034 Makes JSONWriter not static prototype to fix concurrent calls 2017-09-13 11:47:55 +04:30
Yasser Zamani 5bb472fa85 WW-4034 Allows to use custom JSONwriter 2017-09-11 18:40:34 +04:30
Yasser Zamani 39bdb99a11 WW-4034 Refactors and extracts interface from JSONWriter 2017-09-11 18:09:32 +04:30
Yasser Zamani 682d7a8888 WW-4846 Adds constant to control if include/traverse proxy info in JSONResult 2017-09-05 11:51:14 +04:30
Yasser Zamani fbe09949c7 WW-4846 Does not traverse/include proxy info in JSONResult 2017-08-30 17:55:41 +04:30
Lukasz Lenart 08e181a4fe WW-4728 Allows override request parameter names used to enable validation 2017-01-09 11:40:13 +01:00
Lukasz Lenart 7e4d1b45ea WW-4725 Allows handle all redirection by MessageStoreInterceptor 2016-12-19 18:51:04 +01:00
Lukasz Lenart 175c852eef WW-4684 Uses charset and adds some logging 2016-09-05 12:14:12 +02:00
Lukasz Lenart 547718fcc6 WW-4684 Uses Content-Type to perform action based on defined type 2016-09-05 12:02:00 +02:00
victorsosa 6e07a63797 WW-4650 Json deserialization does not work in 2.5.1
logic need to be changed as accept can be a list; the check need to be
done in the list itself.

Accept:application/json, text/plain, */*
2016-06-24 09:06:52 -04:00
Lukasz Lenart e60119436a WW-4632 Uses proper DTD version 2016-06-12 13:10:49 +02:00
Lukasz Lenart 880c1d54a4 WW-4558 contentType override ignored for JSONInterceptor 2016-05-22 08:30:27 +02:00
Lukasz Lenart 104bd92b88 WW-4627 Adds unit test to confirm the issue 2016-05-13 08:07:59 +02:00
victorsosa d16aa65098 remove old second contentType parameter 2016-05-06 18:04:04 -04:00
victorsosa 8b8135af79 Merge branch 'ww-4558' of github.com:victorsosa/struts into ww-4558
# Conflicts:
#	plugins/json/src/main/java/org/apache/struts2/json/JSONInterceptor.java
2016-02-15 10:37:26 -04:00
victorsosa bab451c6d8 Merge branch 'ww-4558' of github.com:victorsosa/struts into ww-4558
# Conflicts:
#	plugins/json/src/main/java/org/apache/struts2/json/JSONInterceptor.java
2016-02-15 10:34:15 -04:00
victorsosa 0d49050381 fix patch WW-4558
contentType override ignored for JSONInterceptor

use of accept parameter st by the interceptor params


Signed-off-by: victorsosa <victor.sosa@peopleware.do>
2016-02-15 10:31:36 -04:00
victorsosa fab687a07e fix patch WW-4558
contentType override ignored for JSONInterceptor

From now on:

The "accept" request header parameter must be "application/json" or
"application/json-rpc"

Also the default encoding is "UTF-8"
2016-02-15 08:28:01 -04:00
cnenning b0a66b47ac increased visibilty of methods and constants for better extensibility 2016-01-14 09:33:50 +01:00
cnenning 7bd8dd9559 made methods non static and private, javadoc updates 2016-01-12 14:14:09 +01:00
cnenning cb11898416 Adds new result 'JSONActionRedirectResult' to json-plugin. Contains tests and example in showcase app. The new result type is intended to be used along with existing JSONValidationInterceptor. It makes it possible to do form validation via ajax and handle form submitting, action execution and redirect evaluation all in one request inside JS context. 2016-01-11 14:36:32 +01:00
Victor Sosa 32597350fe Update unit test 2016-01-04 12:55:16 -04:00
Victor Sosa b198e3bf3d Patch WW-3945
Set default encoding for JSONResult to UTF-8

Now the default encoding is UTF-8 for JSON as should be.
2016-01-04 12:20:58 -04:00
Victor Sosa f9b7ebb87e Patch WW-3945
Set default encoding for JSONResult to UTF-8

Now the default encoding is UTF-8 for JSON as should be.
2016-01-04 12:14:39 -04:00
Victor Sosa db483ccd15 fix for WW-4269
blank double results in NumberFormatException being thrown on sending
JSON in request body
2015-12-30 13:36:58 -04:00
Johannes Geppert 775c82a743 WW-4531- Improve javadoc to be compatible with more strict JDK8 javadoc standard 2015-07-24 20:27:31 +02:00
Johannes Geppert eb564a25e1 Fix wrong closing HTML tags in javadoc comments 2015-07-16 22:02:21 +02:00
Lukasz Lenart 46b0ef632f WW-4516 Allows disable BeanInfo cache in devMode 2015-06-26 21:45:30 +02:00
Lukasz Lenart fd0db86560 WW-4518 Moves the new filters to proper package 2015-06-23 17:36:32 +02:00
Lukasz Lenart 8de090fda2 WW-4518 Drops FilterDispatcher 2015-06-23 16:09:34 +02:00
Naros f18e24d2ac Renamed setter for devMode. 2015-06-22 10:32:05 -05:00
Naros 88bfeb556d Removed unused methods
Removed JSONUtil.serialize(Object) in favor for using the method that
accepts a boolean to control bean caching functionality.
2015-06-22 09:21:13 -05:00
Naros a778ba1a3d Renamed debugMode to devMode.
Renamed the debugMode variable to devMode.
2015-06-22 09:18:24 -05:00
Naros 30df43f1fa WW-4516: Allow JSON plug-in to skip bean cache when devMode is enabled. 2015-06-20 13:19:29 -05:00
Lukasz Lenart e2347f165c WW-4077 Moves ValidationAware interface into proper package 2015-06-18 11:33:49 +02:00