我现在遇到了个问题,
能够在网页上输出<bean:write name="ind" />的结果
但是我想将结果放入变量中应该怎么做?
请各位帮帮忙!
谢谢!

解决方案 »

  1.   

    <bean:define/>
    或是用
    <%%>
    都可以的啊。
      

  2.   

    <input type="hidden" name="sss" value="<bean:write name="ind" />">
      

  3.   

    <logic:iterate id="product" indexId="i" name="productList" scope="request"> 
    <bean:define id="productintroduce" name="product" property="productintroduce" type="java.lang.String"></bean:define><%=productintroduce)%>
    </logic:iterate> 这是个循环输出的,如果是某个Form的类似。
    把name和property换成对应的Form名和字段名就可以了
      

  4.   

    <html:hidden property="property" value="" write=true />
    我记得是这样,由于没有环境,不能验证.你可自己试试