RE: Action Mapping not getting called

2001-01-15 Thread Brian Bowman

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:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
he.org]On Behalf Of Oliphant, Geoff
Sent: Monday, January 15, 2001 9:17 AM
To: '[EMAIL PROTECTED]'
Subject: Action Mapping not getting called


I'm in the process of upgrading existing apps to 0.9 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-nameaction/servlet-name

servlet-classau.com.sealcorp.eol.common.EolActionServlet/servlet-class
init-param
  param-nameapplication/param-name

param-valueau.com.sealcorp.eol.common.ApplicationResources/param-value
/init-param
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value2/param-value
/init-param
load-on-startup2/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

2001-01-15 Thread Oliphant, Geoff

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:[EMAIL PROTECTED]]
Sent: Monday, 15 January 2001 16:37
To: [EMAIL PROTECTED]
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:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
he.org]On Behalf Of Oliphant, Geoff
Sent: Monday, January 15, 2001 9:17 AM
To: '[EMAIL PROTECTED]'
Subject: Action Mapping not getting called


I'm in the process of upgrading existing apps to 0.9 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-nameaction/servlet-name

servlet-classau.com.sealcorp.eol.common.EolActionServlet/servlet-class
init-param
  param-nameapplication/param-name

param-valueau.com.sealcorp.eol.common.ApplicationResources/param-value
/init-param
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value2/param-value
/init-param
load-on-startup2/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.