struts2标签样式:struts.ui.theme 另转struts2中constant设置
2009-08-04 11:40
441 查看
在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标签中。
另:struts2中constant设置
http://wing123.javaeye.com/blog/352596
查看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标签中。
另:struts2中constant设置
http://wing123.javaeye.com/blog/352596
相关文章推荐
- 解决struts2中UI标签出现的问题: The Struts dispatcher cannot be found
- struts2 标签文件struts-tags.tld使用设置
- struts2—from标签中 theme="simple" 用法
- struts2 标签中使用%{#ThemeMainBean.index}
- struts2—from标签中 theme="simple" 用法 .
- struts2—from标签中 theme="simple" 用法
- The Struts dispatcher cannot be found. 在页面使用struts2的标签时报的异常
- struts2标签 The Struts dispatcher cannot be found
- struts2 struts.xml文件<constant>标签说明
- 在struts-2.2.3.1中加入<s:head theme="ajax"/>这个标签,报错
- Struts2常见的struts.xml以及constant属性的写法(设置清空页面缓存)。
- struts2中用ajax标签出错。。一使用<s:head theme="ajax"/>就报错或者标签的时间控件显示不出来
- 在使用struts标签的时候最好加上theme="simple"
- struts2常见标签异常:The Struts dispatcher cannot be found.
- Struts2标签问题-using Struts tags without the associat
- struts 2标签 (struts2 多行多列显示 struts2的主题设置)
- Struts2 通过配置struts.xml中的actio标签name属性值来与请求路径映射
- 给struts标签设置ID
- Struts2学习——1800Struts控制标签
- android系统自带的主题与样式(theme and style)