New bridge proposal : supporting legacy servlets

2005-03-17 Thread Serge Huber
Hi all, I've been working the last few days on a new bridge. Basically the main goal is : how to rapidly convert existing servlet applications into portlets. I've looked at the GenericServletPortlet, but it didn't seem to offer much in the way of supporting legacy portlets. Just to make sure I'

Re: New bridge proposal : supporting legacy servlets

2005-03-17 Thread David Sean Taylor
Serge Huber wrote: Hi all, I've been working the last few days on a new bridge. Basically the main goal is : how to rapidly convert existing servlet applications into portlets. I've looked at the GenericServletPortlet, but it didn't seem to offer much in the way of supporting legacy portlets. J

Re: New bridge proposal : supporting legacy servlets

2005-03-17 Thread Serge Huber
On Mar 17, 2005, at 6:59 PM, David Sean Taylor wrote: Im wondering if any of the Struts bridge can also be leveraged here. Well I'm not an expert of the Struts bridge, but from my understanding the Struts bridge uses Struts' internal dispatching system to cut things in two : Struts action is pr

Re: New bridge proposal : supporting legacy servlets

2005-03-17 Thread Ate Douma
Serge Huber wrote: On Mar 17, 2005, at 6:59 PM, David Sean Taylor wrote: Im wondering if any of the Struts bridge can also be leveraged here. Well I'm not an expert of the Struts bridge, but from my understanding the Struts bridge uses Struts' internal dispatching system to cut things in two

Re: New bridge proposal : supporting legacy servlets

2005-03-17 Thread Roger Ruttimann
Ate Douma wrote: Serge Huber wrote: On Mar 17, 2005, at 6:59 PM, David Sean Taylor wrote: Im wondering if any of the Struts bridge can also be leveraged here. Well I'm not an expert of the Struts bridge, but from my understanding the Struts bridge uses Struts' internal dispatching system to cu

Re: New bridge proposal : supporting legacy servlets

2005-03-17 Thread Thomas . Koch
>Actually, the preferred way to use Struts within a Portlet is to use two >Struts Actions: one for processAction forwarding to a RenderAction which >in the end dispatches to a JSP. >But yes, if an Struts Action forwards to a JSP from within an ActionRequest >the Struts bridge will break in and def

Re: New bridge proposal : supporting legacy servlets

2005-03-18 Thread Serge Huber
Hi Ate, Thanks for the feedback, see below for my answers. Ate Douma wrote: Unfortunately for regular servlets this is not possible, as we don't necessarily have a two-phase process (controller -> view). If one wanted, they could do everything with just a JSP, or just a servlet, and it would

Re: New bridge proposal : supporting legacy servlets

2005-03-18 Thread Serge Huber
Hi Roger, Thanks for the feedback. I must say I used your work on the Perl/PHP bridges as a basis and they provided excellent starting points. My comments are below. Roger Ruttimann wrote: The PERL/PHP portlet bridges implement the ActionRequest for processing posted data. Post data is not avai

Re: New bridge proposal : supporting legacy servlets

2005-03-18 Thread Ate Douma
[EMAIL PROTECTED] said: >>Actually, the preferred way to use Struts within a Portlet is to use two >>Struts Actions: one for processAction forwarding to a RenderAction which >>in the end dispatches to a JSP. >>But yes, if an Struts Action forwards to a JSP from within an > ActionRequest >>the Strut

Re: New bridge proposal : supporting legacy servlets

2005-03-18 Thread Thomas . Koch
hi ate ! thank you very much for your explanation. now i understand a lot more. i read the readme.txt, but only now i understand it completely. thomas

Re: New bridge proposal : supporting legacy servlets

2005-03-18 Thread Serge Huber
Roger Ruttimann wrote: I changed the Perl portlet bridge so that it uses the rewriter class. The PHP portlet still uses the ScriptPostProcess but I plan to use the rewriter component for the PHP portlet bridgs as well. I suggest that we use the rewriter instead of custom implementation since it'

Re: New bridge proposal : supporting legacy servlets

2005-03-21 Thread Roger Ruttimann
I realized that the changes were not in CVS. I just submitted them for the Perl portals-bridges. PHP still uses ScriptPostProcess while Perl uses the rewriter component. Roger Serge Huber wrote: Roger Ruttimann wrote: I changed the Perl portlet bridge so that it uses the rewriter class. The PHP po

Re: New bridge proposal : supporting legacy servlets

2005-03-22 Thread Serge Huber
Hi Roger, Thanks a lot, I'll look at rewriting my code based on your Perl bridge. Regards, Serge Huber. Roger Ruttimann wrote: I realized that the changes were not in CVS. I just submitted them for the Perl portals-bridges. PHP still uses ScriptPostProcess while Perl uses the rewriter component. R