Hi again, Sang,

  I made up 'hello1-homework' following the example of
'springMVCskeletonBeanNameUrlHandlerMapping' project. I altered
DispatchController as saw:
public class DispatchController extends MultiActionController {
    public ModelAndView actionName(HttpServletRequest request,
            HttpServletResponse response) throws Exception {
     /*   Log log = LogFactory.getLog(this.getClass());
        log.info("Controller calling Earth.  Come in Earth.");*/
//((B)
(WebApplicationContextUtils.getWebApplicationContext(getServletContext()).getBean("b"))).getA().foo()
        String msg = (String)request.getAttribute("username");//"Eu "
        System.out.println("message: " + msg);
        ModelAndView mav = new ModelAndView("myview");
        mav.addObject("message", msg);//
        return mav;
    }
}
but, unfortunatelly msg only gets a null value. I don't how to get the value
typed in 'index.jsp'.
  Please, Could u help me??!

Ice-Man

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to