各位大侠帮帮忙:
      由于才刚刚学习Struts 没有多久,久遇到了难题了:
          以下是小弟编写的程序:
                      在Action中我用:request.setAttribute("hello", "Stuttgart");来存入值:
          在jsp页面中我用:hello(jsp脚本):<%=request.getAttribute("hello") %><br>
          但得到的值页面显示为:hello(jsp脚本):null
          而且我在struts-config.xml 中设置了redirect=“false”
          希望能得到牛人指点,小弟先谢啦!!!

解决方案 »

  1.   

    request.setAttribute("变量key",变量)
      

  2.   

    首先在struts-config.xml 中设置了redirect=“false” 这个是是否重定向您返回为空的话检查一个setAttribute 设置值和获取值有那些细节问题需要处理
      

  3.   

    应该是在跳转的时候,没有正确传值,你用到什么文件了,都写出来
    或者你尝试在action里面用out。print来输出看行不行先
      

  4.   

    Acton:
    request.setAttribute("hello", "Stuttgart");JSP${requestScope.hello}