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

Posted on 2008-11-16
Medium Priority
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="/studentInfo.do" >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
  • 2
  • 2

Author Comment

ID: 22971040

Expert Comment

ID: 22973456
hi arkhls,

you not defined the action class for mapping studentInfo.do
make entry like this
                  <action path="/studentInfo.do"  type="ca.school.frontend.actions.StudentInfoAction">
                        <forward name="success" path="./student_info.jsp" />


Author Comment

ID: 22980763
Does not need that , that's very simple forward from 1 page to another howvere I fixed that the reason was my path is /StudentInfo.do 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 /StudentInfo.do it's not

Accepted Solution

vik_sen earned 750 total points
ID: 22982142
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 /actionpath.do .
document.forms[0].action ='/relhs/actionpath.do'; document.forms[0].submit();

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.
Suggested Courses

862 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