struts2标签

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>
	<include file="struts-default.xml"></include>
	
	<package name="datatag" extends="struts-default" namespace="/action/datatag" >
		<action name="actionTag" class="com.action.datatag.ActionTagAction">
			<result>/datatag/actionTagSuccess.jsp</result>
		</action>
		
		<action name="debugTag">
            <result>/datatag/debugTag.jsp</result>
        </action>
         
        <action name="pushTag" 
				class="com.action.datatag.PushTagAction">
			<result>/datatag/pushTag.jsp</result>
		</action>
		
		<action name="setTag" 
				class="com.action.datatag.SetTagAction">
			<result>/datatag/setTag.jsp</result>
		</action>
		<action name="textTag" class="com.action.datatag.TextTagAction">
            <result>/datatag/i18nTag.jsp</result>
        </action>
	</package>	
	<package name="formtag" extends="struts-default">
		<action name="formTag" class="com.action.formtag.FormTagAction">
			<result>/uitag/formTagSuccess.jsp</result>
			<result name="input">/uitag/formTag.jsp</result>
		</action>
	</package>	
	<package name="i18n" extends="struts-default">
		<action name="registerAction" class="com.action.Register.RegisterAction">
			<result>/i18n/success.jsp</result>
			<result name="input">/i18n/register.jsp</result>
		</action>
	</package>
</struts>


1、action

你可能感兴趣的:(struts ognl)