gauravpaliwal

Untitled

Jul 1st, 2011
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. The module context says : <prop key="**/newjsp.portlet">SubmitFeedbackController</prop>
  2.  
  3.  
  4. and
  5.  
  6. <bean id="SubmitFeedbackController" class="org.openmrs.module.feedback.web.SubmitFeedbackController">
  7. </bean>
  8.  
  9. and SubmitFeedback controller is :
  10.  
  11.  
  12. public class SubmitFeedbackController extends PortletController {
  13.  
  14. @Override
  15. protected void populateModel(HttpServletRequest request, Map<String, Object> model) {
  16. model.put("gaurav","gaurav");
  17. }
  18.  
  19. @Override
  20. public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
  21. //compiled code
  22. ModelAndView s = new ModelAndView() ;
  23. s.addObject("gaurav", "gaurav") ;
  24. return s ;
  25. }
  26.  
  27. }
  28.  
  29.  
  30. and newjsp.jsp is
  31.  
  32. ${gaurav}
  33.  
  34.  
  35. but even then the content of JSP is NULL.
Advertisement
Add Comment
Please, Sign In to add comment