Added:
ibatis/java/jpetstore-5/trunk/jpetstore-web/src/main/webapp/WEB-INF/struts-config.xml
URL:
http://svn.apache.org/viewvc/ibatis/java/jpetstore-5/trunk/jpetstore-web/src/main/webapp/WEB-INF/struts-config.xml?rev=925602&view=auto
==============================================================================
---
ibatis/java/jpetstore-5/trunk/jpetstore-web/src/main/webapp/WEB-INF/struts-config.xml
(added)
+++
ibatis/java/jpetstore-5/trunk/jpetstore-web/src/main/webapp/WEB-INF/struts-config.xml
Sat Mar 20 13:25:33 2010
@@ -0,0 +1,210 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<!DOCTYPE struts-config PUBLIC
+ "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
+ "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
+
+<struts-config>
+
+ <form-beans>
+ <form-bean name="accountBean"
type="com.ibatis.jpetstore.presentation.AccountBean"/>
+ <form-bean name="catalogBean"
type="com.ibatis.jpetstore.presentation.CatalogBean"/>
+ <form-bean name="cartBean"
type="com.ibatis.jpetstore.presentation.CartBean"/>
+ <form-bean name="orderBean"
type="com.ibatis.jpetstore.presentation.OrderBean"/>
+ </form-beans>
+
+ <global-exceptions>
+ <exception key="errors.general" type="java.lang.Exception"
path="/common/Error.jsp"/>
+ </global-exceptions>
+
+ <global-forwards>
+ <forward name="failure" path="/common/Error.jsp"/>
+ <forward name="error" path="/common/Error.jsp"/>
+ <forward name="signon" path="/account/SignonForm.jsp"/>
+ <forward name="newOrderForm" path="/shop/newOrderForm.shtml"/>
+ </global-forwards>
+
+ <action-mappings>
+
+ <action path="/shop/index" type="org.apache.struts.beanaction.BeanAction"
+ name="catalogBean" parameter="*" validate="false">
+ <forward name="success" path="/catalog/Main.jsp"/>
+ </action>
+
+ <!-- CATALOG ACTIONS -->
+
+ <action path="/shop/searchProducts"
type="org.apache.struts.beanaction.BeanAction"
+ name="catalogBean" scope="session"
+ validate="false">
+ <forward name="success" path="/catalog/SearchProducts.jsp"/>
+ </action>
+
+ <action path="/shop/switchSearchListPage"
type="org.apache.struts.beanaction.BeanAction"
+ name="catalogBean" scope="session"
parameter="switchProductListPage"
+ validate="false">
+ <forward name="success" path="/catalog/SearchProducts.jsp"/>
+ </action>
+
+ <action path="/shop/viewCategory"
type="org.apache.struts.beanaction.BeanAction"
+ name="catalogBean" scope="session"
+ validate="false">
+ <forward name="success" path="/catalog/Category.jsp"/>
+ </action>
+
+ <action path="/shop/switchProductListPage"
type="org.apache.struts.beanaction.BeanAction"
+ name="catalogBean" scope="session"
+ validate="false">
+ <forward name="success" path="/catalog/Category.jsp"/>
+ </action>
+
+ <action path="/shop/viewProduct"
type="org.apache.struts.beanaction.BeanAction"
+ name="catalogBean" scope="session"
+ validate="false">
+ <forward name="success" path="/catalog/Product.jsp"/>
+ </action>
+
+ <action path="/shop/switchItemListPage"
type="org.apache.struts.beanaction.BeanAction"
+ name="catalogBean" scope="session"
+ validate="false">
+ <forward name="success" path="/catalog/Product.jsp"/>
+ </action>
+
+ <action path="/shop/viewItem"
type="org.apache.struts.beanaction.BeanAction"
+ name="catalogBean" scope="session"
+ validate="false" input="/catalog/Product.jsp">
+ <forward name="success" path="/catalog/Item.jsp"/>
+ </action>
+
+ <!-- CART ACTIONS -->
+
+ <action path="/shop/addItemToCart"
type="org.apache.struts.beanaction.BeanAction"
+ name="cartBean" scope="session"
+ validate="false">
+ <forward name="success" path="/cart/Cart.jsp"/>
+ </action>
+
+ <action path="/shop/removeItemFromCart"
type="org.apache.struts.beanaction.BeanAction"
+ name="cartBean" scope="session"
+ validate="false">
+ <forward name="success" path="/cart/Cart.jsp"/>
+ </action>
+
+ <action path="/shop/updateCartQuantities"
type="org.apache.struts.beanaction.BeanAction"
+ name="cartBean" scope="session"
+ validate="false">
+ <forward name="success" path="/cart/Cart.jsp"/>
+ </action>
+
+ <action path="/shop/checkout"
type="org.apache.struts.beanaction.BeanAction"
+ name="orderBean" scope="session" parameter="newOrderForm"
+ validate="false" >
+ <forward name="success" path="/cart/Checkout.jsp"/>
+ </action>
+
+ <action path="/shop/viewCart"
type="org.apache.struts.beanaction.BeanAction"
+ name="cartBean" scope="session"
+ validate="false">
+ <forward name="success" path="/cart/Cart.jsp"/>
+ </action>
+
+ <action path="/shop/switchCartPage"
type="org.apache.struts.beanaction.BeanAction"
+ name="cartBean" scope="session"
+ validate="false">
+ <forward name="success" path="/cart/Cart.jsp"/>
+ </action>
+
+ <action path="/shop/switchMyListPage"
type="org.apache.struts.beanaction.BeanAction"
+ name="accountBean" scope="session"
+ validate="false">
+ <forward name="success" path="/cart/Cart.jsp"/>
+ </action>
+
+ <!-- ACCOUNT ACTIONS -->
+
+ <action path="/shop/newAccountForm"
type="org.apache.struts.beanaction.BeanAction"
+ name="accountBean" scope="session" parameter="*"
+ validate="false">
+ <forward name="success" path="/account/NewAccountForm.jsp"/>
+ </action>
+
+ <action path="/shop/newAccount"
type="org.apache.struts.beanaction.BeanAction"
+ name="accountBean" scope="session"
+ validate="true" input="/account/NewAccountForm.jsp">
+ <forward name="success" path="/shop/index.shtml"/>
+ </action>
+
+ <action path="/shop/editAccountForm"
type="org.apache.struts.beanaction.BeanAction"
+ name="accountBean" scope="session"
+ validate="false">
+ <forward name="success" path="/account/EditAccountForm.jsp"/>
+ </action>
+
+ <action path="/shop/editAccount"
type="org.apache.struts.beanaction.BeanAction"
+ name="accountBean" scope="session"
+ validate="true" input="/account/EditAccountForm.jsp">
+ <forward name="success" path="/shop/index.shtml"/>
+ </action>
+
+ <action path="/shop/signonForm"
type="org.apache.struts.beanaction.BeanAction"
+ name="accountBean" scope="session" parameter="*"
+ validate="false">
+ <forward name="success" path="/account/SignonForm.jsp"/>
+ </action>
+
+ <action path="/shop/signon" type="org.apache.struts.beanaction.BeanAction"
+ name="accountBean" scope="session"
+ validate="false">
+ <forward name="success" path="/shop/index.shtml"/>
+ </action>
+
+ <action path="/shop/signoff" type="org.apache.struts.beanaction.BeanAction"
+ name="accountBean" scope="session"
+ validate="false">
+ <forward name="success" path="/shop/index.shtml"/>
+ </action>
+
+ <!-- ORDER ACTIONS -->
+
+ <action path="/shop/newOrderForm"
type="org.apache.struts.beanaction.BeanAction"
+ name="orderBean" scope="session"
+ validate="false">
+ <forward name="success" path="/order/NewOrderForm.jsp"/>
+ </action>
+
+ <action path="/shop/newOrder"
type="org.apache.struts.beanaction.BeanAction"
+ name="orderBean" scope="session"
+ validate="true" input="/order/NewOrderForm.jsp">
+ <forward name="confirm" path="/order/ConfirmOrder.jsp"/>
+ <forward name="shipping" path="/order/ShippingForm.jsp"/>
+ <forward name="success" path="/order/ViewOrder.jsp"/>
+ </action>
+
+ <action path="/shop/listOrders"
type="org.apache.struts.beanaction.BeanAction"
+ name="orderBean" scope="session"
+ validate="false">
+ <forward name="success" path="/order/ListOrders.jsp"/>
+ </action>
+
+ <action path="/shop/switchOrderPage"
type="org.apache.struts.beanaction.BeanAction"
+ name="orderBean" scope="session"
+ validate="false">
+ <forward name="success" path="/order/ListOrders.jsp"/>
+ </action>
+
+ <action path="/shop/viewOrder"
type="org.apache.struts.beanaction.BeanAction"
+ name="orderBean" scope="session"
+ validate="false">
+ <forward name="success" path="/order/ViewOrder.jsp"/>
+ </action>
+
+ </action-mappings>
+
+ <message-resources parameter="properties.messages"/>
+
+ <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
+ <set-property
+ property="pathnames"
+ value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
+ </plug-in>
+
+</struts-config>
Propchange:
ibatis/java/jpetstore-5/trunk/jpetstore-web/src/main/webapp/WEB-INF/struts-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added:
ibatis/java/jpetstore-5/trunk/jpetstore-web/src/main/webapp/WEB-INF/tld/struts-bean.tld
URL:
http://svn.apache.org/viewvc/ibatis/java/jpetstore-5/trunk/jpetstore-web/src/main/webapp/WEB-INF/tld/struts-bean.tld?rev=925602&view=auto
==============================================================================
---
ibatis/java/jpetstore-5/trunk/jpetstore-web/src/main/webapp/WEB-INF/tld/struts-bean.tld
(added)
+++
ibatis/java/jpetstore-5/trunk/jpetstore-web/src/main/webapp/WEB-INF/tld/struts-bean.tld
Sat Mar 20 13:25:33 2010
@@ -0,0 +1,377 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+
+<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library
1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
+<taglib>
+ <tlibversion>1.2</tlibversion>
+ <jspversion>1.1</jspversion>
+ <shortname>bean</shortname>
+ <uri>http://struts.apache.org/tags-bean</uri>
+ <tag>
+ <name>cookie</name>
+ <tagclass>org.apache.struts.taglib.bean.CookieTag</tagclass>
+ <teiclass>org.apache.struts.taglib.bean.CookieTei</teiclass>
+ <bodycontent>empty</bodycontent>
+ <attribute>
+ <name>id</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>multiple</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>name</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+ <tag>
+ <name>define</name>
+ <tagclass>org.apache.struts.taglib.bean.DefineTag</tagclass>
+ <teiclass>org.apache.struts.taglib.bean.DefineTei</teiclass>
+ <bodycontent>JSP</bodycontent>
+ <attribute>
+ <name>id</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>name</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>property</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>toScope</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>type</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+ <tag>
+ <name>header</name>
+ <tagclass>org.apache.struts.taglib.bean.HeaderTag</tagclass>
+ <teiclass>org.apache.struts.taglib.bean.HeaderTei</teiclass>
+ <bodycontent>empty</bodycontent>
+ <attribute>
+ <name>id</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>multiple</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>name</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+ <tag>
+ <name>include</name>
+ <tagclass>org.apache.struts.taglib.bean.IncludeTag</tagclass>
+ <teiclass>org.apache.struts.taglib.bean.IncludeTei</teiclass>
+ <bodycontent>empty</bodycontent>
+ <attribute>
+ <name>anchor</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>forward</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>href</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>id</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>name</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>page</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>transaction</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+ <tag>
+ <name>message</name>
+ <tagclass>org.apache.struts.taglib.bean.MessageTag</tagclass>
+ <bodycontent>empty</bodycontent>
+ <attribute>
+ <name>arg0</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>arg1</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>arg2</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>arg3</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>arg4</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>bundle</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>key</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>locale</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>name</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>property</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+ <tag>
+ <name>page</name>
+ <tagclass>org.apache.struts.taglib.bean.PageTag</tagclass>
+ <teiclass>org.apache.struts.taglib.bean.PageTei</teiclass>
+ <bodycontent>empty</bodycontent>
+ <attribute>
+ <name>id</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>property</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+ <tag>
+ <name>parameter</name>
+ <tagclass>org.apache.struts.taglib.bean.ParameterTag</tagclass>
+ <teiclass>org.apache.struts.taglib.bean.ParameterTei</teiclass>
+ <bodycontent>empty</bodycontent>
+ <attribute>
+ <name>id</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>multiple</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>name</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+ <tag>
+ <name>resource</name>
+ <tagclass>org.apache.struts.taglib.bean.ResourceTag</tagclass>
+ <teiclass>org.apache.struts.taglib.bean.ResourceTei</teiclass>
+ <bodycontent>empty</bodycontent>
+ <attribute>
+ <name>id</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>input</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>name</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+ <tag>
+ <name>size</name>
+ <tagclass>org.apache.struts.taglib.bean.SizeTag</tagclass>
+ <teiclass>org.apache.struts.taglib.bean.SizeTei</teiclass>
+ <bodycontent>empty</bodycontent>
+ <attribute>
+ <name>collection</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>id</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>name</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>property</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+ <tag>
+ <name>struts</name>
+ <tagclass>org.apache.struts.taglib.bean.StrutsTag</tagclass>
+ <teiclass>org.apache.struts.taglib.bean.StrutsTei</teiclass>
+ <bodycontent>empty</bodycontent>
+ <attribute>
+ <name>id</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>formBean</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>forward</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>mapping</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+ <tag>
+ <name>write</name>
+ <tagclass>org.apache.struts.taglib.bean.WriteTag</tagclass>
+ <bodycontent>empty</bodycontent>
+ <attribute>
+ <name>bundle</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>filter</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>format</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>formatKey</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>ignore</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>locale</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>name</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>property</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+</taglib>
+
+
+
Propchange:
ibatis/java/jpetstore-5/trunk/jpetstore-web/src/main/webapp/WEB-INF/tld/struts-bean.tld
------------------------------------------------------------------------------
svn:eol-style = native