You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by kiranjeevan <ki...@yahoo.com> on 2004/06/25 12:54:09 UTC
Problem With Struts-config. Pls Reply ASAP
Dear Friends,
I'm a bit out of touch with coding. My need is to display some
orderdetails after a successful Login. So I have a Login View and a
SucessView. So the orderDetails are picked up as a vector from the
DAO and throu Delegate returned to the SuccessView. I display the
OrderDetails using Logic-iterate. I'm also using Tiles. This works
fine if I have an intermediate JSP in the Login View which has a
Button Action which inturn calls the DisplayOrders Action.
so my intermediate JSP Looks Like this :
<html:form action="/displayOrders">
<table width="98%" height="78%" border="0" cellspacing="0"
cellpadding="0" >
<tr>
<td width="9%"> </td>
<td width="91%" Valign="top" class=lg_title><!--
#BeginEditable "Body1" --><font color="#CC0000" face="Arial,
Helvetica, sans-serif"><b><font color="#000000"><br>
Display Orders</font></b></font><font color="#CC0000"
face="Arial, Helvetica, sans-serif"><b><br>
<br>
</b></font>
<br>
<br>
<br>
<br>
<font color=black>
<input type=submit align="center" class="frmBtnS" value=Search
name=action onclick="doSetUserAction('<%
=SucessView.ACTION_DISPLAY_ORDER_LIST %>')"></font> <font color=black>
..............
And My Struts-config looks Like this:
<action path="/Login"
type="com.equifax.emortgage.abstractui.GenericStrutsAction"
name="com.equifax.emortgage.ui.LoginView"
input="/jsp/Login.jsp"
scope="request"
validate="true">
<forward name="com.equifax.emortgage.ui.LoginView"
path="LoginViewResult"/>
</action>
<action path="/displayOrders"
type="com.equifax.emortgage.abstractui.GenericStrutsAction"
name="com.equifax.emortgage.ui.SucessView"
scope="request"
validate="true">
<forward name="com.equifax.emortgage.ui.SucessView"
path="displayOrders"/>
</action>
And my Forward Definition.xml looks Like this:
<definition name="LoginViewResult" path="/jsp/MasterLayout.jsp">
<put name="header" value="/jsp/Eheader.jsp"/>
<put name="body" value="/jsp/appHome.jsp"/>
<put name="footer" value="/jsp/Efooter.jsp"/>
</definition>
<definition name="displayOrders"
path="/jsp/MasterLayout.jsp">
<put name="header" value="/jsp/Eheader.jsp"/>
<put name="body" value="/jsp/success.jsp"/>
<put name="footer" value="/jsp/Efooter.jsp"/>
</definition>
Now Instead of calling appHome.JSP which inturn calls success.jsp how
can I call success.jsp directly. ?????????
Pls tell me the changes to be made in struts-config.xml. and forward-
definition.xml.
thanks in advance,
regards,
kiran
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org