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.

All the logic de<strong>di</strong>cated to the graphical creation of the <strong>di</strong>agram is on the client-side of the tool.The MVC-WebFlow Javasctip library is composed by all the .js files, functions and variables whichexploit the Draw2D and the Yahoo! YUI libraries to realize the graphic interface of the tool. Thelibraries are enough complex and going into the details of all their functionalities would be heavyand useless to describe the general structure.The server-side components are quite simple and they have the hard task to take the XML stringdescriptor of the project saved by the client application, to parse it and to generate thecorrespon<strong>di</strong>ng Web application structure and code, based on theJakarta Struts framework. For the moment the generation is onlypartial and this components make the basilar structure of theapplication. The application structure will be composed of two<strong>di</strong>rectory, one with the web application files (configuration files, JSPpages, ...) and the other with all the necessary Jakarta Struts files (toput in the parent folder of the application <strong>di</strong>rectory). In the near figurewe can see the tree structure of the application created that will beavailable for the download, in zip format, after the buil<strong>di</strong>ng.We can analyze in details the content of each of this folders to see the real composition of theWeb application that the tool will generate starting from the poject-descriptor.xml file, which isthe configuration file of the MVC-WebFlow <strong>di</strong>agram saved by the client application.project name folder is the main folder and contains:o JSP pages (the view of the application) and project-descriptor.xml fileo WEB-INF folder is the private folder with the configuration files for a strutsapplication, in particular it contains: The struts-config.xml file, the web.xml file, and the validation.xml file if theapplication requests the struts framework validation classes folder: with the compiled Java class files src folder: with the source Java class files to be compiled, it contains theAction classes correspon<strong>di</strong>ng to the Action unit of the <strong>di</strong>agramstruts folder is the folder de<strong>di</strong>cated to host all the files to make Jakarta Struts working:o dtd folder: with the Document Type Definition fileso lib folder: with the .jar files of the struts libraryo taglib folder: with all the Tag Library Descriptor files usable in the view of theapplication like the struts-html.xml or the struts-html-el.xmlo validator folder: it contains the validators-rules.xml file, with the validation strutsrules, and a trace of validation.xml file to use for the generation of the personalvalidation file of the applicationThe packages defined in the server source resources are the ApplicationFiles package, the Utilpackage and in ad<strong>di</strong>tion the Jdom package, a library package needed for the XML parsing.62

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

Saved successfully!

Ooh no, something went wrong!