You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Oliphant, Geoff" <ge...@sealcorp.com.au> on 2001/01/15 09:17:25 UTC

Action Mapping not getting called

I'm in the process of upgrading existing apps to 0.99999 but having a
problem getting my perform() method getting called from the main application
controller servlet.

in struts-config.xml:
  <action path="/employeesearch"
	
type="au.com.sealcorp.eol.employee.web.EmployeeSearchAction"
		  name="EmployeeSearchForm"
		  scope="request"
		  validate="false">
	<forward name="success" path="/employee_search_results.jsp"/>
	<forward name="details" path="/employee_details.jsp"/>
  </action>

The code calls 'employeesearch.do' and it goes through the main controller
servlet as described in 

   <servlet>
	<servlet-name>action</servlet-name>
	
<servlet-class>au.com.sealcorp.eol.common.EolActionServlet</servlet-class>
	<init-param>
	  <param-name>application</param-name>
	
<param-value>au.com.sealcorp.eol.common.ApplicationResources</param-value>
	</init-param>
	<init-param>
	  <param-name>config</param-name>
	  <param-value>/WEB-INF/struts-config.xml</param-value>
	</init-param>
	<init-param>
	  <param-name>debug</param-name>
	  <param-value>2</param-value>
	</init-param>
	<init-param>
	  <param-name>detail</param-name>
	  <param-value>2</param-value>
	</init-param>
	<load-on-startup>2</load-on-startup>
  </servlet>

This works fine. The action servlet collects the actionInstance, mapping and
formInstance and calls: 

processActionPerform(actionInstance, mapping, formInstance, request,
response);

but the perform method in my EmployeeSearchAction never gets called.

Any ideas?

Cheers,

Geoff


================================================================================================
                                     IMPORTANT INFORMATION

This message and any files transmitted with it are confidential and should be read only by those
persons to whom it is addressed.   
If you have received this message in error, please notify us immediately by way of reply. Please
also destroy and delete the message from your computer. Any unauthorised form of reproduction
of this message is strictly prohibited.

It is the duty of the recipient to virus scan and otherwise test the information provided before
loading onto any computer system.  
SEALCORP does not warrant that the information is free of a virus or any other defect or error.

SEALCORP is not liable for the proper and complete transmission of the information contained in
this communication, nor for any delay in its receipt.

Any views expressed in this message are those of the individual sender, except where the sender
specifically states them to be the views of SEALCORP.

================================================================================================

RE: Action Mapping not getting called

Posted by Brian Bowman <br...@nordicwave.com>.
The signature of the perform method has changed to four parameters for
version .9xxx. Which is probably why your method isn't getting called.


-----Original Message-----
From:
struts-user-return-3418-brian.bowman=nordicwave.com@jakarta.apache.org
[mailto:struts-user-return-3418-brian.bowman=nordicwave.com@jakarta.apac
he.org]On Behalf Of Oliphant, Geoff
Sent: Monday, January 15, 2001 9:17 AM
To: 'struts-user@jakarta.apache.org'
Subject: Action Mapping not getting called


I'm in the process of upgrading existing apps to 0.99999 but having a
problem getting my perform() method getting called from the main application
controller servlet.

in struts-config.xml:
  <action path="/employeesearch"

type="au.com.sealcorp.eol.employee.web.EmployeeSearchAction"
		  name="EmployeeSearchForm"
		  scope="request"
		  validate="false">
	<forward name="success" path="/employee_search_results.jsp"/>
	<forward name="details" path="/employee_details.jsp"/>
  </action>

The code calls 'employeesearch.do' and it goes through the main controller
servlet as described in

   <servlet>
	<servlet-name>action</servlet-name>

<servlet-class>au.com.sealcorp.eol.common.EolActionServlet</servlet-class>
	<init-param>
	  <param-name>application</param-name>

<param-value>au.com.sealcorp.eol.common.ApplicationResources</param-value>
	</init-param>
	<init-param>
	  <param-name>config</param-name>
	  <param-value>/WEB-INF/struts-config.xml</param-value>
	</init-param>
	<init-param>
	  <param-name>debug</param-name>
	  <param-value>2</param-value>
	</init-param>
	<init-param>
	  <param-name>detail</param-name>
	  <param-value>2</param-value>
	</init-param>
	<load-on-startup>2</load-on-startup>
  </servlet>

This works fine. The action servlet collects the actionInstance, mapping and
formInstance and calls:

processActionPerform(actionInstance, mapping, formInstance, request,
response);

but the perform method in my EmployeeSearchAction never gets called.

Any ideas?

Cheers,

Geoff


============================================================================
====================
                                     IMPORTANT INFORMATION

This message and any files transmitted with it are confidential and should
be read only by those
persons to whom it is addressed.
If you have received this message in error, please notify us immediately by
way of reply. Please
also destroy and delete the message from your computer. Any unauthorised
form of reproduction
of this message is strictly prohibited.

It is the duty of the recipient to virus scan and otherwise test the
information provided before
loading onto any computer system.
SEALCORP does not warrant that the information is free of a virus or any
other defect or error.

SEALCORP is not liable for the proper and complete transmission of the
information contained in
this communication, nor for any delay in its receipt.

Any views expressed in this message are those of the individual sender,
except where the sender
specifically states them to be the views of SEALCORP.

============================================================================
====================