Hi guys,
I'm just a Struts 2 (heavy) user, but I think I can contribute with that.
Sometime ago I wrote a Struts Interceptor and a Sitemesh Decorator Mapper
that can apply a different (sometimes empty) decorator when you have an ajax
request:
I use it to graceful
Yeah, true enough. Although the 2 things I never "loved" with rails were
resolving multiple action methods with all the different validations and
before_ hooks, etc that you only wanted to run for one or two of the
methods, and 2) empty active record models. But that's a different
discussion :)
Sounds good. If you can, I think you should share it. Host it at
googlecode, add it to the plugin registry and announce it on the users
list. There's plenty of S2 plugins hosted at googlecode, some that have
many downloads. If its popular and useful it'll soon be noticed. That's
how SmartURL
Hey Jeremy,
Thanks for writing back. I was kind of starting to wonder if I wasn't
supposed to be posting to this list :).
I really like portions of the REST plugin, but I wanted to be able to
leverage a lot of the interface and class level patterns in Struts (ie, 1
class 1 action), so I ended up
Blake Byrnes wrote:
I dealt with the ajax result discrepency (ie, if you make an ajax request,
you generally want a different result, but probably want to share the same
action) by writing a few things:
1) A sitemesh filter that ignores requests with the content header
X-Requested-With=XMLHttpReq