Hi Johannes,
If I recall correctly S2 Rest plugin allows to define a default-error location.

@Results({
        @Result(name = "default-error", location = "error.jsp")
})

Twitter     :http://www.twitter.com/m_cucchiara
G+          :https://plus.google.com/107903711540963855921
Linkedin    :http://www.linkedin.com/in/mauriziocucchiara
VisualizeMe: http://vizualize.me/maurizio.cucchiara?r=maurizio.cucchiara

Maurizio Cucchiara


On 12 October 2012 19:01, Johannes Geppert <[email protected]> wrote:
> How to define Validation when using REST Plugin.
>
> The REST Showcase produces following LOG Messages:
>
> 2012-10-12 18:42:52,596 DEBUG
> (org.apache.struts2.rest.RestWorkflowInterceptor:68) - Errors on action
> org.demo.rest.example.OrdersController@475b32ea, returning result name
> 'input'
> 2012-10-12 18:42:52,598 DEBUG
> (org.apache.struts2.interceptor.MessageStoreInterceptor:68) - exit executing
> MessageStoreInterceptor
> 2012-10-12 18:42:52,598 DEBUG
> (org.apache.struts2.rest.RestActionInvocation:68) - No result returned for
> action org.demo.rest.example.OrdersController at null
>
> I have try to define an additional Result
>
>     @Result(name="input", location = "orders-editNew.jsp")
>
> but it has no effect.
>
> Sorry I never worked with REST Plugin in real world. :-)
>
> Johannes
>
>
>
> -----
> web: http://www.jgeppert.com
> twitter: http://twitter.com/jogep
> --
> View this message in context: 
> http://struts.1045723.n5.nabble.com/Twitter-Bootstrap-for-the-REST-Showcase-tp5710774p5710788.html
> Sent from the Struts - Dev mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to