-
Notifications
You must be signed in to change notification settings - Fork 5
Agilefant architecture & technologies
-
Struts (http://struts.apache.org/primer.html) is used for mapping URLs to java methods (conf/classes/strutx.xml and conf/classes/struts-ajax.xml and conf/classes/struts-ajax/*.xml) and for rendering pages with JSP markup language (http://www.jsptut.com/). The jsp files can be found in folder web/WEB-INF/jsp/.
-
Ajax calls are not rendered using JSP, the actions return data in the JSON format (note @JSON annotations on those actions)
-
Hibernate ORM (http://www.hibernate.org/docs) is used for mapping the java classes to the database.
-
Spring framework (http://www.springsource.org/get-started) is used for database access
Some more pointers about the source files: - The classes used for Struts actions (configured in the .xml files I mentioned above) are in src.fi.hut.soberit.agilefant.web - Business model interfaces src.fi.hut.soberit.agilefant.business and their implementations business.impl - Models for database tables src.fi.hut.soberit.agilefant.model - The classes or DAOs (Data access object) which do the database queries can be found in src.fi.hut.soberit.agiefant.db
Simplified query would be something like this: → url is parsed and the corresponding class method (configured in struts xml files) is called → the mapped method calls a method in a business implementation class → data is fetched from the database using DAO(s) → the resulting page is rendered using JSP or if the request is ajax, JSON is returned