struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M. Rakowski" <matth...@rakowski.biz>
Subject rest-plugin: paramPrepareParam + Namespaces
Date Tue, 30 Aug 2011 17:25:15 GMT
i have some questions about the rest-plugin:

1) paramPrepareParam-Stack:
It seems that the rest plugin does not support paramPrepareParam-Stack. 
The setId-method is always called after the prepare-Method.
Is the only way to solve it to use the query string
(action?id=xy instead of action/xy) or to call the prepare-method within 
show() (without paramPrepareParam-Stack)?

2) Namespaces:
When i define an action "foo" under the root-namespace (instead of 
default), then "There is no Action mapped for..." happens when i want to 
hand over an id-param (calling foo/123).

I put some Sysout-s in the RestActionMapper and i get "foo" as
full action name (instead of "/foo") which leads to the exception
(when i change that in the RestActionMapper-Class, the exception is gone).

What am I doing wrong?

Thanks,
Matthias

PS: i use Struts2 2.2.3





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message