[opencms-dev] Model View Controller and OpenCMS

Raúl Lorenzo raul.lorenzo at altia.es
Thu Apr 19 08:48:29 CEST 2007


Hello,

Christoph P. Kukulies escribió:
> On Wed, Apr 18, 2007 at 04:43:32PM +0200, Ra?l Lorenzo wrote:
>> Hello,
>>
>> I am trying to implement a site with OpenCMS using MVC pattern. Someone 
>> has done it?
> 
> Wouldn't the approach be better done directly with Java classes.
Do You mean that the view were implemented in a Java Class and this java 
class return the output view to the JSP? If this is right then the JSP 
won´t be itself a view Layer. And if the JSP has some presentation logic?


> You gotta keep such a thing going with a message loop or something.
> I've implemented such a thing in Objective C, but that was in 1990 or
> so :-)
> 
> --
> Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
> 
>> Next are some theories:
>>
>> I want that JSP only has View Logic. So JSP shouldn´t know something 
>> about Controller and Model.
>> The controller, in teorical context, were the Servlets; but OpenCMS 
>> implements it´s own Servlet.
>>
>>
>> OpenCMSServlet -> (fordward to resource requested, p.example a JSP) -> 
>> So with this focus the view always call a Controller or a class inside a 
>> Jar Library.
>>
>> My trying is something like this,
>>
>> OpenCMSServlet -> MainJSP (In this MainJSP forward to a new mainServlet 
>> for the site I am creating) -> MainSiteServlet -> MVC starts here.
>>
>> What do you think? Any Idea?
>>
>> Thanks in advance
>>
>>
>> -- 
>> Raúl Lorenzo Boullosa
>> Desarrollador Aplicaciones Informáticas
>>
>> Altia Consultores S.L.
>> http://www.altia.es
>>
>> C/Pontevedra nº 4, 6º
>> 36201 Vigo (Pontevedra - España)
>> Telf: +34 986 446 191
>> Fax: +34 986 439 128
>> Email: raul.lorenzo at altia.es
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
> 
> 

-- 
Raúl Lorenzo Boullosa
Desarrollador Aplicaciones Informáticas

Altia Consultores S.L.
http://www.altia.es

C/Pontevedra nº 4, 6º
36201 Vigo (Pontevedra - España)
Telf: +34 986 446 191
Fax: +34 986 439 128
Email: raul.lorenzo at altia.es



More information about the opencms-dev mailing list