05、struts1 的标签库 常用举例
来源:互联网 发布:仓库软件有哪些 编辑:程序博客网 时间:2024/04/28 12:28
1、先说struts1的标签的配置和使用
配置:
* 在struts-config.xml文件中加入
<message-resources parameter="MessageResources" />
* 拷贝MessageResources.properties文件到src下
------------------------------ 内容如下:
# -- standard errors --
errors.header=<UL>
errors.prefix=<LI>
errors.suffix=</LI>
errors.footer=</UL>
# -- validator --
errors.invalid={0} is invalid.
errors.maxlength={0} can not be greater than {1} characters.
errors.minlength={0} can not be less than {1} characters.
errors.range={0} is not in the range {1} through {2}.
errors.required={0} is required.
errors.byte={0} must be an byte.
errors.date={0} is not a date.
errors.double={0} must be an double.
errors.float={0} must be an float.
errors.integer={0} must be an integer.
errors.long={0} must be an long.
errors.short={0} must be an short.
errors.creditcard={0} is not a valid credit card number.
errors.email={0} is an invalid e-mail address.
# -- other --
errors.cancel=Operation cancelled.
errors.detail={0}
errors.general=The process did not complete. Details should follow.
errors.token=Request could not be completed. Operation is not in sequence.
# -- welcome --
welcome.title=Struts Blank Application
welcome.heading=Welcome!
welcome.message=To get started on your own application, copy the struts-blank.war to a new WAR file using the name for your application. Place it in your container's "webapp" folder (or equivalent), and let your container auto-deploy the application. Edit the skeleton configuration files as needed, restart your container, and you are on your way! (You can find the application.properties file with this message in the /WEB-INF/src/java/resources folder.)
使用:
* 采用taglib指令引入
<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean"%>
<%@ taglib prefix="logic" uri="http://struts.apache.org/tags-logic"%>
=================================================================
- 05、struts1 的标签库 常用举例
- struts1标签Logic使用举例
- 传智播客 struts1.x 常用标签的使用
- JSTL核心库常用标签举例
- struts常用标签举例
- Struts1框架学习(三)--struts1的标签库
- struts1.x 标签库的配置
- struts2和struts1.x的标签库
- Struts1的嵌套标签!
- Struts1.2的标签
- struts1的ec标签
- 常用struts标签使用举例
- struts1.x标签库
- Struts1标签库详解
- Struts1 标签库 说明
- Struts1标签库
- Struts1 标签库 说明
- Struts1 标签库说明
- 应该不是甲流,没有发烧呀!
- linux2.6中的eventpoll filesystem学习1
- VC++ ADO连接数据库操作
- 下载需要积分
- BSP开发(1)-Initramfs
- 05、struts1 的标签库 常用举例
- SQL数据查询
- js eval函数
- makefile 使用详解
- 将TXT文档中数据存入数组中 C#
- 标准C++实现反射特性
- sql数据跟新
- 视图
- oracle的分区表、分区索引和全局索引部分总结