I tried to include a tapestry page into a struts/tiles template. The tiles template with the usual left navigation, page head, page body, and page footer. The tapestry page should take the part of the page body. The tiles page body definition forwards to struts action from which I call requestDispatcher.include.
With tapestry 3.0.3 I got an exception caused by tapestry using response.getOutputStream to write the result page. Struts already used response.getWriter, thus you will get an IllegalStateException. This shows that it in not easily possible to merge struts and tapestry "deeply". There is however good news. Tapestry 4 is using response.getWriter and then it is possible to include the tapestry page. Dirk 2005/6/9, Erik Hatcher <[EMAIL PROTECTED]>: > It's worth it! As for how-to's - there are so many ways to write > both Struts and Tapestry applications and they are quite different > paradigms that it's a rewrite of the presentation tier. But, you can > add Tapestry into a Struts application one new page at a time and > convert existing ones when time permits - so they can co-exist for a > less drastic transition. > > Erik > > On Jun 8, 2005, at 4:14 AM, Masrawi wrote: > > > Hi, > > > > I am new to tapestry but have read about it and like it a lot, now > > I am > > faced with a chalenge, I have an existing application in struts that I > > have not written (and never used struts before) and have been doing > > all > > my applications in turbine. now the question is if I can make the > > porting of this app to tapestry, we will be using tapestry for the > > rest > > of the new applications we develop, otherwise I will have to learn > > struts and get stuck with it. > > so is it worth the effort and is there any howto's on this kind of > > migration that would make it as painless as possible? > > > > thanks > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
