struts actionerror
来源:互联网 发布:苗木识别软件 编辑:程序博客网 时间:2024/06/05 21:45
web.xml
<?xml version="1.0" encoding="UTF-8"?><web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"><display-name>StrutsTutorial</display-name><filter><filter-name>struts2</filter-name><filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class></filter><filter-mapping><filter-name>struts2</filter-name><url-pattern>/*</url-pattern></filter-mapping><welcome-file-list><welcome-file>index.jsp</welcome-file></welcome-file-list></web-app>
struts.xml
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"><struts><package name="login" extends="struts-default"><action name="test" class="action.TestAction"><result name="success">/show.jsp</result></action></package></struts>
package action;import com.opensymphony.xwork2.ActionSupport;public class TestAction extends ActionSupport{@Overridepublic String execute(){ addActionError("第一条错误消息!"); addActionError("第二条错误消息!"); return SUCCESS;}}
jsp
<%@ page contentType="text/html; charset=utf-8" language="java"%><%@taglib prefix="s" uri="/struts-tags"%><html><head></head><body><s:actionerror /></body></html>
- struts actionerror
- struts-actionerror
- Struts 2 ActionError & ActionMessage Example
- [Struts入門]ActionError與ActionMessage
- 如何在struts中使用ActionError
- Struts ActionError与ActionMessage的区别
- struts验证fieldError actionError简单总结
- struts验证fieldError actionError简单总结
- struts验证fieldError actionError简单总结
- 关于struts中的ActionError和ActionMessage的感想
- org.apache.struts.action.ActionMessage cannot be cast to org.apache.struts.action.ActionError
- 初用ActionError
- ActionError與ActionMessage
- 数据验证以及ActionError
- 数据验证以及ActionError
- ActionMessage与ActionError
- actionMessages(),actionError()介绍
- ActionMessage与ActionError
- Tomcat中三种部署项目的方法
- Apache安装
- hdu 1863 畅通工程
- VIM文本对象---非常有用
- 使用VBScript从Access中读取表格数据
- struts actionerror
- QuickSort的基本CPU实现代码
- substring 用法
- Linux中od命令以特殊格式查看文档
- VIM编写程序
- action actionmessage
- WindowsPE
- My vimrc file
- VIM从入门到精通(安装、配置)