struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonios Gkogkakis <>
Subject Re: REST Mappers
Date Sun, 09 Dec 2012 13:09:36 GMT
No Lukasz, I'm afraid I haven't

I've just had a quick look at the REST plugin in the trunk,  I'm assuming
that's the new version of the plugin you are referring to,
and I remembered that apart from the convention plugin issues we had,
another issue, was that every time we had a non REST action
being called. the RestActionMapper, would find it in the configuration and
would  treat it as a rest action with no method, so it would try to guess
the method and fail because the method didn't exist in the Action class. By
having a quick look at the code, I think we will still have that issue.
P.S I'm not seeing anything related to the in the

On 9 December 2012 10:36, Lukasz Lenart <> wrote:

> 2012/12/9 Antonios Gkogkakis <>:
> > It is indeed an attempt to support RESTful urls.
> > When we wanted to add REST support to our existing struts2 app(using xml
> > config and not the convention plugin), we found that using the
> > Restful2ActionMapper with the PrefixBasedActionMapper which chooses
> > the appropriate ActionMapper based on a namespace, was the most
> > straightforward and less intrusive approach. Existing actions, were not
> > affected at all, and new actions where handled by the restful2 action
> > mapper, in their own namespace.
> > Had we wanted to use the more modern REST plugin, we would have to
> refactor
> > the app to use the convention plugin. I'm not sure whether
> > that's a straightforward task, but back then we encountered a few issues
> > and gave up.
> > So I think that for existing apps not using the convention plugin, which
> > wish to add REST support, the RestFull2ActionMapper
> > is still a viable solution
> Thanks Antonios!
> Did you try to use the new REST plugin without Convention plugin ?
> REST plugin can work with XML based configuration as well and it has
> support for namespace prefix -
> Regards
> --
> Ɓukasz
> + 48 606 323 122
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message