zoukankan      html  css  js  c++  java
  • 去掉struts2标签的样式

    struts2中包含了一些默认的模版文件($ {struts-core-2.06.jar}/template),其中有ajax/simple/xhtml等.

           方法一:
            查看struts.properties或$ {struts-core-2.06.jar}/org/apache/struts2/default.properties文件,其中有如下配置:
    struts.ui.theme=xhtml
    struts.ui.templateDir=template
    struts.ui.templateSuffix=ftl

           这一段就是关于struts2模版的配置信息,我们可以修改struts.properties文件,将其改成
    struts.ui.theme=simple
    struts.ui.templateDir=template
    struts.ui.templateSuffix=ftl

          方法二:

    如果没有struts.properties文件,可以修改struts.xml文件,在其中加入如下行

    <constant name="struts.ui.theme" value="simple" />
    <constant name="struts.ui.templateDir" value="template" />
    <constant name="struts.ui.templateSuffix" value="ftl" />

    struts.ui.theme=simple可以解决struts2标签自动换行问题,即不再自动被添加进table标签中

  • 相关阅读:
    弹框定位
    多窗口切换
    frame嵌套页面元素的定位
    元素的等待
    键盘的操作
    鼠标的操作
    下拉列表框的选定定位
    Css定位元素
    依赖反射练习实例
    excel筛选两列值是否相同,如果相同返回第三列值
  • 原文地址:https://www.cnblogs.com/zhangleblog/p/2982435.html
Copyright © 2011-2022 走看看