Hi Joshua,

It ain't actual REST (no verbs), but you can even do a very cool thing with
Stripes (using interceptors) : you can easily transform an existing app's
ActionBeans to a fully working RPC backend. You can easily turn
"GUI-oriented" beans into endpoints that return JSON (or XML or whatever
you want), and therefore factor out a lot of code, keep URLs consistent
etc.

For example :
/view/MyStuff/123 -> return HTML
/view/MyStuff/123?isRpc=true -> return JSON

Just using a single additional parameter, you can decide to return JSON or
a regular Resolution. This one is a contrived example, but it actually
works on complex action beans. You use the same code in order to grab the
bean, bind everything, handle validation errors, and call the event
handler... The only bit of code you need to write is the return of an
alternate, "rpc-enabled" Resolution instead of the classical Forward or
Redirect.

Basically opens your app to any program that can send HTTP requests and
understands JSON.

My 0.02$

Rémi








2014-03-07 20:43 GMT+01:00 Joshua Chaitin-Pollak <[email protected]>:

> As a personal anecdote, as we migrate more and more of our server-side
> services to an AJAX / REST api, we are finding limitations with Stripes, so
> we will most likely phase it out and migrate to something else. If Stripes
> had better support for some REST needs (changing response codes and other
> HTTP headers), listening for specific HTTP method calls, etc, we might
> stick with it.
>
> -Josh
>
>
> On Fri, Mar 7, 2014 at 9:44 AM, VANKEISBELCK Remi <[email protected]> wrote:
>
>> Hi Cody, folks,
>>
>> We've had this discussion already in the past, several times if I
>> remember well.
>>
>> There always have been those "phases" where nothing happens on the MLs or
>> JIRA, and people tend to perceive this as a sign of the framework "dying
>> off", as you say.
>>
>> But in the end, there's a lot of Stripes apps in production, which just
>> seem to work fine and don't really need no Stripes upgrades. I mean, there
>> ain't, AFAIK, no blocking feature or bug. It just works, and that's the
>> beauty of it !
>>
>> We rarely release because we simply just don't need to. Stripes is
>> simple, and works fine for us. Why should we bother try to change it ? And
>> bother the users who'd need to upgrade more frequently ?
>>
>> In case you need a major improvement or bug fix, I'm sure that you'll
>> find all help and contrib you need here. And we can release quite fast,
>> most of it is automated...
>>
>> Cheers
>>
>> Rémi
>>
>>
>> 2014-03-07 15:09 GMT+01:00 Cody Marquart <[email protected]>:
>>
>>> Is there still active interest in continuing the project?  Maybe we
>>> could find a new batch of contributors?  I would be willing for sure, as
>>> Stripes is still a key part of our technology stack.  I've always believed
>>> in the goal of the framework compared to the other main players and I would
>>> sure hate to see it die off entirely.
>>>
>>> -Cody
>>>
>>>
>>> On Thu, Feb 20, 2014 at 7:07 AM, Ben Gunter <[email protected]> wrote:
>>>
>>>> While I can't rule it out completely, there is no work being done
>>>> toward a new release at this time.
>>>>
>>>> -Ben
>>>>
>>>>
>>>> On Wed, Feb 19, 2014 at 5:39 PM, Dave <[email protected]> wrote:
>>>>
>>>>> Is there any plan on releasing a new version of Stripes in 2014?
>>>>> Please let
>>>>> me know. Thanks.
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Managing the Performance of Cloud-Based Applications
>>>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>>>> Read the Whitepaper.
>>>>>
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
>>>>> _______________________________________________
>>>>> Stripes-development mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/stripes-development
>>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Managing the Performance of Cloud-Based Applications
>>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>>> Read the Whitepaper.
>>>>
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Stripes-development mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/stripes-development
>>>>
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Subversion Kills Productivity. Get off Subversion & Make the Move to
>>> Perforce.
>>> With Perforce, you get hassle-free workflows. Merge that actually works.
>>> Faster operations. Version large binaries.  Built-in WAN optimization
>>> and the
>>> freedom to use Git, Perforce or both. Make the move to Perforce.
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Stripes-development mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/stripes-development
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Subversion Kills Productivity. Get off Subversion & Make the Move to
>> Perforce.
>> With Perforce, you get hassle-free workflows. Merge that actually works.
>> Faster operations. Version large binaries.  Built-in WAN optimization and
>> the
>> freedom to use Git, Perforce or both. Make the move to Perforce.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Stripes-development mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/stripes-development
>>
>>
>
>
> --
> Joshua Chaitin-Pollak
> Chief Technology Officer
> Assured Labor, Inc.
> www.assuredlabor.com
> www.empleolisto.com.mx
> www.trabalhoja.com.br
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to