title: Hyperlink call through Struts Action
body: <p>I want to navigate to JSP page from Hyperlink click through Stucts flow :
  To call from My Jsp Page to Struts Config file below hyperlink:</p>
  
  <pre><code>&lt;a href="userAction.do?page=user"&gt;User Creation&lt;/a&gt;&lt;br /&gt;
  </code></pre>
  
  <p>In the Struts-config.xml : 
  I mapped my action classes as follow : </p>
  
  <pre><code>&lt;action-mappings&gt;
      &lt;action name="loginForm" path="/login" scope="request" type="com.soc.app.login.action.LoginAction" validate="false" parameter="page"&gt;
          &lt;forward name="failure" path="/jsp/index.jsp" /&gt;
          &lt;forward name="sessionexpired" path="/jsp/error.jsp" /&gt;
          &lt;forward name="success" path="/jsp/home.jsp" redirect="false"/&gt;
       &lt;/action&gt;
  
  &lt;action path="/userAction" type="com.soc.app.users.action.userAction" scope="request" parameter="page" validate="false"&gt;
          &lt;forward name="user" path="user"/&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p>userAction Class :</p>
  
  <pre><code>public userAction()
  {
      System.out.println("inside userAction !!!!!!!!!!!!!!");
      logger = Logger.getLogger("AdminLog");
      relativeURL="http://localhost:8080/xyz/";
  
  }   
  
  public ActionForward user(ActionMapping mapping,
          ActionForm form,
          HttpServletRequest request,
          HttpServletResponse response)
          throws Exception {
      System.out.println("inside UserAction");
      HttpSession session = (HttpSession)request.getSession();
      String url = "";
      LinkedHashMap&lt;String,String&gt; links = (LinkedHashMap&lt;String,String&gt;)session.getAttribute("links");
  
  
      String requestURL= request.getRequestURL().substring(request.getRequestURL().lastIndexOf("/")+1) ;
      System.out.println("Link value in admin acton requestURL!!!!!!!!!"+requestURL);
      if(request.getQueryString()!=null &amp;&amp; !("").equals(request.getQueryString())){
          url = relativeURL+requestURL+"?"+request.getQueryString();
      }else{
          url = relativeURL+requestURL+"?"+request.getQueryString();
      }
  
      System.out.println("url :  "+url);
      if(links!=null &amp;&amp; links.get("user")== null ){
          links.put("user",url);
          //session.setAttribute("links", links);
      }
      return mapping.findForward("user");
  }
  </code></pre>
  
  <p>I am able to login , LoginAction is working fine but if i click hyperlink it shows :</p>
  
  <p>"HTTP Status 500 - No action instance for path /userAction could be created "</p>