struts2标签样式:struts.ui.theme 另转struts2中constant设置
来源:互联网 发布:黑马程序员简历 编辑:程序博客网 时间:2024/05/01 23:01
在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
- struts2标签样式:struts.ui.theme 另转struts2中constant设置
- struts2 struts.xml文件<constant>标签说明
- struts2 struts.xml文件<constant>标签说明
- struts2 struts.xml文件<constant>标签说明
- struts2 struts.xml文件<constant>标签说明
- struts2配置文件中constant标签属性
- struts2中的配置文件的<constant>标签(struts.xml自动加载)
- struts2配置文件中constant
- struts2中constant参数设置
- struts2中constant参数设置
- struts2中constant参数设置
- struts2中constant参数设置
- struts2中constant参数设置
- struts2 中constant属性
- struts2中constant参数设置
- struts2中constant参数设置
- struts2中constant参数设置
- struts2中constant参数设置
- oracle 精简版客户端制作方法
- 创建唯一实例
- 武汉理工大学校长论文被曝抄袭 剽窃记录被删
- ALV 事件詳細使用(增加按鈕、增加下拉框等)
- 初学 ASP.NET AJAX Control Toolkit(一):AJAX Control Toolkit 介绍及构建开发环境
- struts2标签样式:struts.ui.theme 另转struts2中constant设置
- 什么叫组播地址(Multicast Address )?
- 100 Vim commands every programmer should know
- 裁剪ffmpeg
- Oracle number数据类型!
- Hibernate实现Clob和Blob对象的存取
- 使用jdbc 连接sybase 11 时出现的问题
- 加载新字体
- 欧拉大定理