struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Srineel Mazumdar <smaz19...@gmail.com>
Subject Issue with entry in Struts.xml
Date Sun, 18 Nov 2012 19:36:29 GMT
Hi,

Please help.

*This particular entry is working fine*

<action name="signon" class="signonAction">
<result name="success">/WEB-INF/jsp/index.jsp</result>
</action>

*But this entry is not working*
*
*
 <action name="signon" class="signonAction"> <result
name="success">/shop/index.action</result>
</action>

*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>
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.action.extension" value="action" />
<constant name="struts.devMode" value="true" />

<package name="shop" extends="struts-default" namespace="/shop">

<default-interceptor-ref name="defaultStack" />
<global-results>
<result name="failure">/WEB-INF/jsp/Error.jsp</result>
<result name="unknown-error">/WEB-INF/jsp/Error.jsp</result>
<result name="global-signon">/WEB-INF/jsp/SignonForm.jsp</result>
</global-results>


<action name="addItemToCart" class="addItemToCartAction">
<result name="success">/WEB-INF/jsp/Cart.jsp</result>
</action>

<action name="checkout" class="viewCartAction">
<result name="success">/WEB-INF/jsp/Checkout.jsp</result>
</action>


<action name="editAccount" class="editAccountAction">
<result type="redirect-action">index</result>
<result name="input">/WEB-INF/jsp/EditAccountForm.jsp</result>
</action>


<action name="editAccountForm" class="editAccountFormAction">
<result name="success">/WEB-INF/jsp/EditAccountForm.jsp</result>
</action>

<action name="index" class="doNothingAction">
<result name="success">/WEB-INF/jsp/index.jsp</result>
</action>

<action name="listOrders" class="listOrdersAction">
<result name="success">/WEB-INF/jsp/ListOrders.jsp</result>
</action>

<action name="newAccount" class="editAccountAction">
<result type="redirect-action">index</result>
<result name="input">/WEB-INF/jsp/NewAccountForm.jsp</result>
</action>


<action name="newAccountForm" class="newAccountFormAction">
<result name="success">/WEB-INF/jsp/NewAccountForm.jsp</result>
</action>

<action name="newOrder" class="newOrderAction">
<result name="confirm">/WEB-INF/jsp/ConfirmOrder.jsp</result>
<result name="shipping">/WEB-INF/jsp/ShippingForm.jsp</result>
<result name="success">/WEB-INF/jsp/ViewOrder.jsp</result>
</action>

<action name="newOrderForm" class="newOrderFormAction">
<result name="success">/WEB-INF/jsp/NewOrderForm.jsp</result>
</action>

<action name="removeItemFromCart" class="removeItemFromCartAction">
<result name="success">/WEB-INF/jsp/Cart.jsp</result>
</action>

<action name="searchProducts" class="searchProductsAction">
<result name="success">/WEB-INF/jsp/SearchProducts.jsp</result>
</action>

<action name="signon" class="signonAction">
<result name="success">/WEB-INF/jsp/index.jsp</result>
</action>

<!-- <action name="signon" class="signonAction"> <result
name="success">/shop/index.action</result>
</action> -->

<action name="signonForm" class="doNothingAction">
<result name="success">/WEB-INF/jsp/SignonForm.jsp</result>
</action>

<action name="updateCartQuantities" class="updateCartQuantitiesAction">
<result name="success">/WEB-INF/jsp/Cart.jsp</result>
</action>

<action name="viewCart" class="viewCartAction">
<result name="success">/WEB-INF/jsp/Cart.jsp</result>
</action>


<action name="newAccount" class="editAccountAction">
<result type="redirect-action">index</result>
<result name="input">/WEB-INF/jsp/index.jsp</result>
</action>

<action name="viewItem" class="viewItemAction">
<result name="success">/WEB-INF/jsp/Item.jsp</result>
</action>

<action name="viewOrder" class="viewOrderAction">
<result name="success">/WEB-INF/jsp/ViewOrder.jsp"</result>
</action>

<action name="viewProduct" class="viewProductAction">
<result name="success">/WEB-INF/jsp/Product.jsp</result>
</action>


<action name="viewCategory" class="viewCategoryAction">
<result type="redirect-action">index</result>
<result name="success">/WEB-INF/jsp/Category.jsp</result>
</action>

</package>
</struts>

Regards,
Srineel

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message