struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliphant, Geoff" <geoff.oliph...@sealcorp.com.au>
Subject RE: Action Mapping not getting called
Date Mon, 15 Jan 2001 23:16:20 GMT
Here is the signature of my perform method:

public ActionForward perform(ActionMapping mapping,
				ActionForm form,
				HttpServletRequest request,
				HttpServletResponse response)
		throws IOException, ServletException
	{

and this is called by the ActionServlet which uses the ActionInstance passed
in to call the perform(*) method with as below:

ActionForward forward =
	    action.perform(mapping, formInstance, request, response);
        return (forward);

Can anyone else help me??

-----Original Message-----
From: Brian Bowman [mailto:brian.bowman@nordicwave.com]
Sent: Monday, 15 January 2001 16:37
To: struts-user@jakarta.apache.org
Subject: RE: Action Mapping not getting called


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.

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

Mime
View raw message