Update of
/var/cvs/contributions/CMSContainer_Modules/community/src/webapp/WEB-INF
In directory james.mmbase.org:/tmp/cvs-serv31196/src/webapp/WEB-INF
Modified Files:
spring-community.xml struts-community.xml
Log Message:
CMSC-947) Improve the newletter import/export into a generic community
import/export,add Xtream in project.xml
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Modules/community/src/webapp/WEB-INF
See also: http://www.mmbase.org/jira/browse/CMSC-947
Index: spring-community.xml
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer_Modules/community/src/webapp/WEB-INF/spring-community.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- spring-community.xml 10 Jun 2008 11:55:03 -0000 1.6
+++ spring-community.xml 15 Jul 2008 04:39:16 -0000 1.7
@@ -55,7 +55,7 @@
p:sessionFactory-ref="sessionFactory"/>
<!-- Instruct Spring to perform declarative transaction management
automatically on annotated classes. -->
- <tx:annotation-driven />
+ <tx:annotation-driven transaction-manager="transactionManager"/>
<!-- Services -->
@@ -70,5 +70,10 @@
<property name="preferenceService"><ref
bean="preferenceService"></ref></property>
</bean>
+ <bean name="/editors/community/ReferenceImportExportAction"
class="com.finalist.cmsc.community.forms.ReferenceImportExportAction">
+
+ <property name="personService"><ref
bean="personService"></ref></property>
+
+ </bean>
<import resource="spring-security.xml" />
</beans>
Index: struts-community.xml
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer_Modules/community/src/webapp/WEB-INF/struts-community.xml,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- struts-community.xml 10 Jun 2008 11:55:03 -0000 1.6
+++ struts-community.xml 15 Jul 2008 04:39:16 -0000 1.7
@@ -6,6 +6,7 @@
<!-- Data Sources Definitions -->
<!-- Form Bean Definitions -->
<form-beans>
+ <form-bean name="referdatafilebean"
type="com.finalist.cmsc.community.forms.ReferenceImportUploadForm"/>
<form-bean name="communityUserForm"
type="com.finalist.cmsc.community.forms.UserForm" />
<form-bean name="communityGroupForm"
type="com.finalist.cmsc.community.forms.GroupForm" />
<form-bean name="preferenceForm"
type="com.finalist.cmsc.community.forms.PreferenceForm" />
@@ -54,6 +55,13 @@
<forward name="list"
path="/editors/community/PreferenceAction.do?method=list" redirect="false" />
<forward name="init" path="/editors/community/preferenceadd.jsp"
redirect="false" />
</action>
+ <!-- ======export====== -->
+ <action path="/editors/community/ReferenceImportExportAction"
name="referdatafilebean"
+ type="org.springframework.web.struts.DelegatingActionProxy"
parameter="action"
+ validate="true">
+ <forward name="failed" path="/editors/community/import.jsp"/>
+ <forward name="success" path="/editors/community/import_success.jsp"/>
+ </action>
</action-mappings>
<message-resources parameter="cmsc-community" key="COMMUNITY" />
</struts-config>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs