struts中标签的用法
来源:互联网 发布:手机打电话软件大全 编辑:程序博客网 时间:2024/04/30 14:56
<logic:messagesPresent>
<logic:messagesPresent> 标签只在要显示特定类型的 Struts 消息时才显示其内容。
<logic:messagesPresent message="true">
<p>
<html:messages id="message" message="true">
<c:out value="${message}" />
</html:messages>
</p>
</logic:messagesPresent>
<logic:messagesPresent>
<p>
There was a problem with your request:
</p>
<blockquote class="error">
<html:messages id="error">
<li><c:out value="${error}" /></li>
</html:messages>
</blockquote>
<c:if test="${not empty requestScope.exception}">
[...]
</c:if>
<p>
Please correct the problem and try again.
</p>
</logic:messagesPresent>
<logic:messagesPresent> 标签只在要显示特定类型的 Struts 消息时才显示其内容。
message
属性定义了消息类型:如果为 true
,那么就考虑正常消息,否则就考虑错误消息。在 <logic:messagesPresent>
标签中,<html:message>
标签枚举并显示相应类型的每一个消息。因而在下面 JSP 页中,第一部分显示所有正常应用程序消息,第二部分所有显示错误。<logic:messagesPresent message="true">
<p>
<html:messages id="message" message="true">
<c:out value="${message}" />
</html:messages>
</p>
</logic:messagesPresent>
<logic:messagesPresent>
<p>
There was a problem with your request:
</p>
<blockquote class="error">
<html:messages id="error">
<li><c:out value="${error}" /></li>
</html:messages>
</blockquote>
<c:if test="${not empty requestScope.exception}">
[...]
</c:if>
<p>
Please correct the problem and try again.
</p>
</logic:messagesPresent>
- struts中标签的用法
- Struts中标签的引入
- System.ComponentModel.DataAnnotations dll中标签的用法
- DIV+CSS中标签dl dt dd常用的用法
- DIV+CSS中标签dl dt dd常用的用法
- DIV+CSS中标签dl dt dd常用的用法
- DIV+CSS中标签dl dt dd常用的用法
- DIV+CSS中标签dl dt dd常用的用法
- DIV+CSS中标签dl dt dd常用的用法
- struts中标签和JSTL标签比较
- struts.xml中标签自动提示问题
- jsp中标签的引用
- JSF中标签的使用
- HTML中标签的使用
- Java中标签的使用
- css中标签的定义
- Java中标签的使用
- Java中标签的使用
- head区的其他设置
- Exchange 2000 Server安装实录
- #ifdef _DEBUG
- 学习Eclipse 的配置
- #define chHANDLE_DLGMSG(hwnd, message, fn) 宏定义
- struts中标签的用法
- SendMessage(, WM_SETICON, , ,);设置对话框图标
- ExitProcess(0);退出程序
- GetVersionEx(&vi);获取版本
- MSDN上的緩存設計網址
- 提高HTML页面性能的技巧
- 繁体中文转换为简体中文的PHP类
- Cinema's Scariest Scenes from MSN Entertainment
- 提高网站在Google中的排名