There is no Action mapped for namespace [/pages/action/student] and action name [Findstudent]

Source: Internet
Author: User

1. Description of the error

2014-7-13 2:38:54 Org.apache.jasper.compiler.TldLocationsCache Tldscanjar info: At least one JAR is scanned for TLDs yet con Tained no TLDs. Enable debug logging for the logger for a complete list of JARs the were scanned but no TLDs were found In them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.2014-7-13 2:38:55 Org.apache.stru Ts2.dispatcher.Dispatcher warn warning: Could not find action or result:/firstssh/pages/action/student/  Findstudent.actionthere is no Action mapped for namespace [/pages/action/student] and action name [findstudent] Associated With context path [/FIRSTSSH]. -[Unknown Location]at Com.opensymphony.xwork2.DefaultActionProxy.prepare (defaultactionproxy.java:185) at Org.apache.struts2.impl.StrutsActionProxy.prepare (strutsactionproxy.java:63) at Org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy (strutsactionproxyfactory.java:37) at Com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy (Defaultactionproxyfactory.java:58) at Org.apache.struts2.dispatcher.Dispatcher.serviceAction (dispatcher.java:552) at Org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction (executeoperations.java:77) at Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter ( strutsprepareandexecutefilter.java:99) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter ( applicationfilterchain.java:241) at Org.apache.catalina.core.ApplicationFilterChain.doFilter ( applicationfilterchain.java:208) at Org.apache.catalina.core.StandardWrapperValve.invoke ( standardwrappervalve.java:220) at Org.apache.catalina.core.StandardContextValve.invoke (Standardcontextvalve.java : 122) at Org.apache.catalina.authenticator.AuthenticatorBase.invoke (authenticatorbase.java:501) at Org.apache.catalina.core.StandardHostValve.invoke (standardhostvalve.java:170) at Org.apache.catalina.valves.ErrorReportValve.invoke (errorreportvalve.java:98) at Org.apache.catalina.valves.AccessLogValve.invoke (accesslogvalve.java:950) at ORg.apache.catalina.core.StandardEngineValve.invoke (standardenginevalve.java:116) at Org.apache.catalina.connector.CoyoteAdapter.service (coyoteadapter.java:408) at Org.apache.coyote.http11.AbstractHttp11Processor.process (abstracthttp11processor.java:1040) at Org.apache.coyote.abstractprotocol$abstractconnectionhandler.process (abstractprotocol.java:607) at Org.apache.tomcat.util.net.aprendpoint$socketprocessor.dorun (aprendpoint.java:2441) at Org.apache.tomcat.util.net.aprendpoint$socketprocessor.run (aprendpoint.java:2430) at Java.util.concurrent.threadpoolexecutor$worker.runtask (threadpoolexecutor.java:886) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:908) at Java.lang.Thread.run ( thread.java:619)

2. Cause of error

Unable to find the action path, there is a problem with the path of the page introduction action


3, the solution of the method

Introduce a path JSP on the page


<%@ taglib prefix= "C" uri= "Http://java.sun.com/jstl/core_rt"%> <%@ taglib  prefix= "FMT" uri= "/HTTP/ Java.sun.com/jsp/jstl/fmt "%>  <%@ taglib prefix=" sql "uri=" http://java.sun.com/jstl/sql "%>  <%@ Taglib prefix= "x" uri= "Http://java.sun.com/jsp/jstl/xml"%>  <%@ taglib prefix= "M" uri= "http://java.sun.com /jsp/jstl/functions "%>  <%  String path = Request.getcontextpath ();  String basepath = request.getscheme () + "://" +request.getservername () + ":" +request.getserverport () +path+ "/";  %>    <c:set var= "BP" value= "<%=basePath%>" ></c:set>  

When the action request

$ (function () {           $.ajax ({               type: "Post",               URL: "${bp}/action/student/findstudent.action",               dataType: " JSON ",               success:function (data) {                                  }           });});

Path preceded by "${BP}"


There is no Action mapped for namespace [/pages/action/student] and action name [Findstudent]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.