Based on my understanding this is my first attempt at mapping
Struts to Tapestry. Given the fact that i have'nt spent enough time with tapestry, it is very likely that i might have commited some glaring errors. Please correct me wherever i have gone wrong.
Tapestry at the minimum needs to have a page template,page specification and a page class.
TapestryStruts
---------------------------------
page template(HTML with tapestry tags)=>
jsp with struts tags
page specification(template-page class mapping)=>
page=> Action and ActionForm
merged into one?,
so data and business logic merged into one?)
[STRUTS]
in Struts generally speaking there is only one struts-config.xml everybody is workign with.
[TAPESTRY]
But there seems to be a page specification for every page that you have in your application (Taperstry). So there is no
clearcase merge problems to deal with ;-)
----------------------
[STRUTS]
in struts-config.xml we map an action to a form. So the target JSP renders using the properties from the form.
[TAPESTRY]
The pagespecification maps every component that you have in the page template to a property in the Page class that you defined. So the component -> value mapping has been taken out of the template and put in another configuration file?.
----------------------
[STRUTS]
Every action gets submitted to the appropriate Action class. Based on the action (inspecting the request parameters) you might execute different methods if you have the same Action class mapped to different actions.
I'm referring to LookUpDispathAction here.
[TAPESTRY]
Every action possible on the page template is mapped to a method in the page class (The method declaration needs to be according to a specific contract just like execute() in Struts). They are called listeners?
you indicate the action-listener mapping in the page template itself along with the component that will trigger this action.
----------------------
I know its pretty basic but feel this c'd be a starting point.