title: "Could not find action or result" in Struts
body: <p>I'm currently creating a web application using the jquery+struts plugin. It also uses hibernate. I have two web pages already, the other one works perfectly fine but when I created another one, it threw an error saying that the action cannot be found. The error is:</p>
  
  <pre><code>ERROR (org.apache.struts2.dispatcher.Dispatcher:38) - Could not find action or result
  /mims_agchem/index.action
  No result defined for action com.agchem.mims.actions.Index and result success
  </code></pre>
  
  <p>at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:375)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:277)
   at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
   at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
   at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
   at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
   at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
   at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)</p>
  
  <p>These are my codes:</p>
  
  <p>struts.xml</p>
  
  <pre><code>&lt;struts&gt;
  &lt;constant name="struts.enable.DynamicMethodInvocation" value="false" /&gt;
  &lt;constant name="struts.devMode" value="true" /&gt;
  
  &lt;package name="admin" namespace="/admin" extends="hibernate-default,json-default,struts-default"&gt;
    &lt;interceptors&gt;
      &lt;interceptor-stack name="showcaseStack"&gt;
        &lt;interceptor-ref name="defaultStackHibernate"/&gt;
      &lt;/interceptor-stack&gt;
    &lt;/interceptors&gt;
    &lt;default-interceptor-ref name="showcaseStack"/&gt;
    &lt;action name="*" class="com.agchem.mims.actions.admin.{1}"&gt;
      &lt;result&gt;/jsp/admin/{1}.jsp&lt;/result&gt;
      &lt;result name="redirect" type="redirect"&gt;${redirectUrl}&lt;/result&gt;
    &lt;/action&gt;
  &lt;/package&gt;
  &lt;package name="general" namespace="/" extends="hibernate-default,json-default,struts-default"&gt;
    &lt;interceptors&gt;
      &lt;interceptor-stack name="showcaseStack"&gt;
        &lt;interceptor-ref name="defaultStackHibernate"/&gt;
      &lt;/interceptor-stack&gt;
    &lt;/interceptors&gt;
    &lt;action name="index" class="com.agchem.mims.actions.Index"&gt;
      &lt;result name="success"&gt;/jsp/index.jsp&lt;/result&gt;
      &lt;result name="redirect" type="redirect"&gt;${redirectUrl}&lt;/result&gt;
    &lt;/action&gt;
  &lt;/package&gt;
  </code></pre>
  
  <p></p>
  
  <p>Index.java</p>
  
  <pre><code>package com.agchem.mims.actions;
  
  import com.opensymphony.xwork2.ActionSupport;
  
  public class Index extends ActionSupport {
  
    private static final long serialVersionUID = 1475579903320095412L;
  
    @Override
    public String execute() throws Exception {
      return SUCCESS;
    }
  
  }
  </code></pre>
  
  <p>index.jsp</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;%@ taglib prefix="s" uri="/struts-tags"%&gt;
  &lt;%@ taglib prefix="sj" uri="/struts-jquery-tags"%&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
  &lt;head&gt;
      &lt;title&gt;AGCHEM MIMS&lt;/title&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
      &lt;meta http-equiv="Content-Style-Type" content="text/css" /&gt;
      &lt;meta http-equiv="pragma" content="no-cache" /&gt;
      &lt;meta http-equiv="cache-control" content="no-cache" /&gt;
      &lt;meta http-equiv="expires" content="0" /&gt;
      &lt;meta http-equiv="keywords" content="struts2,jquery, hibernate, plugin,showcase, grid" /&gt;
      &lt;meta http-equiv="description" content="Project Maintenance" /&gt;
      &lt;link href="../styles/main.css" rel="stylesheet" type="text/css" /&gt;
      &lt;link href="../styles/menu.css" rel="stylesheet" type="text/css" /&gt;
      &lt;sj:head
    loadAtOnce="true"
    compressed="false"
    jquerytheme="mims"
    customBasepath="../themes"
    loadFromGoogle="false"
    debug="true"
  /&gt;
      &lt;script type="text/javascript" src="../js/menu.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;s:url id="adm201" action="ADM201"/&gt;
    &lt;s:url id="adm210" action="ADM210"/&gt;
    &lt;s:url id="adm301" action="ADM301"/&gt;
    &lt;s:url id="adm310" action="ADM310"/&gt;
    &lt;div id="menu"&gt;
      &lt;ul class="menu" style="width: 765px"&gt;
        &lt;li&gt;
          &lt;sj:a href="../general/main_admin.html" targets="main"&gt;Home&lt;/sj:a&gt;
        &lt;/li&gt;
        &lt;li class="current"&gt;
          &lt;sj:a href="#" class="parent"&gt;Project&lt;/sj:a&gt;
            &lt;div&gt;
              &lt;ul&gt;
                &lt;li&gt;&lt;sj:a href="%{adm201}" class="current" targets="main"&gt;Create New Project&lt;/sj:a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;sj:a href="%{adm210}" targets="main"&gt;Search Projects&lt;/sj:a&gt;&lt;/li&gt;
              &lt;/ul&gt;
            &lt;/div&gt;
        &lt;/li&gt;
        &lt;li&gt;
          &lt;sj:a href="#" class="parent"&gt;User&lt;/sj:a&gt;
            &lt;div&gt;
              &lt;ul&gt;
                &lt;li&gt;&lt;sj:a href="%{adm301}" targets="main"&gt;Create New User&lt;/sj:a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;sj:a href="%{adm310}" targets="main"&gt;Search Users&lt;/sj:a&gt;&lt;/li&gt;
              &lt;/ul&gt;
            &lt;/div&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
    &lt;sj:div id="main" href="%{adm201}"&gt;
      &lt;img id="indicator" src="../images/indicator.gif" alt="Loading..."/&gt;
    &lt;/sj:div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Hope someone could explain and help me on my problem. Thanks a lot!</p>
  
  <p>Regards,</p>
  
  <p>Honey =)</p>