How to disable struts 2 Table generation for Form?

前端 未结 4 748
遇见更好的自我
遇见更好的自我 2020-12-30 00:46

Struts 2 automatically generate HTML table for it\'s tag. How can I disable it? Any help will be appreciated. Thank You.

4条回答
  •  一整个雨季
    2020-12-30 01:12

    Struts2 have theme generation functionality based on which it generares either Table based HTMl code for its tags default is x_html which is your case . You can avoid this by setting theme as simple on page level or each tags has theme property which will generate div based html contents

    
    

    or you can set theme for entire page as below static value

    
    

    property

    
    

    you can set it across entire application by

    
    

提交回复
热议问题