You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Scott Stirling <sc...@rcn.com> on 2004/10/27 00:34:14 UTC

converting Struts app to Tapestry

Hi,

I am new to Tapestry and very interested in using it. I was the NFJS
symposium last weekend and heard a lot of good things about it and attended
one of Howard's talks. I am wondering if there's any sort of conversion
process, high-level as it might be, to taking an existing Struts-based app
and turning it into a Tapestry app. I'm not looking to automate it -- just
looking for pointers.

Thanks,
Scott Stirling
Framingham, MA



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


RE: converting Struts app to Tapestry

Posted by Scott Stirling <sc...@rcn.com>.
Thanks, Eric. I read a bunch of Howard's book tonight and I can see what you
mean, totally. I really like Tapestry. It's so much different from Struts,
and makes more sense to me than Struts.

OK, I have some learning to do. The Spindle plugin is great too. I'll pop
back later.

Thanks,
Scott S.

> Sent: Tuesday, October 26, 2004 7:04 PM
>
> Scott,
>
> It's a fairly radical difference between Struts and it's
> ActionForms/Actions behind the scenes to Tapestry's listeners with your
> own model underneath, not to mention the templates are vastly
> different.
>
> It may be possible to still use your ActionForm's as the model, move
> your Action.execute() code to listener methods, and convert the JSP (or
> Velocity) pages to .html templates substituting taglibs with
> components.  But that would be a fair bit of work manually and more
> than likely would produce not-so-good Tapestry.
>
> It's sort of like asking how you could convert a COBOL program to Java.
>   You could put it all under a 'static public void main(String args[])'
> method, but it would be pretty horrible Java code without radically
> re-doing things.
>
> It would be possible, however, to let both frameworks co-exist and
> migrate pages to Tapestry as you touch them rather than doing it all at
> once.
>
> 	Erik
>
>
> On Oct 26, 2004, at 6:34 PM, Scott Stirling wrote:
>
> > Hi,
> >
> > I am new to Tapestry and very interested in using it. I was the NFJS
> > symposium last weekend and heard a lot of good things about it and
> > attended
> > one of Howard's talks. I am wondering if there's any sort of conversion
> > process, high-level as it might be, to taking an existing Struts-based
> > app
> > and turning it into a Tapestry app. I'm not looking to automate it --
> > just
> > looking for pointers.
> >
> > Thanks,
> > Scott Stirling
> > Framingham, MA



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


Re: converting Struts app to Tapestry

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
Scott,

It's a fairly radical difference between Struts and it's 
ActionForms/Actions behind the scenes to Tapestry's listeners with your 
own model underneath, not to mention the templates are vastly 
different.

It may be possible to still use your ActionForm's as the model, move 
your Action.execute() code to listener methods, and convert the JSP (or 
Velocity) pages to .html templates substituting taglibs with 
components.  But that would be a fair bit of work manually and more 
than likely would produce not-so-good Tapestry.

It's sort of like asking how you could convert a COBOL program to Java. 
  You could put it all under a 'static public void main(String args[])' 
method, but it would be pretty horrible Java code without radically 
re-doing things.

It would be possible, however, to let both frameworks co-exist and 
migrate pages to Tapestry as you touch them rather than doing it all at 
once.

	Erik


On Oct 26, 2004, at 6:34 PM, Scott Stirling wrote:

> Hi,
>
> I am new to Tapestry and very interested in using it. I was the NFJS
> symposium last weekend and heard a lot of good things about it and 
> attended
> one of Howard's talks. I am wondering if there's any sort of conversion
> process, high-level as it might be, to taking an existing Struts-based 
> app
> and turning it into a Tapestry app. I'm not looking to automate it -- 
> just
> looking for pointers.
>
> Thanks,
> Scott Stirling
> Framingham, MA
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


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