You simply can't just rip out portions of a Tapestry 
page as a JSP.  It's kind of like saying, "How do I pull 
the transmission out of my Formula-One race car and plug 
it into my lawn mower".

If you have to have forms inside JSPs, you can build 
them in the normal way and have them submit into 
Tapestry.  A Tapestry page can gain access to query 
parameters of the request and process them like a 
servlet can.  What you lose here is all the automatic 
processing of form fields, as well as the validation 
framework and all that.

You'll have to build a bridge between JSP and Tapestry; 
this will take the form of a new engine service.  Take a 
look at the external service in the Vlib as an example.

So, what you'd end up with is a JSP page that, when 
submitted, triggers behavior inside a Tapestry page.  
The flow of control would look like:

Form submits to Tapestry URL
Custom service activated, gets page name from service 
context
Locates page instance, casts to particular interface, 
invokes method
Method provided by page gets request parameters supplied 
by HTML form, does stuff with them
Page either renders response, selects another Tapestry 
page to render response, or forwards to a JSP to render 
a response


--
[EMAIL PROTECTED]

http://tapestry.sf.net
> Hi all,
> 
> We are looking at Tapestry to re-write an existing JSP
> based intranet portal. So far, it looks promising. We
> want to really exploit Tapestry's powerful features
> like component creation, html templates, writing
> interesting java code, localization, debugging etc. 
> 
> But I have the following critical issue. We have other
> JSP based sites which may refer some or most of the
> parts of our portal. For example, another portal may
> embed a form existing in our portal. If I re-write the
> application using Tapestry, how do I just re-use the
> form component in the other jsp based portal ? I don't
> want to simply re-direct, but, want to re-use or embed
> the form component in the jsp page. 
> 
> Has anybody faced similar kind of issue ? Any
> suggestions or solutions are highly appreciated.
> 
> Regards,
> Natesh
> 
> 
> __________________________________________________
> Do You Yahoo!?
> HotJobs - Search Thousands of New Jobs
> http://www.hotjobs.com
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> _______________________________________________
> Tapestry-developer mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/tapestry-developer


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to