dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #01596
Re: Migration to Struts2 complete
Good work and thanks in the name of the new wanna be developers of DHIS2. I thought it was kind of worthless invest time in learning webwork when they have already announced, long time ago, their project was stopped to be merged with struts2.
Regards
Lester
----- Original Message -----
From: Bob Jolliffe
To: Lars Helge Øverland
Cc: DHIS 2 developers
Sent: Thursday, August 20, 2009 4:45 AM
Subject: Re: [Dhis2-devs] Migration to Struts2 complete
Well done Lars and Murod! This is a really major commit.
Regards
Bob
2009/8/20 Lars Helge Øverland <larshelge@xxxxxxxxx>
Hi,
I have merged in Murod's work on the Struts2 upgrade. Thanks to Murod
for good work on this!
Additionally the dhis-support-webwork (struts) has been merged with
dhis-web-commons as the code fit nicely here. (You can remvoe
dhis-support-webwork from your IDE.)
There are lots of good things about this:
- The login time has gone from 21 sec to 1 sec.
- We were allowed to remove the custom webwork configuration
initialization code. Struts handles loading of config files from jars
itself.
- Struts2 has a lot of nice features, like support for validation,
i18n, and direct submission of forms to domain objects which can
improve our code potentially.
For those interested in learning more I have uploaded Struts2 In
Action here: http://folk.uio.no/larshelg/readings/Stuts2_In_Action.pdf
I will have a go at the local modules too soon. Migration guide for
web modules below.
The Spring security upgrade needs some more work before being merged in.
Lars
- Rename xwork.xml to struts.xml, change root xml element tag from
<xwork> to <struts> and change the DTD to:
<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN"
"http://www.opensymphony.com/xwork/xwork-1.0.dtd">
- In web.xml, replace the WebWork filter definition with
<filter>
<filter-name>Struts</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
and change the name of the filter mapping from WebWork to Struts.
- In action classes, change all package names from
"com.opensymphony.xwork" to "com.opensymphony.xwork2", and
"com.opensymphony.webwork" to "org.apache.struts2".
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
------------------------------------------------------------------------------
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
--
Este mensaje le ha llegado mediante el servicio de correo electronico
que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistem
a Nacional de Salud. La persona que envia este correo asume el compromiso de
usar el servicio a tales fines y cumplir con las regulaciones establecidas
Infomed: http://www.sld.cu/
Follow ups
References