Re: REST plugin and id params with dot's causes 404 not found

2009-01-15 Thread Alex Milanovic
pache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Alex Milanovic, MBA & B.Sc. Technical Director IOGEO Girona, Spain Cell: +34 (639) 972-345

REST, response body for HTTP PUT

2008-12-01 Thread Alex Milanovic
Hi All, I want to return a response JSON for HTTP PUT requests using the REST plugin (2.1.3). Although the request succeeds (i.e. the DB is updated as expected) the "model" object does not get serialized to JSON. The same approach works well for HTTP POST and create() method. Is HTTP PUT supposed

Re: REST: Spanish characters in resource IDs

2008-11-25 Thread Alex Milanovic
Lenart <[EMAIL PROTECTED]> wrote: > 2008/11/25 Alex Milanovic <[EMAIL PROTECTED]>: >> Could you pls elaborate what you mean by "setup"? > > Example base on Spring but there are some standalone solutions: > > >encodingFilter >

Re: REST: Spanish characters in resource IDs

2008-11-25 Thread Alex Milanovic
at 9:00 PM, Lukasz Lenart <[EMAIL PROTECTED]> wrote: > 2008/11/24 Alex Milanovic <[EMAIL PROTECTED]>: >> When I specify a resource ID that has Spanish characters such as ñ my >> REST Controller receives the character "mangled", i.e. probably >> erroneousl

REST: Spanish characters in resource IDs

2008-11-24 Thread Alex Milanovic
Hi All, When I specify a resource ID that has Spanish characters such as ñ my REST Controller receives the character "mangled", i.e. probably erroneously decoded. How can I enable the app to use characters specific to Spanish? Which interceptor is responsible for this? Thanks, Alex -

Struts2, REST, JSON content encoding, UTF8

2008-11-13 Thread Alex Milanovic
Hi All, I am using the REST plugin for Struts 2.1.3-SNAPSHOT. I want to make sure that the content encoding for the JSON output from the server is always in UTF8. How can I do this? Thanks, Alex - To unsubscribe, e-mail: [EMAIL

REST and JSON: null values, content type

2008-11-10 Thread Alex Milanovic
Hi All, Two questions about the REST plugin and its support for JSON (note I am using 2.1.3-SNAPSHOT to be able to use hierarchical REST resources): 1. I noticed that when the plugin serializes the response to JSON a null string is serialized as an empty string and a null array is serialized as a