How to disable struts 2 Table generation for Form?

前端 未结 4 774
遇见更好的自我
遇见更好的自我 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:21

    setting simple theme avoids the use of advanced validation in forms (i think). you should use css_xhtml template either adding following line to your struts.xml

    or specifically in concrete areas of your code, like form

    This way you get html elements with their css classes assigned, ready to be styled with css.

提交回复
热议问题