一般是放到form或者request/session里其实,Action.execute()必须返回ActionForward但是从来没有说要从ActionMapping里面find你可以自己new一个ActionForward
http://community.csdn.net/Expert/TopicView.asp?id=4366881

解决方案 »

  1.   

    request.setAttribute("Name",Name)
    完全正确!
      

  2.   

    request.setAttribute("Name",Name)然后怎么在main.jsp中得到?
      

  3.   

    晕啦   看样子你jsp还没学好哦
    把set改成get就可以了
      

  4.   

    String a  = request.getAttribute("Name")真想大骂楼主一顿,好歹先看看书再来提问,问这么没水准的问题。
      

  5.   

    在action中写:request.setAttribute("Name",Name)
    在jsp中写  :
    <bean:define id="Name" type="java.lang.String" property="Name" scope="request"/>
    <bean:write name="Name"/>
      

  6.   

    ocean617(海洋) 你骂我半天,你自己去试试String a  = request.getAttribute("Name")能编译通过吗?这么没水准的问题你也答错```
      

  7.   

    String a  = (String)request.getAttribute("Name")