Re: Anyway to map properties to different request names?

2014-11-05 Thread Heikki Hyyrö
Paul Benedict kirjoitti 5.11.2014 kello 22.54: > It bothers me that the Java programming model dictates the parameter names. > In theory "personId" could be sent as "a" -- although a variable named "a" > in Java is bad naming conventions. There isn't a good technical reason to > keep this 1:1 mapp

Re: Anyway to map properties to different request names?

2014-11-05 Thread Paul Benedict
It bothers me that the Java programming model dictates the parameter names. In theory "personId" could be sent as "a" -- although a variable named "a" in Java is bad naming conventions. There isn't a good technical reason to keep this 1:1 mapping. The shorter the bytes sent too the better And i

Re: Anyway to map properties to different request names?

2014-11-05 Thread JOSE L MARTINEZ-AVIAL
You only need to set the attribute name of the field You can even use a different Id, if you want to refer to the field in javascript. Why does it bother you? 2014-11-05 15:39 GMT-05:00 Paul Benedict : > Let's say I have a getter/setter for field personId. That means in my > markup, I need to

Anyway to map properties to different request names?

2014-11-05 Thread Paul Benedict
Let's say I have a getter/setter for field personId. That means in my markup, I need to have a field named personId too. However, I am not really found of bleeding Java naming conventions into my web page. Shouldn't there be a way -- is there a way? -- of assigning another name to it? Hopeful exam

Re: Struts 2 JSON plugin change in finding the target action instance problem Pavel Ilyushko Original Poster Greenhorn Joined: Nov 05, 2014 Posts: 1

2014-11-05 Thread Lukasz Lenart
2014-11-05 13:41 GMT+01:00 Pavel Ilyushko : > Hi there! > > Thanks for a swift reply. > > Actually, re-defining the root is what I applied as a work-around. > > So in my struts.xml I have this (to fix setting the parameters on the > action): > > > action >

Re: Struts 2 JSON plugin change in finding the target action instance problem Pavel Ilyushko Original Poster Greenhorn Joined: Nov 05, 2014 Posts: 1

2014-11-05 Thread Pavel Ilyushko
Hi there! Thanks for a swift reply. Actually, re-defining the root is what I applied as a work-around. So in my struts.xml I have this (to fix setting the parameters on the action): action and also for each json action type I have this (to

Re: Struts 2 JSON plugin change in finding the target action instance problem Pavel Ilyushko Original Poster Greenhorn Joined: Nov 05, 2014 Posts: 1

2014-11-05 Thread Łukasz Lenart
You can redefine root http://struts.apache.org/release/2.3.x/docs/json-plugin.html#JSONPlugin-RootObject 2014-11-05 12:13 GMT+01:00 Pavel Ilyushko : > Hello there! > > Recently I've upgraded our struts2 framework and its related plugins (eg: > json plugin) from version 2.1.8 to version 2.3.16.3.

Re: Struts 2 JSON plugin change in finding the target action instance problem Pavel Ilyushko Original Poster Greenhorn Joined: Nov 05, 2014 Posts: 1

2014-11-05 Thread Lukasz Lenart
You can re-define root http://struts.apache.org/release/2.3.x/docs/json-plugin.html#JSONPlugin-RootObject 2014-11-05 12:13 GMT+01:00 Pavel Ilyushko : > Hello there! > > Recently I've upgraded our struts2 framework and its related plugins (eg: > json plugin) from version 2.1.8 to version 2.3.16.3.

Struts 2 JSON plugin change in finding the target action instance problem Pavel Ilyushko Original Poster Greenhorn Joined: Nov 05, 2014 Posts: 1

2014-11-05 Thread Pavel Ilyushko
Hello there! Recently I've upgraded our struts2 framework and its related plugins (eg: json plugin) from version 2.1.8 to version 2.3.16.3. Now I'm having problems in using the json plugin while making json requests and returning the json responses. The problem is that the parameter values passe