struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Oliver" <oliv...@sourceonenet.com>
Subject RE: Struts 2.0 or Struts 0.0?
Date Tue, 01 Feb 2005 15:11:59 GMT
Ted and I started "Axis4Struts" a while ago, but...didn't get much
activity and it died a slow death.  The goal was stated to be "allow
SOAP access to existing and new Struts Applications so the SOAP actor is
just another user of the View of the Struts MVC."

So, given the Shale features, can Shale be interoperable with existing
Struts 1.n applications?  That is to say can a Shale CoR include Struts
Actions?  Can a Shale Action be a wrapper for an existing Struts Action,
etc.

Michael Oliver
CTO
Alarius Systems LLC
3325 N. Nellis Blvd, #1
Las Vegas, NV 89115
Phone:(702)643-7425
Fax:(520)844-1036
*Note new email changed from oliverm@matrix-media.com

-----Original Message-----
From: Craig McClanahan [mailto:craigmcc@gmail.com] 
Sent: Monday, January 31, 2005 8:43 PM
To: Struts Users Mailing List
Subject: Re: Struts 2.0 or Struts 0.0?

On Mon, 31 Jan 2005 21:04:34 -0600, Vic <vin@friendvu.com> wrote:
> Craig McClanahan wrote:
> 
> > I have proposed that Shale indeed be adopted in that way, and
> >will continue to encourage it; 
> >:-)
> >
> (It took me a year after Struts .06 was out to find it, it took me a
> year to use CoR after that was there .... )
> 
> Remember the WS for Struts at sf.net a week back?
> If I wanted to wire a WS (ex: Hessian, JMS, REST,
>
http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.
html
> (also used by Flash/Flex ;-) or ad noseum) ... would Struts+CoR or
Shale
> be better on technical points?
> (right now I use CoR string dispatcher taking http requests)
> 

Shale, as of last Saturday, implements a pattern for doing REST-ful
requests from clients ... such as JavaScript methods running
XmlHttpRequest requests, or Flash remoting, or ... that maps incoming
URLs to a corresponding CoR chain or command.  Even though there
aren't any client side examples of this yet, you can see it in action
by downloading the Use Cases example app, deploying it on your
favorite container, and then executing a query like:

 
http://localhost:8080/struts-shale-usecases/list/supportedCategories.rem
ote

or

 
http://localhost:8080/struts-shale-usecases/list/supportedLocales.remote

and you'll get back an XML response.  The requests that match a
specified URL pattern (in the example app it's *.remote) are passed to
a special handler that constructs a specialized CoR Context object
(org.apache.shale.remote.RemoteContext) that makes it easy to do
REST-type queries (including using request parameters to configure
queries), to create XML responses (if you want to do it
programmatically, check out the ResponseWrapper API), and to create
unit tests for your remote commands (because RemoteWrapper isolates
you completely from the servlet API, so it is very easy to mock).

You can do the same thing functionally with Struts 1.x and an Action
that maps a request to a chain, but it's easier to develop and test
the server side functionality with Shale.

> .V

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message