Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

TODO: Documenting updated version (currently at http://www.i-tao.com/adminapp.htmlImage Removed). IN PROGRESS.

...

To accomplish this, AA uses XWork's components and interceptors:

  • components: XWork manages the lifecycle of objects in several scopes (application, session, request) and takes care of the IoC through the ..Aware interfaces (so called enablers). Hibernate's expensive-to-create SessionFactory will thus be created in the application scope (meaning it will only be initialised once when the application starts up), while the Session objects, used to load our models, is registered in the request scope (will be created once per request).

...

a) actually provided an input type in your xwork struts.xml file

Code Block
xml
xml
titlexwork.xml
	..
        <result name="input" type="dispatcher">
		<param name="location">/editUser.jsp</param>
	</result>
	..

b) you enabled the validation interceptor in your xwork struts.xml

Code Block
xml
xml
titlexwork.xml
	..
	<interceptor-ref name="defaultStack"/>
	<interceptor-ref name="validation"/>
	..

...

  • /src/java/org/hibernate/admin/component: contains the components and enablers for both the HibernateSessionFactory and the HibernateSession. These components are declared in the /src/java/components.xml file (which will be copied to the root of your compiled classes afterwards):

...