Action:request.setAttribute("str", str);
页面:request.getAttribute("str");

解决方案 »

  1.   

    放入form的一个属性里,然后在页面用<html:text.........>不行吗?
      

  2.   

    to romeo
    我不需要文本框呀to xunyiren
    那页面中就要出现jsp代码了呀
      

  3.   

    用bean标签:
    <bean:write name="str" scope="request"/>
      

  4.   

    这个问题我前几天问过
    是这样解决的strutsaction中
    request.setAttribute("str", str);jsp页面中
    <bean:write name="str"/>
    就可以了,一定行的。