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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.2. Business requirements and functionalitiesIn our proposal, we want to offer an online graphic tool for the automatic code generation on theJakarta Struts platform, an implementation of the Model 2 para<strong>di</strong>gm. From an implementationpoint of view, the configuration of the Jakarta Struts controller is specified in the file strutsconfig.xml,that specifies the logics for invoking the action classes, the model objects playing asinterfaces toward the data sources and the business logic.Using the tool the developer is able to define the flow of the application, the view composed bythe JSP pages and the controller which process the user requests and acts as interme<strong>di</strong>arybetween the business logic and the view. The tool will be composed of a client-side graphicinterface, accessible by a browser, and a server-side environment (JSP script, Java Servlet andJava classes) devoted to the application code generation. The graphic interface of the e<strong>di</strong>tor isthe interactive part which allow the user to create the <strong>di</strong>agram inside the browser whichrepresents the application structure and flow.With the MVC-WebFlow tool the developer is able not only to design web application flow<strong>di</strong>agrams but also to store them on a server, to retrieve them and to generate the basic pieces ofthe Struts components, to give users to manage their personal profile and their personalapplication project. We automatically generate the contents of the struts-config.xml file and thestubs of the action classes from the <strong>di</strong>agram created using the model. The main advantageswhich the tool will grant to the developer are:A simple and quick design of the application model;A good overall vision of the application, with a notation <strong>di</strong>rectly referring to the MVCmodels;An independent design of the controller flow and of the called action;An easy reuse of parts of the application defined in the <strong>di</strong>agram.The tool will be realized for an online usage and based on RIA technologies. A Rich InternetApplication (RIA) is an Internet application that attempts to bridge the usability gap betweendesktop applications and tra<strong>di</strong>tional Web sites. At this purpose, it exploits the graphical andexecution capabilities of the clients (namely, the browsers), by ad<strong>di</strong>ng scripts into the pages,thus provi<strong>di</strong>ng higher quality of interactivity and an user experience. The most known platformfor RIAs is the AJAX framework, that we adopted for our implementation. In particular, we basedthe GUI of the tool on the opensource Openjacob Draw2D library and other AJAX technologies. Inthe 5.6 Software requirements and system architecture section we will analyze in depth thearchitecture and all the technologies used.47

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

Saved successfully!

Ooh no, something went wrong!