13.07.2015 Views

Thesis full text PDF - Politecnico di Milano

Thesis full text PDF - Politecnico di Milano

Thesis full text PDF - Politecnico di Milano

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

We offer an online design tool that provides both solid model-driven design featurestypical of Web Engineering and quick application evolution thanks to a Web based interface thatdoes not require a rigid development process; We provide basic on the fly code generation on Model 2 reference architectures (at themoment, we provide code generation for Struts), with special attention to the specification ofthe Controller.The advantages of MVC architectures are well known. They allow the developer to design theWeb application defining three separate levels: Model, View and Controller. In complexapplications, separation of concerns is fundamental; MVC allows it by separating data andbusiness object (the Model), user interface aspects (the View), and the rules that control theexecution logics of the application (the Controller). MVC decouples business logics and dataaccess from the presentation thanks to the Controller interme<strong>di</strong>ate component. For the Web, aspecial version of MVC called Model 2 (also called MVC-2) has been stu<strong>di</strong>ed.Figure 4.1 – Architecture of a typical MVC applicationIn our proposal, we offer automatic code generation on the Jakarta Struts platform, animplementation of the Model 2 para<strong>di</strong>gm. From an implementation point of view, theconfiguration of the Jakarta Struts controller is specified in the file struts-config.xml, that33

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!