I opted to go with application/json because of this - http://www.ietf.org/rfc/rfc4627.txt
it is accepted by the IANA. Anyhow, that serialization, and deserialization in the unit test is only there until the JSON result type gets officially brought into core. -Wes On Tue, Jun 9, 2009 at 12:09 PM, Martin Gainty<mgai...@hotmail.com> wrote: > > ruby folks seem to favour a content-type of "text/x-json" over > "application/json" > http://www.ruby-forum.com/topic/94728 > (prevailing argument with text is you can read it) > > wikipedia seems to lean to automatically associating application/json as JSON > http://en.wikipedia.org/wiki/JSON#Data_types.2C_syntax_and_example > > which association would be 'more correct' for struts > ? > Martin > ______________________________________________ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger > sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung > oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich > dem Austausch von Informationen und entfaltet keine rechtliche > Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen > wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire informez > l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci > est interdite. Ce message sert à l'information seulement et n'aura pas > n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > >> Date: Tue, 9 Jun 2009 11:17:59 -0400 >> Subject: File Upload Plugin >> From: w...@wantii.com >> To: user@struts.apache.org >> >> Okay, since it came up recently, I created a plugin with slightly >> better multipart request handling capabilities. >> >> I had to make a few small changes to struts2-core, so if you want to >> test out the fileupload plugin, you'll have to either grab struts2 >> from svn and build it yourself, or download the snapshot from one of >> the nightly repositories. Once you have a snapshot build of struts2, >> you can download the source for the new plugin here - >> >> http://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-fileupload-plugin/ >> >> There is documentation available here - >> >> http://cwiki.apache.org/S2PLUGINS/advanced-fileupload-plugin.html >> >> Out of the box, one of the things this does differently is that it >> exposes an action in your app that will render a JSON string providing >> some status on a user's uploads. So, if you go to >> /contextroot/upload/status.action a JSON string will be returned with >> the # of bytes retrieved. >> >> Anyhow, it's in the sandbox right now and I'm hoping for feedback >> before moving it out. Any help is appreciated! >> >> -Wes >> >> -- >> Wes Wannemacher >> Author - Struts 2 In Practice >> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more >> http://www.manning.com/wannemacher >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> > > _________________________________________________________________ > Hotmail® has ever-growing storage! Don’t worry about storage limits. > http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009 -- Wes Wannemacher Author - Struts 2 In Practice Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more http://www.manning.com/wannemacher --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org