action actionmessage
来源:互联网 发布:苗木识别软件 编辑:程序博客网 时间:2024/06/14 04:47
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{ @Override public String execute() { addActionMessage("第一条消息!"); addActionMessage("第二条消息!"); return SUCCESS; }}
jsp
<%@ page contentType="text/html; charset=utf-8" language="java"%><%@taglib prefix="s" uri="/struts-tags"%><html> <head> </head> <body> <s:actionmessage /> </body></html>
- action actionmessage
- <s:actionmessage/>标签显示Action信息
- java.lang.ClassCastException: org.apache.struts.action.ActionMessage 错误
- org.apache.jasper.JasperException: org.apache.struts.action.ActionMessage
- org.apache.struts.action.ActionMessage cannot be cast to org.apache.struts.action.ActionError
- Struts2中ActionError与ActionMessage的互转,解决不同action不同页面的跳转问题
- ActionMessage问题
- ActionMessage 使用
- ActionError與ActionMessage
- ActionMessage与ActionError
- 从ActionMessage中取值
- ActionMessage与ActionError
- ActionMessage&&ActionErrors介绍
- ActionError,ActionMessage介绍
- actionMessages(),actionError(),ActionMessage介绍
- ActionMessage 与ActionErrors
- ActionError,ActionMessage介绍
- struts ActionMessage简介
- struts actionerror
- QuickSort的基本CPU实现代码
- substring 用法
- Linux中od命令以特殊格式查看文档
- VIM编写程序
- action actionmessage
- WindowsPE
- My vimrc file
- VIM从入门到精通(安装、配置)
- VIM从入门到精通(插入、移动、编辑、撤销)
- VIM从入门到精通(移动的高级技巧)
- VIM从入门到精通(自定义语法高亮)
- VIM从入门到精通(编辑多个文件)
- VIM从入门到精通(在文件间粘贴复制)