Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my controller -
- @Controller
- public class Hl7TestController {
- @RequestMapping(value="/module/rheashradapter/test")
- public void showSettings(ModelMap model) {
- //Display settings
- }
- }
- -------------------------------------------
- AdminList.java
- public Map<String, String> getLinks() {
- Map<String, String> map = new LinkedHashMap<String, String>();
- map.put("module/rheashradapter/test.form", "test");
- return map;
- }
- -------------------------------------------
- The test.jsp lives inside src/main/webapp of RHEASHRadapter-omod
- -------------------------------------------
- My moduleApplicationContext file is :
- <?xml version="1.0" encoding="UTF-8"?>
- <!-- Beans to add to the current Application context definition -->
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:context="http://www.springframework.org/schema/context"
- xmlns:util="http://www.springframework.org/schema/util"
- xsi:schemaLocation="http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-2.5.xsd
- http://www.springframework.org/schema/util
- http://www.springframework.org/schema/util/spring-util-2.0.xsd">
- <bean parent="serviceContext">
- <property name="moduleService">
- <list>
- <value>org.openmrs.module.rheashradapter.api.LogEncounterService</value>
- <bean class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
- <property name="transactionManager"><ref bean="transactionManager"/></property>
- <property name="target">
- <bean class="org.openmrs.module.rheashradapter.api.LogEncounterServiceImpl">
- <property name="logEncounterDAO">
- <bean class="org.openmrs.module.rheashradapter.hibernate.LogEncounterDAOImpl" autowire="byType">
- <property name="sessionFactory"><ref bean="sessionFactory" /></property>
- </bean>
- </property>
- </bean>
- </property>
- <property name="preInterceptors">
- <ref bean="serviceInterceptors" />
- </property>
- <property name="transactionAttributeSource">
- <bean class="org.springframework.transaction.annotation.AnnotationTransactionAttributeSource"/>
- </property>
- </bean>
- </list>
- </property>
- </bean>
- <bean id="RHEApatientController" class="org.openmrs.module.rheashradapter.web.controller.RHEApatientController"/>
- </beans>
- Q1) is it because the controller for test.jsp is not defined as a bean in the ModuleApplicationContext ?
- Q2) is it because the difference in capitals ? (rheashradapter vs RHEASHRadapter , the module name)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement