This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
According to your struts-config file,
--your form action on jsp should be action="/helloWorld"
--your action class HelloWorld.java should be in com package and must extend org.apache.struts.action.Action class.
Please check above two points.
The error stacktrace and JSP in question would be helpful. Also make sure you've done enough debugging before starting a thread for a problem. Like I said before, try understanding a working Struts application if you face issues with your app.
Coderanch, best ever forum on the net. Hands down.
in my index page 'm getting the error
The requested resource (/helloWorld) is not available.
if i use helloWorld.do in place of /helloWorld
'm getting Servlet Action not found
Joined: Jul 20, 2006
if you use struts tag, you can use simply, <html:form action="/helloWorld"...> struts tag does required conversion for you.
if you are use html tag you have to use <form action="/helloWorld.do"...>
Have you checked that your action class extending org.apache.struts.action.Action class. If this part is also ok, Please provide all files to find out the root cause.
After i restarted my server there is no error but not getting the correct answer
it just displaying 0 0 0 0 0 0
instead of name,mark1,mark2....mark5.
WARNING : No FormBeanConfig found in module under name name
Even after changed the array into 5 int variables,
not getting the required result.
All were zeros:
Warning: No BenFormConfig found in module under name name
INFO: Initialize action of type: com.HelloWorldA