zoukankan      html  css  js  c++  java
  • Struts 2——显示

    change theme on a per-page basis

    The default theme is passed to the page through a theme variable. To change the theme for a page, use the set tag to change the theme variable. The variable can be changed using a static value or property.

    Static Value

    Change to the "simple" theme.

    <s:set name="theme" value="'simple'" scope="page" />

    Property

    Change to the theme name indicated by the myTheme property.

    <s:set name="theme" value="%{myTheme}" scope="page" />

    Themes can be selected using several different rules, in this order:

    1. The theme attribute on the specific tag

    2. The theme attribute on a tag's surrounding form tag

    3. The page-scoped attribute named "theme"

    4. The request-scoped attribute named "theme"

    5. The session-scoped attribute named "theme"

    6. The application-scoped attribute named "theme"

    7. The struts.ui.theme property in struts.properties (defaults to xhtml)

    待续。。。

  • 相关阅读:
    生活重心
    做自己才对,想多只会徒增烦恼
    列下计划,一个个实现吧
    公司搬迁
    限制文件的类型
    总结
    mvc mvp mvvm区别
    sessionStorage
    localStorage点击次数存储
    2016.09.01 html5兼容
  • 原文地址:https://www.cnblogs.com/freewater/p/2302403.html
Copyright © 2011-2022 走看看