struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Srineel Mazumdar <smaz19...@gmail.com>
Subject Page not getting submitted
Date Tue, 05 Feb 2013 04:29:17 GMT
Hi,

I have the following JSP. On clicking submit button, the page is not
getting submitted. Any pointers ?

----------------------------------------------------------------------------
JSP.
-----------------------------------------------------------------------------

 <%@ include file="IncludeTop.jsp" %>
<%-- <%@ taglib prefix="html" uri="
http://jakarta.apache.org/struts/tags-html" %> --%>
<%@ taglib prefix="s" uri="/struts-tags" %>

TESTING...

<s:form action="newAccount">
<TABLE cellpadding=10 cellspacing=0 align=center border=1
bgcolor="#dddddd"><TR><TD>

<FONT color=darkgreen><H3>User Information</H3></FONT>
<TABLE bgcolor="#008800" border=0 cellpadding=3 cellspacing=1
bgcolor="#FFFF88">
<TR bgcolor="#FFFF88"><TD>
User ID:</TD><TD><s:textfield  name="newAccountAction.username" />
</TD></TR><TR bgcolor="#FFFF88"><TD>
New password:</TD><TD><s:password name="newAccountAction.password"/>
</TD></TR><TR bgcolor="#FFFF88"><TD>
Repeat password:</TD><TD> <s:password
name="newAccountAction.repeatedPassword"/>
</TD></TR>
</TABLE>
</s:form>
</TABLE>
<%@ include file="IncludeAccountFields.jsp" %>

<BR><CENTER>
<s:submit>

<input border=0 type="image" src="../images/button_submit.gif" />
</s:submit>
</CENTER>

<!-- </html:form> -->

<%@ include file="IncludeBottom.jsp" %>

-------------------------------------------------------------------------------------------------------
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>

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