You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@portals.apache.org by Cocula Remi <rc...@sopragroup.com> on 2007/01/23 10:24:13 UTC

General question about Struts Bridge

 
Hi,
 
I am using Struts Bridge to deploy a big struts application as a portlet and I must face several problems. 
I noticed that the main difficulties come from the fact that a single struts request is devided in two ; ActionRequest 
and RenderRequest. 
But the way it is done in Struts Bridge does not worj properly in case of action chaining. 
Indeed Struts Bridge ends the ActionRequest at the first forward. So the first action forwards toward another action 
the second action  will be processed into the RenderRequest and, due to the nature of the Renderrequest, the request parameters 
are lost. 
 
To deal with that problem I had to write a mechanism to save request parameters just before the first forward, so they still 
can be readen in the renderRequest. 
 
I wonder if it's normal to do so, or if  I mised something in my understanding of Struts Bridge. 
 
Another problem is that man must list every attributes that should be transfered from ActionRequest to renderRequest. Is there a way to save and restore 
every attributes without having to explicitly declare them in a configuration file ?
 
-------

RĂ©mi Cocula
Division immobilier - R&D ULIS
Sopra Group
Tel. : +33 (0)4 72 18 47 13 - Fax : +33 (0)4 72 18 48 01
email : rcocula@sopragroup.com