I use MyEclipes as IDE and I created a web program project and add struts capabilities on that, the problem is this famous error "The requested resource (/contactUs.do) is not available."
i check all form,action form, strust-config.xml to solve it, but i can't
could you pleas help me to solve it
Action form :
web.xml (which is in WEB-INF folder in my project):
I also change the action path to "/contactUs.do" and "contactUs.do" and redeployed it, but again not work
are you put struts-config.xml xml in WEB-INF folder, please check name of this file also. how you are calling contactUs.do? are you calling it from any JSP if yes please put that jsp in your post.
Joined: Apr 06, 2011
actually i use the MyEclipse as IDE and it automatically do all of it, but i check them often, the struts-config.xml file is in WEB-INF directory and its name is same,
and i call it directly from address bar, means i type http://localhost:8085/contactUs.do and press enter, my tomcat port define in 8085, i change it in server.xml on this line
please help me to find it out, it is very necessary for me
Can you check the console output or the logs to see if your application deployed successfully? I'm not too familiar with Struts 1.x but if it requires ActionServlet to be started just as the application starts, then you should set load-on-startup to a positive value, 1 would work just fine...