Hi Paul,
Thanks for your reply.
Is it possible to call a resource in another resource such a *String* ?
URL="pathA/{ad}"
Thanks?
Paul Sandoz wrote:
>
> Hi Cemo,
>
> As you noted the tricky bit is letting the application inform the
> runtime what the internal redirection will be.
>
>
> A simple solution is for the resource to implement a standard
> validation interface a method of which is invoked with method details
> of the method for which validation failed, and perhaps why validation
> failed.
>
> Or one can specify the method name to invoke with the same parameters
> as the validation method:
>
> @POST
> @Path("pathA")
> @ValidationEnabled("failed")
> public Response postPageA(@Inject Account acc) { ... }
>
> public Response failed(Account acc) { ... }
>
> Currently you will need to ensure that the failed method has the same
> return type, otherwise you will get an error from the runtime, unless
> you thrown an exception that is mapped to a response from the AOP-ed
> logic.
>
> Paul.
>
>
--
View this message in context: http://n2.nabble.com/Call-another-Resource-with-some-other-values-tp4205347p4249498.html
Sent from the Jersey mailing list archive at Nabble.com.