dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #18013
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7420: renamed Mobile => Mobile (light) in the menu (also, /mobile => /light). In preparation of new mob...
------------------------------------------------------------
revno: 7420
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-06-27 11:00:02 +0300
message:
renamed Mobile => Mobile (light) in the menu (also, /mobile => /light). In preparation of new mobile web interface in 2.10.
modified:
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/MappedRedirectStrategy.java
dhis-2/dhis-web/dhis-web-commons/src/main/resources/i18n_global.properties
dhis-2/dhis-web/dhis-web-light/pom.xml
dhis-2/dhis-web/dhis-web-light/src/main/resources/struts.xml
dhis-2/dhis-web/dhis-web-light/src/main/webapp/WEB-INF/web.xml
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/MappedRedirectStrategy.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/MappedRedirectStrategy.java 2011-12-26 10:07:59 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/MappedRedirectStrategy.java 2012-06-27 08:00:02 +0000
@@ -90,12 +90,7 @@
if ( device.isMobile() )
{
- // Older nokia phones do not set the referer header correct, leaving old code here for now
- // until new code has been tested.
- //
- // url = request.getHeader( "referer" ).replaceFirst( "/dhis-web-commons/security/login.action",
- // "/mobile/index.action" );
- url = getRootPath( request ) + "/mobile/index.action";
+ url = getRootPath( request ) + "/light/index.action";
}
log.debug( "Redirecting to " + url );
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/resources/i18n_global.properties'
--- dhis-2/dhis-web/dhis-web-commons/src/main/resources/i18n_global.properties 2012-06-07 09:55:49 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/resources/i18n_global.properties 2012-06-27 08:00:02 +0000
@@ -46,7 +46,7 @@
dhis-web-validationrule=Data Quality
dhis-web-mapping=GIS
dhis-web-reporting=Reports
-dhis-web-light=Mobile
+dhis-web-light=Mobile (light)
dhis-web-dashboard-integration=Dashboard
dhis-web-visualizer=Data Visualizer
dhis-web-dashboard=Data Analyser
=== modified file 'dhis-2/dhis-web/dhis-web-light/pom.xml'
--- dhis-2/dhis-web/dhis-web-light/pom.xml 2012-05-10 09:57:03 +0000
+++ dhis-2/dhis-web/dhis-web-light/pom.xml 2012-06-27 08:00:02 +0000
@@ -1,5 +1,5 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
@@ -21,8 +21,8 @@
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
- </dependency>
-
+ </dependency>
+
<!-- DHIS -->
<dependency>
@@ -58,7 +58,7 @@
<groupId>org.hisp.dhis</groupId>
<artifactId>dhis-support-test</artifactId>
</dependency>
-
+
</dependencies>
<properties>
=== modified file 'dhis-2/dhis-web/dhis-web-light/src/main/resources/struts.xml'
--- dhis-2/dhis-web/dhis-web-light/src/main/resources/struts.xml 2012-06-18 10:29:46 +0000
+++ dhis-2/dhis-web/dhis-web-light/src/main/resources/struts.xml 2012-06-27 08:00:02 +0000
@@ -1,477 +1,404 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE struts PUBLIC
- "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
- "http://struts.apache.org/dtds/struts-2.0.dtd">
-<struts>
- <include file="dhis-web-commons.xml" />
-
- <package name="dhis-web-light" extends="dhis-web-commons"
- namespace="/mobile">
-
- <action name="index" class="org.hisp.dhis.light.action.MenuAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/menu.vm</param>
- </action>
-
- <!-- data entry -->
-
- <action name="selectOrganisationUnit"
- class="org.hisp.dhis.light.dataentry.action.GetOrganisationUnitsAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/selectOrganisationUnit.vm</param>
- <result name="selectDataSet" type="redirect">
- /mobile/selectDataSet.action?organisationUnitId=${organisationUnitId}
- </result>
- <result name="selectPeriod" type="redirect">
- /mobile/selectPeriod.action?organisationUnitId=${organisationUnitId}&dataSetId=${dataSetId}
- </result>
- </action>
-
- <action name="selectDataSet"
- class="org.hisp.dhis.light.dataentry.action.GetDataSetsAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/selectDataSet.vm</param>
- <result name="selectPeriod" type="redirect">
- /mobile/selectPeriod.action?organisationUnitId=${organisationUnitId}&dataSetId=${dataSetId}
- </result>
- </action>
-
- <action name="selectPeriod"
- class="org.hisp.dhis.light.dataentry.action.GetPeriodsAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/selectPeriod.vm</param>
- </action>
-
- <action name="dataEntry"
- class="org.hisp.dhis.light.dataentry.action.GetDataSetOverviewAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/dataEntryOverview.vm</param>
- </action>
-
- <action name="dataEntrySection"
- class="org.hisp.dhis.light.dataentry.action.GetSectionFormAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/dataEntrySection.vm</param>
- </action>
-
- <action name="saveSectionForm"
- class="org.hisp.dhis.light.dataentry.action.SaveSectionFormAction">
- <result name="success" type="redirect">
- /mobile/dataEntry.action?organisationUnitId=${organisationUnitId}&dataSetId=${dataSetId}&periodId=${periodId}&sectionId=${sectionId}&validated=${validated}
- </result>
- <result name="error" type="velocity">/dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/dataEntrySection.vm</param>
- <param name="requiredAuthorities">
- F_DATAVALUE_ADD,F_DATAVALUE_UPDATE,F_DATAVALUE_DELETE</param>
- </action>
-
- <action name="markComplete"
- class="org.hisp.dhis.light.dataentry.action.MarkComplete">
- <result name="success" type="redirect">
- /mobile/index.action?organisationUnitId=${organisationUnitId}&dataSetId=${dataSetId}&periodId=${periodId}&complete=true
- </result>
- </action>
-
- <!-- Namebased Data Entry -->
-
- <action name="trackingMenu" class="org.hisp.dhis.light.action.NoAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">
- /dhis-web-light/trackingMenu.vm</param>
- </action>
- <action name="selectNamebasedOrganisationUnit"
- class="org.hisp.dhis.light.namebaseddataentry.action.GetNamebasedOrganisationUnitsAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">
- /dhis-web-light/namebased/selectNamebasedOrganisationUnits.vm</param>
- </action>
-
- <action name="selectActivityType"
- class="org.hisp.dhis.light.namebaseddataentry.action.ShowActivityTypeAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/namebased/selectActivityType.vm</param>
- </action>
-
- <action name="selectBeneficiary"
- class="org.hisp.dhis.light.namebaseddataentry.action.GetBeneficiaryListAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/beneficiaryList.vm</param>
- </action>
-
- <action name="selectActivity"
- class="org.hisp.dhis.light.namebaseddataentry.action.GetActivityListAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/namebased/selectActivity.vm</param>
- </action>
-
- <action name="showProgramStageForm"
- class="org.hisp.dhis.light.namebaseddataentry.action.GetProgramStageFormAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/namebased/programStageForm.vm</param>
- </action>
-
- <action name="showCompletedProgramStageForm"
- class="org.hisp.dhis.light.namebaseddataentry.action.GetProgramStageFormAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/namebased/completedProgramStageForm.vm</param>
- </action>
-
- <action name="saveProgramStageForm"
- class="org.hisp.dhis.light.namebaseddataentry.action.SaveProgramStageFormAction">
- <result name="success" type="redirect">
- /mobile/selectBeneficiary.action?organisationUnitId=${orgUnitId}&current=${current}&validated=true
- </result>
- <result name="success_back_to_programstage" type="redirect">
- /mobile/showPatientProgramStageList.action?patientId=${patientId}&programInstanceId=${programInstanceId}&programId=${programId}&validated=true
- </result>
- <result name="register_next_duedate" type="redirect">showRepeatableEventRegistrationForm.action?programInstanceId=${programInstanceId}&programStageId=${programStageId}&currentProgramStageInstanceId=${programStageInstanceId}
- </result>
- <result name="error" type="velocity">/dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/namebased/programStageForm.vm</param>
- </action>
-
- <action name="showBeneficiaryDetail"
- class="org.hisp.dhis.light.namebaseddataentry.action.GetBeneficiaryDetailAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/namebased/beneficiaryDetail.vm</param>
- </action>
-
- <action name="showBeneficiaryDetailInSearchPage"
- class="org.hisp.dhis.light.namebaseddataentry.action.GetBeneficiaryDetailAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/namebased/beneficiaryDetail.vm</param>
- <param name="previouspage">showPatientProgramList.action?patientId=${patientId}</param>
- </action>
-
- <action name="showFindBeneficiaryForm"
- class="org.hisp.dhis.light.namebaseddataentry.action.GetFindBeneficiaryFormAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">
- /dhis-web-light/namebased/findBeneficiaryForm.vm</param>
- </action>
-
- <action name="showFindRelatedPatientForm"
- class="org.hisp.dhis.light.namebaseddataentry.action.GetFindBeneficiaryFormAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">
- /dhis-web-light/namebased/findRelatedPatientForm.vm</param>
- </action>
-
- <action name="findBeneficiary"
- class="org.hisp.dhis.light.namebaseddataentry.action.FindBeneficiarytAction">
- <result name="redirect" type="redirect">showPatientProgramList.action?patientId=${patientId}
- </result>
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">
- /dhis-web-light/namebased/beneficiaryList.vm</param>
- </action>
-
- <action name="showAddNewRelationshipForm"
- class="org.hisp.dhis.light.namebaseddataentry.action.GetAddNewRelationshipFormAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">
- /dhis-web-light/namebased/addNewRelationshipForm.vm</param>
- </action>
-
- <action name="findRelatedPatient"
- class="org.hisp.dhis.light.namebaseddataentry.action.FindBeneficiarytAction">
- <result name="redirect" type="redirect">showAddNewRelationshipForm.action?originalPatientId=${originalPatientId}&relatedPatientId=${patientId}&relationshipTypeId=${relationshipTypeId}
- </result>
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">
- /dhis-web-light/namebased/relatedPatientList.vm</param>
- </action>
-
- <action name="addNewRelationship"
- class="org.hisp.dhis.light.namebaseddataentry.action.AddNewRalationshipAction">
- <result name="redirect" type="redirect">showPatientProgramList.action?patientId=${originalPatientId}&validated=true
- </result>
- </action>
-
- <action name="showPatientProgramList"
- class="org.hisp.dhis.light.namebaseddataentry.action.GetPatientProgramListAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">
- /dhis-web-light/namebased/beneficiaryProgramList.vm</param>
- </action>
-
- <action name="showPatientProgramStageList"
- class="org.hisp.dhis.light.namebaseddataentry.action.GetProgramStageListAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">
- /dhis-web-light/namebased/beneficiaryProgramStageList.vm</param>
- </action>
-
- <action name="showRepeatableEventRegistrationForm"
- class="org.hisp.dhis.light.namebaseddataentry.action.GetRepeatableEventRegistrationFormAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">
- /dhis-web-light/namebased/repeatableEventRegistrationForm.vm</param>
- </action>
-
- <action name="saveRepeatableEvent"
- class="org.hisp.dhis.light.namebaseddataentry.action.SaveRepeatableEventAction">
- <result name="success" type="redirect">showPatientProgramStageList.action?patientId=${patientId}&programInstanceId=${programInstanceId}&programId=${programId}&validated=false
- </result>
- </action>
-
- <!-- Beneficiary Registration -->
-
- <action name="selectRegistrationOrganisationUnit"
- class="org.hisp.dhis.light.beneficiaryregistration.action.GetBeneficiaryRegistrationOrganisationUnitAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">
- /dhis-web-light/registration/selectRegistrationOrganisationUnits.vm</param>
- </action>
-
- <action name="registerBeneficiary"
- class="org.hisp.dhis.light.beneficiaryregistration.action.RegisterBeneficiaryAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">
- /dhis-web-light/registration/beneficiaryRegistrationForm.vm</param>
- </action>
-
- <action name="saveBeneficiary"
- class="org.hisp.dhis.light.beneficiaryregistration.action.SaveBeneficiaryAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">
- /dhis-web-light/registration/beneficiaryRegistrationForm.vm</param>
- </action>
-
- <!-- Beneficiary Enrollment -->
-
- <action name="selectEnrollmentOrganisationUnit"
- class="org.hisp.dhis.light.beneficiaryenrollment.action.GetBeneficiaryEnrollmentOrganisationUnitAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">
- /dhis-web-light/enrollment/selectEnrollmentOrganisationUnits.vm</param>
- </action>
-
- <action name="showBeneficiarySearchingForm"
- class="org.hisp.dhis.light.beneficiaryenrollment.action.GetBeneficiaryEnrollmentOrganisationUnitAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">
- /dhis-web-light/enrollment/beneficiarySearchingForm.vm</param>
- </action>
-
- <action name="searchBeneficiary"
- class="org.hisp.dhis.light.beneficiaryenrollment.action.SearchBeneficiaryAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">
- /dhis-web-light/enrollment/beneficiarySearchResult.vm</param>
- </action>
-
- <action name="selectEnrollmentProgram"
- class="org.hisp.dhis.light.beneficiaryenrollment.action.GetEnrollmentProgramListAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">
- /dhis-web-light/enrollment/enrollmentProgramList.vm</param>
- </action>
-
- <action name="showProgramEnrollmentForm"
- class="org.hisp.dhis.light.beneficiaryenrollment.action.GetProgramEnrollmentFormAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">
- /dhis-web-light/enrollment/programEnrollmentForm.vm</param>
- </action>
-
- <action name="saveMobileProgramEnrollment"
- class="org.hisp.dhis.light.beneficiaryenrollment.action.SaveMobileProgramEnrollmentAction">
- <result name="success" type="redirect">
- /mobile/selectEnrollmentProgram.action?patientId=${patientId}&validated=true
- </result>
- <result name="error" type="velocity">/dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/enrollment/programEnrollmentForm.vm</param>
- </action>
-
- <!-- Single Event -->
-
- <action name="selectSingleEvent"
- class="org.hisp.dhis.light.singleevent.action.GetSingleEventAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/singleevent/selectSingleEvent.vm</param>
- </action>
-
- <action name="selectSingleEventBeneficiary"
- class="org.hisp.dhis.light.singleevent.action.GetSingleEventBeneficiaryAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/singleevent/selectSingleEventBeneficiary.vm</param>
- </action>
-
- <action name="showSingleEventForm"
- class="org.hisp.dhis.light.singleevent.action.GetSingleEventFormAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/singleevent/singleEventForm.vm</param>
- </action>
-
- <action name="saveSingleEvent"
- class="org.hisp.dhis.light.singleevent.action.SaveSingleEventAction">
- <result name="success" type="redirect">
- /mobile/selectSingleEventBeneficiary.action?programId=${programId}&organisationUnitId=${organisationUnitId}&validated=true
- </result>
- <result name="error" type="velocity">/dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/singleevent/singleEventForm.vm</param>
- </action>
-
- <!-- Reports -->
-
- <action name="reports"
- class="org.hisp.dhis.light.dashboard.action.ProvideContentAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/reports.vm</param>
- </action>
-
- <action name="dashboard-charts"
- class="org.hisp.dhis.light.dashboard.action.ProvideContentAction">
- <result name="success" type="velocity">
- /dhis-web-light/dashboard_page.vm
- </result>
- <param name="page">/dhis-web-light/dashboard_charts.vm</param>
- </action>
-
- <action name="dashboard-reports"
- class="org.hisp.dhis.light.dashboard.action.ProvideContentAction">
- <result name="success" type="velocity">
- /dhis-web-light/dashboard_page.vm
- </result>
- <param name="page">/dhis-web-light/dashboard_reports.vm</param>
- </action>
-
- <action name="dashboard-documents"
- class="org.hisp.dhis.light.dashboard.action.ProvideContentAction">
- <result name="success" type="velocity">
- /dhis-web-light/dashboard_page.vm
- </result>
- <param name="page">/dhis-web-light/dashboard_documents.vm</param>
- </action>
-
- <action name="getReport"
- class="org.hisp.dhis.light.dashboard.action.GetReportAction">
- <result name="success" type="velocity">
- /dhis-web-light/dashboard_page.vm
- </result>
- <param name="page">/dhis-web-commons/ajax/htmlGrid.vm</param>
- </action>
-
- <action name="getReportParams"
- class="org.hisp.dhis.light.dashboard.action.GetReportParamsAction">
- <result name="success" type="velocity">
- /dhis-web-light/dashboard_page.vm
- </result>
- <param name="page">/dhis-web-light/inputReportParamsForm.vm</param>
- </action>
-
- <action name="getChart"
- class="org.hisp.dhis.light.dashboard.action.GetChartAction">
- <result name="success" type="chart">
- <param name="width">480</param>
- <param name="height">800</param>
- </result>
- </action>
-
- <!-- Settings -->
-
- <action name="settings"
- class="org.hisp.dhis.light.settings.action.GetSettingsAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/settings.vm</param>
- </action>
-
- <action name="saveSettingsForm"
- class="org.hisp.dhis.light.settings.action.SaveSettingsFormAction">
- <result name="success" type="redirect">/mobile/index.action</result>
- </action>
-
- <!-- Messages -->
-
- <action name="messages"
- class="org.hisp.dhis.light.message.action.GetMessagesAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/messages.vm</param>
- </action>
-
- <action name="reply"
- class="org.hisp.dhis.light.message.action.GetMessageAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/message.vm</param>
- </action>
-
- <action name="sendReply"
- class="org.hisp.dhis.light.message.action.SendReplyAction">
- <result name="success" type="redirect">
- /mobile/messages.action</result>
- </action>
-
- <action name="feedback" class="org.hisp.dhis.light.action.NoAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/feedback.vm</param>
- </action>
-
- <action name="sendFeedback"
- class="org.hisp.dhis.light.message.action.SendFeedbackAction">
- <result name="success" type="redirect">/mobile/index.action</result>
- </action>
-
- <!-- Anonymous -->
- <action name="anonymous"
- class="org.hisp.dhis.light.anonymous.action.GetAllAnonymousProgramAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/anonymous/anonymousProgramSelection.vm</param>
- </action>
-
- <action name="showAnonymousForm"
- class="org.hisp.dhis.light.anonymous.action.ShowAnonymousFormAction">
- <result name="success" type="velocity">
- /dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/anonymous/anonymousProgramForm.vm</param>
- </action>
-
- <action name="saveAnonymousForm"
- class="org.hisp.dhis.light.anonymous.action.SaveAnonymousProgramAction">
- <result name="success" type="redirect">
- /mobile/anonymous.action</result>
- <result name="error" type="velocity">/dhis-web-light/main.vm</result>
- <param name="page">/dhis-web-light/anonymous/anonymousProgramForm.vm</param>
- </action>
- </package>
-</struts>
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE struts PUBLIC
+ "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
+ "http://struts.apache.org/dtds/struts-2.0.dtd">
+<struts>
+ <include file="dhis-web-commons.xml" />
+
+ <package name="dhis-web-light" extends="dhis-web-commons"
+ namespace="/light">
+
+ <action name="index" class="org.hisp.dhis.light.action.MenuAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/menu.vm</param>
+ </action>
+
+ <!-- data entry -->
+
+ <action name="selectOrganisationUnit"
+ class="org.hisp.dhis.light.dataentry.action.GetOrganisationUnitsAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/selectOrganisationUnit.vm</param>
+ <result name="selectDataSet" type="redirect">
+ /light/selectDataSet.action?organisationUnitId=${organisationUnitId}
+ </result>
+ <result name="selectPeriod" type="redirect">
+ /light/selectPeriod.action?organisationUnitId=${organisationUnitId}&dataSetId=${dataSetId}
+ </result>
+ </action>
+
+ <action name="selectDataSet"
+ class="org.hisp.dhis.light.dataentry.action.GetDataSetsAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/selectDataSet.vm</param>
+ <result name="selectPeriod" type="redirect">
+ /light/selectPeriod.action?organisationUnitId=${organisationUnitId}&dataSetId=${dataSetId}
+ </result>
+ </action>
+
+ <action name="selectPeriod"
+ class="org.hisp.dhis.light.dataentry.action.GetPeriodsAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/selectPeriod.vm</param>
+ </action>
+
+ <action name="dataEntry"
+ class="org.hisp.dhis.light.dataentry.action.GetDataSetOverviewAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/dataEntryOverview.vm</param>
+ </action>
+
+ <action name="dataEntrySection"
+ class="org.hisp.dhis.light.dataentry.action.GetSectionFormAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/dataEntrySection.vm</param>
+ </action>
+
+ <action name="saveSectionForm"
+ class="org.hisp.dhis.light.dataentry.action.SaveSectionFormAction">
+ <result name="success" type="redirect">
+ /light/dataEntry.action?organisationUnitId=${organisationUnitId}&dataSetId=${dataSetId}&periodId=${periodId}&sectionId=${sectionId}&validated=${validated}
+ </result>
+ <result name="error" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/dataEntrySection.vm</param>
+ <param name="requiredAuthorities">F_DATAVALUE_ADD,F_DATAVALUE_UPDATE,F_DATAVALUE_DELETE</param>
+ </action>
+
+ <action name="markComplete"
+ class="org.hisp.dhis.light.dataentry.action.MarkComplete">
+ <result name="success" type="redirect">
+ /light/index.action?organisationUnitId=${organisationUnitId}&dataSetId=${dataSetId}&periodId=${periodId}&complete=true
+ </result>
+ </action>
+
+ <!-- Namebased Data Entry -->
+
+ <action name="trackingMenu" class="org.hisp.dhis.light.action.NoAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/trackingMenu.vm</param>
+ </action>
+ <action name="selectNamebasedOrganisationUnit"
+ class="org.hisp.dhis.light.namebaseddataentry.action.GetNamebasedOrganisationUnitsAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/namebased/selectNamebasedOrganisationUnits.vm</param>
+ </action>
+
+ <action name="selectActivityType"
+ class="org.hisp.dhis.light.namebaseddataentry.action.ShowActivityTypeAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/namebased/selectActivityType.vm</param>
+ </action>
+
+ <action name="selectBeneficiary"
+ class="org.hisp.dhis.light.namebaseddataentry.action.GetBeneficiaryListAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/beneficiaryList.vm</param>
+ </action>
+
+ <action name="selectActivity"
+ class="org.hisp.dhis.light.namebaseddataentry.action.GetActivityListAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/namebased/selectActivity.vm</param>
+ </action>
+
+ <action name="showProgramStageForm"
+ class="org.hisp.dhis.light.namebaseddataentry.action.GetProgramStageFormAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/namebased/programStageForm.vm</param>
+ </action>
+
+ <action name="showCompletedProgramStageForm"
+ class="org.hisp.dhis.light.namebaseddataentry.action.GetProgramStageFormAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/namebased/completedProgramStageForm.vm</param>
+ </action>
+
+ <action name="saveProgramStageForm"
+ class="org.hisp.dhis.light.namebaseddataentry.action.SaveProgramStageFormAction">
+ <result name="success" type="redirect">
+ /light/selectBeneficiary.action?organisationUnitId=${orgUnitId}&current=${current}&validated=true
+ </result>
+ <result name="success_back_to_programstage" type="redirect">
+ /light/showPatientProgramStageList.action?patientId=${patientId}&programInstanceId=${programInstanceId}&programId=${programId}&validated=true
+ </result>
+ <result name="register_next_duedate" type="redirect">
+ showRepeatableEventRegistrationForm.action?programInstanceId=${programInstanceId}&programStageId=${programStageId}&currentProgramStageInstanceId=${programStageInstanceId}
+ </result>
+ <result name="error" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/namebased/programStageForm.vm</param>
+ </action>
+
+ <action name="showBeneficiaryDetail"
+ class="org.hisp.dhis.light.namebaseddataentry.action.GetBeneficiaryDetailAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/namebased/beneficiaryDetail.vm</param>
+ </action>
+
+ <action name="showBeneficiaryDetailInSearchPage"
+ class="org.hisp.dhis.light.namebaseddataentry.action.GetBeneficiaryDetailAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/namebased/beneficiaryDetail.vm</param>
+ <param name="previouspage">showPatientProgramList.action?patientId=${patientId}</param>
+ </action>
+
+ <action name="showFindBeneficiaryForm"
+ class="org.hisp.dhis.light.namebaseddataentry.action.GetFindBeneficiaryFormAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/namebased/findBeneficiaryForm.vm</param>
+ </action>
+
+ <action name="showFindRelatedPatientForm"
+ class="org.hisp.dhis.light.namebaseddataentry.action.GetFindBeneficiaryFormAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/namebased/findRelatedPatientForm.vm</param>
+ </action>
+
+ <action name="findBeneficiary"
+ class="org.hisp.dhis.light.namebaseddataentry.action.FindBeneficiarytAction">
+ <result name="redirect" type="redirect">showPatientProgramList.action?patientId=${patientId}</result>
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/namebased/beneficiaryList.vm</param>
+ </action>
+
+ <action name="showAddNewRelationshipForm"
+ class="org.hisp.dhis.light.namebaseddataentry.action.GetAddNewRelationshipFormAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/namebased/addNewRelationshipForm.vm</param>
+ </action>
+
+ <action name="findRelatedPatient"
+ class="org.hisp.dhis.light.namebaseddataentry.action.FindBeneficiarytAction">
+ <result name="redirect" type="redirect">
+ showAddNewRelationshipForm.action?originalPatientId=${originalPatientId}&relatedPatientId=${patientId}&relationshipTypeId=${relationshipTypeId}
+ </result>
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/namebased/relatedPatientList.vm</param>
+ </action>
+
+ <action name="addNewRelationship"
+ class="org.hisp.dhis.light.namebaseddataentry.action.AddNewRalationshipAction">
+ <result name="redirect" type="redirect">showPatientProgramList.action?patientId=${originalPatientId}&validated=true
+ </result>
+ </action>
+
+ <action name="showPatientProgramList"
+ class="org.hisp.dhis.light.namebaseddataentry.action.GetPatientProgramListAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/namebased/beneficiaryProgramList.vm</param>
+ </action>
+
+ <action name="showPatientProgramStageList"
+ class="org.hisp.dhis.light.namebaseddataentry.action.GetProgramStageListAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/namebased/beneficiaryProgramStageList.vm</param>
+ </action>
+
+ <action name="showRepeatableEventRegistrationForm"
+ class="org.hisp.dhis.light.namebaseddataentry.action.GetRepeatableEventRegistrationFormAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/namebased/repeatableEventRegistrationForm.vm</param>
+ </action>
+
+ <action name="saveRepeatableEvent"
+ class="org.hisp.dhis.light.namebaseddataentry.action.SaveRepeatableEventAction">
+ <result name="success" type="redirect">showPatientProgramStageList.action?patientId=${patientId}&programInstanceId=${programInstanceId}&programId=${programId}&validated=false
+ </result>
+ </action>
+
+ <!-- Beneficiary Registration -->
+
+ <action name="selectRegistrationOrganisationUnit"
+ class="org.hisp.dhis.light.beneficiaryregistration.action.GetBeneficiaryRegistrationOrganisationUnitAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/registration/selectRegistrationOrganisationUnits.vm</param>
+ </action>
+
+ <action name="registerBeneficiary"
+ class="org.hisp.dhis.light.beneficiaryregistration.action.RegisterBeneficiaryAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/registration/beneficiaryRegistrationForm.vm</param>
+ </action>
+
+ <action name="saveBeneficiary"
+ class="org.hisp.dhis.light.beneficiaryregistration.action.SaveBeneficiaryAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/registration/beneficiaryRegistrationForm.vm</param>
+ </action>
+
+ <!-- Beneficiary Enrollment -->
+
+ <action name="selectEnrollmentOrganisationUnit"
+ class="org.hisp.dhis.light.beneficiaryenrollment.action.GetBeneficiaryEnrollmentOrganisationUnitAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/enrollment/selectEnrollmentOrganisationUnits.vm</param>
+ </action>
+
+ <action name="showBeneficiarySearchingForm"
+ class="org.hisp.dhis.light.beneficiaryenrollment.action.GetBeneficiaryEnrollmentOrganisationUnitAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/enrollment/beneficiarySearchingForm.vm</param>
+ </action>
+
+ <action name="searchBeneficiary"
+ class="org.hisp.dhis.light.beneficiaryenrollment.action.SearchBeneficiaryAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/enrollment/beneficiarySearchResult.vm</param>
+ </action>
+
+ <action name="selectEnrollmentProgram"
+ class="org.hisp.dhis.light.beneficiaryenrollment.action.GetEnrollmentProgramListAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/enrollment/enrollmentProgramList.vm</param>
+ </action>
+
+ <action name="showProgramEnrollmentForm"
+ class="org.hisp.dhis.light.beneficiaryenrollment.action.GetProgramEnrollmentFormAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/enrollment/programEnrollmentForm.vm</param>
+ </action>
+
+ <action name="saveMobileProgramEnrollment"
+ class="org.hisp.dhis.light.beneficiaryenrollment.action.SaveMobileProgramEnrollmentAction">
+ <result name="success" type="redirect">/light/selectEnrollmentProgram.action?patientId=${patientId}&validated=true</result>
+ <result name="error" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/enrollment/programEnrollmentForm.vm</param>
+ </action>
+
+ <!-- Single Event -->
+
+ <action name="selectSingleEvent"
+ class="org.hisp.dhis.light.singleevent.action.GetSingleEventAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/singleevent/selectSingleEvent.vm</param>
+ </action>
+
+ <action name="selectSingleEventBeneficiary"
+ class="org.hisp.dhis.light.singleevent.action.GetSingleEventBeneficiaryAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/singleevent/selectSingleEventBeneficiary.vm</param>
+ </action>
+
+ <action name="showSingleEventForm"
+ class="org.hisp.dhis.light.singleevent.action.GetSingleEventFormAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/singleevent/singleEventForm.vm</param>
+ </action>
+
+ <action name="saveSingleEvent"
+ class="org.hisp.dhis.light.singleevent.action.SaveSingleEventAction">
+ <result name="success" type="redirect">
+ /light/selectSingleEventBeneficiary.action?programId=${programId}&organisationUnitId=${organisationUnitId}&validated=true
+ </result>
+ <result name="error" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/singleevent/singleEventForm.vm</param>
+ </action>
+
+ <!-- Reports -->
+
+ <action name="reports"
+ class="org.hisp.dhis.light.dashboard.action.ProvideContentAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/reports.vm</param>
+ </action>
+
+ <action name="dashboard-charts"
+ class="org.hisp.dhis.light.dashboard.action.ProvideContentAction">
+ <result name="success" type="velocity">/dhis-web-light/dashboard_page.vm</result>
+ <param name="page">/dhis-web-light/dashboard_charts.vm</param>
+ </action>
+
+ <action name="dashboard-reports"
+ class="org.hisp.dhis.light.dashboard.action.ProvideContentAction">
+ <result name="success" type="velocity">/dhis-web-light/dashboard_page.vm</result>
+ <param name="page">/dhis-web-light/dashboard_reports.vm</param>
+ </action>
+
+ <action name="dashboard-documents"
+ class="org.hisp.dhis.light.dashboard.action.ProvideContentAction">
+ <result name="success" type="velocity">/dhis-web-light/dashboard_page.vm</result>
+ <param name="page">/dhis-web-light/dashboard_documents.vm</param>
+ </action>
+
+ <action name="getReport"
+ class="org.hisp.dhis.light.dashboard.action.GetReportAction">
+ <result name="success" type="velocity">/dhis-web-light/dashboard_page.vm</result>
+ <param name="page">/dhis-web-commons/ajax/htmlGrid.vm</param>
+ </action>
+
+ <action name="getReportParams"
+ class="org.hisp.dhis.light.dashboard.action.GetReportParamsAction">
+ <result name="success" type="velocity">/dhis-web-light/dashboard_page.vm</result>
+ <param name="page">/dhis-web-light/inputReportParamsForm.vm</param>
+ </action>
+
+ <action name="getChart"
+ class="org.hisp.dhis.light.dashboard.action.GetChartAction">
+ <result name="success" type="chart">
+ <param name="width">480</param>
+ <param name="height">800</param>
+ </result>
+ </action>
+
+ <!-- Settings -->
+
+ <action name="settings"
+ class="org.hisp.dhis.light.settings.action.GetSettingsAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/settings.vm</param>
+ </action>
+
+ <action name="saveSettingsForm"
+ class="org.hisp.dhis.light.settings.action.SaveSettingsFormAction">
+ <result name="success" type="redirect">/light/index.action</result>
+ </action>
+
+ <!-- Messages -->
+
+ <action name="messages"
+ class="org.hisp.dhis.light.message.action.GetMessagesAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/messages.vm</param>
+ </action>
+
+ <action name="reply"
+ class="org.hisp.dhis.light.message.action.GetMessageAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/message.vm</param>
+ </action>
+
+ <action name="sendReply"
+ class="org.hisp.dhis.light.message.action.SendReplyAction">
+ <result name="success" type="redirect">/light/messages.action</result>
+ </action>
+
+ <action name="feedback" class="org.hisp.dhis.light.action.NoAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/feedback.vm</param>
+ </action>
+
+ <action name="sendFeedback"
+ class="org.hisp.dhis.light.message.action.SendFeedbackAction">
+ <result name="success" type="redirect">/light/index.action</result>
+ </action>
+
+ <!-- Anonymous -->
+ <action name="anonymous"
+ class="org.hisp.dhis.light.anonymous.action.GetAllAnonymousProgramAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/anonymous/anonymousProgramSelection.vm</param>
+ </action>
+
+ <action name="showAnonymousForm"
+ class="org.hisp.dhis.light.anonymous.action.ShowAnonymousFormAction">
+ <result name="success" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/anonymous/anonymousProgramForm.vm</param>
+ </action>
+
+ <action name="saveAnonymousForm"
+ class="org.hisp.dhis.light.anonymous.action.SaveAnonymousProgramAction">
+ <result name="success" type="redirect">/light/anonymous.action</result>
+ <result name="error" type="velocity">/dhis-web-light/main.vm</result>
+ <param name="page">/dhis-web-light/anonymous/anonymousProgramForm.vm</param>
+ </action>
+ </package>
+</struts>
=== modified file 'dhis-2/dhis-web/dhis-web-light/src/main/webapp/WEB-INF/web.xml'
--- dhis-2/dhis-web/dhis-web-light/src/main/webapp/WEB-INF/web.xml 2012-03-12 20:25:54 +0000
+++ dhis-2/dhis-web/dhis-web-light/src/main/webapp/WEB-INF/web.xml 2012-06-27 08:00:02 +0000
@@ -18,7 +18,7 @@
<filter-class>org.hisp.dhis.servlet.filter.HttpRedirectFilter</filter-class>
<init-param>
<param-name>redirectPath</param-name>
- <param-value>mobile/index.action</param-value>
+ <param-value>light/index.action</param-value>
</init-param>
</filter>
<filter>