Hi,
the methode signature is wrong.
You have to override the methode
public ActionForward perform(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
There is no method
public ActionForward perform(ActionServlet servlet,
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
in the Action class.
Since Struts 1.1 the perform method is deprecated,
so you better use the execute method.
public ActionForward execute(ActionMapping mapping,
ActionForm form,
ServletRequest request,
ServletResponse response)
throws Exception {
HTH,
Phil
----- Original Message -----
From: "Ajay Kalidindi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 13, 2003 12:23 PM
Subject: action-mappings, action not working
> Hi
>
>
> I am using :
>
> Redhat 9
> Apache 2.0.48
> Tomcat 4.1.29
> Struts 1.1
>
> For some reason I am not getting any errors and control is not getting
forwarded
> to respective success forward from DummyAction.
> Any help is appreciated.
>
> Regards
>
> Ajay Kalidindi
>
> config and source follows:
>
> struts-config.xml entry:
>
> <action-mappings>
> <action path="/Menu" type="com.kalidindis.home.DummyAction" >
> <forward name="success" path="/common/menu.jsp"/>
> </action>
> </action-mappings>
>
> DummyAction.java :
>
> package com.kalidindis.home;
>
> import java.io.IOException;
> import javax.servlet.RequestDispatcher;
> import javax.servlet.*;
> import org.apache.struts.action.*;
> import org.apache.struts.util.*;
>
> /**
> * Implementation of <strong>Action</strong> that lists contacts of Ajay
> Kalidindi.
> */
>
> public final class DummyAction extends Action {
> public ActionForward perform(ActionServlet servlet,
> ActionMapping mapping,
> ActionForm form,
> HttpServletRequest request,
> HttpServletResponse response)
> throws IOException, ServletException {
> return (mapping.findForward("success"));
> }
> }
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]