problem in struts-config
hello everyone..
<action path="/EditCompanyInfo"
type="com.goldenembryo.company.CompanyInfoAction">
<forward name="success"
path="/pages/temp.jsp"/>
<forward name="error"
path="/pages/Error.jsp"/>
</action>
this is the struts-config.xml file of my web application...The problem is that when i click on the link in the jsp page the java file com.goldenembryo.company.CompanyInfoAction.java couldn't be called...neither i get any exception and neither i get and error in the tomcat...can anyone figure out what the problem can be?
my action class is
/*this is called */
package com.goldenembryo.company;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import java.io.IOException;
import java.util.List;
import java.util.ArrayList;
publicclass CompanyInfoActionextends Action
{
public ActionForward exceute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
{
System.out.println("in the CompanyInfoAction");
HttpSession session=request.getSession(false);
System.out.println(session.getAttribute("CompanyID")+"");
try
{
Company company =new Company();
List list =new ArrayList();
list=company.viewCompanyInfo(session.getAttribute("CompanyID")+"");
if(session.getAttribute("CompanyID")==null)
{
ActionErrors errors =new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR,new ActionError("errors.session.notpresent"));
saveErrors(request,errors);
System.out.println("error in sesion");
return mapping.findForward("error");
}
else
{
if(list.size()>0)
{
request.setAttribute("CompanyInfo", list);
System.out.println(list);
company.closeConnection();
System.out.println("in the CompanyInfoAction");
return (mapping.findForward("success"));
}
else
{
ActionErrors errors=new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR,new ActionError("failure.retriveinfo.Companyedit"));
saveErrors(request, errors);
return (mapping.findForward("failure"));
}
}
}
catch(Exception e)
{
System.out.println("exception in CompanyInfoAction"+e);
}
return mapping.findForward("success");
}
}

