Hi
I have copied web.xml file and in that file I have also attached code that is copied from from struts-config.xml and applicationcontext.xml and Action Class.
But I still get that error message HTTP 404 Servlet Action is not available
Could any one can help
/* forward name="success" path="" */
private final static String SUCCESS = "success";
private final static String FAILURE = "failure";
final Logger LOG = Logger.getLogger(SunnyServiceImpl.class);
/**
* This is the action called from the Struts framework.
* @param mapping The ActionMapping used to select this instance.
* @param form The optional ActionForm bean for this request.
* @param request The HTTP Request we are processing.
* @param response The HTTP Response we are processing.
* @throws java.lang.Exception * @return
*/
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception
{
LoginForm formBean = (LoginForm)form;
String name = formBean.getName();
String email = formBean.getEmail();
// perform validation
if ((name == null) || // name parameter does not exist
email == null || // email parameter does not exist
name.equals("") || // name parameter is empty
email.indexOf("@") == -1)
{ // email lacks '@'
Well first the applicationContext.xml files should not have a URL mapping in it, just your service beans. I don't see the sunnyService configured in your applicationContext.xml