Struts: ServletException: No action config found for the specified url.

Posted on 2008-11-16
Last Modified: 2013-11-24
I'm new in to Struts 1.3.8 I have very simple exmaple to work on, please check out the attachment
everything seems ok but when I click on below link in JSP
 <html:link action="/" >Student Info</html:link>
I get the errr exception
Could you please check out the attachment which is included my configuration and let me know where I'm making mistake ? Thanks

javax.servlet.ServletException: No action config found for the specified url.
root cause
org.apache.struts.chain.commands.InvalidPathException: No action config found for the specified url.

Question by:arkhls

    Author Comment

    LVL 1

    Expert Comment

    hi arkhls,

    you not defined the action class for mapping
    make entry like this
                      <action path="/"  type="">
                            <forward name="success" path="./student_info.jsp" />


    Author Comment

    Does not need that , that's very simple forward from 1 page to another howvere I fixed that the reason was my path is / I guess strusts by defult adds "  .do "  follow bt path that we put ! I did not underestand why but if I put /studentInfo then is working but / it's not
    LVL 1

    Accepted Solution

    You are right if we call the actions by using standard struts tags eg. <html:link>,<html:form> than it automatically calls the ActionServlet defined in web.xml.

    if you want to call action class outside these tags eg from javascript then you have to call using / .
    document.forms[0].action ='/relhs/'; document.forms[0].submit();

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Suggested Solutions

    Thoughout my experience working on eCommerce web applications I have seen applications succumbing to increased user demand and throughput. With increased loads the response times started to spike, which leads to user frustration and lost sales. I ha…
    Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
    This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
    Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now