Re: Problem with Struts 2 JSON RPC using simple HTTP Post (not using DOJO)

2009-12-03 Thread Musachy Barroso
it is a list in the v1 of the spec http://json-rpc.org/wiki/specification "params - An Array of objects to pass as arguments to the method." the name of the parameters is irrelevant, only the order is. musachy On Thu, Dec 3, 2009 at 4:31 PM, Musachy Barroso wrote: > I take it back, sorry. The

Re: Problem with Struts 2 JSON RPC using simple HTTP Post (not using DOJO)

2009-12-03 Thread Musachy Barroso
I take it back, sorry. The problem is that JSON RPC expects "params" to be a list, and it is coming as a map, I haven't kept up with the "spec", is it a map these days? musachy On Thu, Dec 3, 2009 at 4:28 PM, Musachy Barroso wrote: > It seems like one of the fields of TransportAssignmentVO is a

Re: Problem with Struts 2 JSON RPC using simple HTTP Post (not using DOJO)

2009-12-03 Thread Musachy Barroso
It seems like one of the fields of TransportAssignmentVO is a list, and what is coming from the JSON objects looks more like a map, can you set a break point on ClassCastException exceptions and tell us what the field is? or post the setter/getters of TransportAssignmentVO. musahcy On Thu, Dec 3

Problem with Struts 2 JSON RPC using simple HTTP Post (not using DOJO)

2009-12-03 Thread Jeet08
I have developed a native client interface which calls struts2 JSON RPC using post method. I have set content type, content length as suggested in the spec. The request body looks like as follows : {"method": "uploadTxpAssignment","id": "txpUploadRequest", "params":{"addressByDestAddrId":{"addrLin

Re: Parameters after the action name, annotation based config not working

2009-12-03 Thread Musachy Barroso
Unfortunately wild card doesn't work really well with convention in 2.1.8. You would have to use trunk. If you use trunk, you could use the advanced wild cards, which are more flexible, and easier to use(they were written for that exact use case): http://struts.apache.org/2.x/docs/wildcard-mapping

Parameters after the action name, annotation based config not working

2009-12-03 Thread Illes, Szabolcs
Hi All, I'd like to report a possible bug in struts2 annotation based action mapping: I wanted to have slashes in my action names and use them as parameters (REST style service) For example: The action name is /opds/0028-0838/2009 and is mapped to EPubOPDSAction The problem is

Re: S2 Type conversion error and validation problem

2009-12-03 Thread Wes Wannemacher
On Wed, Dec 2, 2009 at 9:22 AM, Marsman wrote: > > Hi! > > after a type conversion error, Struts goes on in the interceptor stack and > validates the empty action property with useless results. How can I avoid > this? (I'm using the default interceptor stack.) And how can I avoid the > NoSuchMetho

Losing ActionForm Data on submit

2009-12-03 Thread davargas123
So, I have an issue where when I submit a form, instead of the corresponding ActionForm being populated with the correct field data, it remains unpopulated for a reason unknown to me. Here is the form on my JSP page(js functions provided for clarity, very simple): function encryptSSN(){

Re: How to get the key name

2009-12-03 Thread Saeed Iqbal
I am sorry i dont think i can be of any more help On Thursday, December 3, 2009, wrote: > Ok, now I know what you mean the key, you mean ${getText(label.name)} ? > But that is not that I want, if I hard code the key name there, that defeat > the whole reuse purpose. > I want something similar l

Re: How to get the key name

2009-12-03 Thread mailtolouis2020-struts
Ok, now I know what you mean the key, you mean ${getText(label.name)} ? But that is not that I want, if I hard code the key name there, that defeat the whole reuse purpose. I want something similar like fieldName but for key. fieldName is a constant variable from struts, when I write the code lik

Re: How to get the key name

2009-12-03 Thread Saeed Iqbal
No not that key="i8nl.nameKey" Send me your file On Thu, Dec 3, 2009 at 5:27 PM, wrote: > No, I changed my property to this > error.required = ${getText(key)} is required. > > It is not working. > > > > > From: Saeed Iqbal > To: Struts Users Mailing List > Se

Re: How to get the key name

2009-12-03 Thread mailtolouis2020-struts
No, I changed my property to this error.required = ${getText(key)} is required. It is not working. From: Saeed Iqbal To: Struts Users Mailing List Sent: Thu, December 3, 2009 9:56:29 AM Subject: Re: How to get the key name Yes key is in struts. See the docs.

Re: How to get the key name

2009-12-03 Thread Saeed Iqbal
Yes key is in struts. See the docs. On Thu, Dec 3, 2009 at 2:54 PM, wrote: > Hi, > > Sorry, I think you misunderstanding my question. > > My main question is fieldName give me the name attribute value, but I want > to get my key attribute value, is there anything like fieldKey or something > ? >

Re: How to get the key name

2009-12-03 Thread mailtolouis2020-struts
Hi, Sorry, I think you misunderstanding my question. My main question is fieldName give me the name attribute value, but I want to get my key attribute value, is there anything like fieldKey or something ? fieldName = user.name ?? = label.name Thanks LV

Re: [S2] xhtml theme freemarker syntax

2009-12-03 Thread mailtolouis2020-struts
Thanks for the info. From: Greg Lindholm To: Struts Users Mailing List Sent: Wed, December 2, 2009 8:55:51 PM Subject: Re: [S2] xhtml theme freemarker syntax Easy to find in the Freemarker docs. http://freemarker.org/docs/ref_directive_t.html On Wed, Dec 2,