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

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.
      org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
      org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
org.apache.struts.chain.commands.InvalidPathException: No action config found for the specified url.
      org.apache.struts.chain.commands.AbstractSelectAction.execute(AbstractSelectAction.java:71)

arkhlsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

arkhlsAuthor Commented:
0
vik_senCommented:
hi arkhls,

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

0
arkhlsAuthor Commented:
vik_sen:
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
0
vik_senCommented:
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 .
like
document.forms[0].action ='/relhs/actionpath.do'; document.forms[0].submit();
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.