Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LookupDispatchAction Problem

Status
Not open for further replies.

harieskrish

Programmer
Joined
Apr 2, 2004
Messages
1
Location
US
HI,
I am getting a problem in using LookupDispatchAction class.

I am merging my application A to another application B. I made my struts config entry into application B web.xml.
When I am invoking the an action handler it is throwing Struts error...does not contain handler parameter named dispatch

<P>
---Web.xml entry---
<!-- Servlet for Struts -->
<servlet>
<servlet-name>struts</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>
/WEB-INF/struts-config.xml,
/WEB-INF/struts-config-bid.xml
</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

<p>
---Struts config Action mapping---
<action
path="/bid/RFxAction"
validate="false"
parameter="dispatch"
attribute="RFxForm"
name="RFQForm"
type="com.rfx.action.RFxAction">
<forward name="success" path="/bid/Summary.jsp" />
</action>
<p>
----Action Class Calling----
function openBidWindow()
{
window.open("/action/bid/RFxAction?dispatch=RFQ.read&oid=13");
}
<input type="radio" name="list" value='123' onclick="openBidWindow()">

<p>
When i click the radio buttion I am getting "Request does not contain handler parameter named dispatch" error.
<p>
Here I observed one thing.. If I subclass my class with Action Servlet, I am getting all request parameters, but same this failing when is I am sub classing LookupDispatchAction.

Could any body help in this regards....

-Hari
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top