<%String a=%><bean:write name="xx" property="xx">
这样做

解决方案 »

  1.   

    竟然你用struts,就不要写<% >这样的jsp里的语句,这不符合规范
      

  2.   

    <html:html>
    <html:text value="" property="xxxx">
    <html:button value="" property="xxx">
    .....
    </html:html>
      

  3.   

    <%String a="<bean:write name='xx' property='xx'>"%>
      

  4.   

    <%String a=xx.getXx();%>
    还可以用<bean:define .....   来做.其实,你完全可以把a做到form bean里.这样就更方便了.小弟一点想想,多多交流.
      

  5.   

    通常我先把值赋给一个hidden控件,然后再怎么处理都可以了
      

  6.   

    在struts里为了实现MVC设计模式,提供了大量的标签,就是为了让我们的jsp代码中不出现<% >之类的代码,这样可以真正的将代码和页面分离。我们在实际项目中的都是这样做的
      

  7.   

    <%String a="<bean:write name='xx' property='xx'>"%>
    a的值是"<bean:write name='xx' property='xx'>"了
      

  8.   

    我采用如下用法,可正常,好象我你的差不多:<form  method='post' name='dbListForm' action="/mydata/dbListAction.do?action=update&search=search&expression=<bean:write name='dbList' property='' />">
    http://javawebstudio.zj07.com/
      

  9.   

    用<%%>是因为用Struts嵌套标签提示出错,谁能实现以下的应用:
    <html:checkbox property="<bean:write  name='detail' property='multGroupId'/>" value="<bean:write name="detail" property="groupName"/>"/>
      

  10.   

    charlie0895(命—为alice来到我身边而努力)说的好,学习中
      

  11.   

    提示:No getter method for property <bean:write  name='detail' property='multGroupId'/> 
    struts把整个字符串当成了属性。