I really what went wrong. Just to
test,made 2 mini dynamic web page project to construct a struts app. 1 works and another does not, though methodology is same.
Working struts project configuration( helloworld application from tutorials point):
web.xml (webcontent>web-inf>web.xml)
/******web.xml code begins*********************************************************/
/********************web.xml ends*********************************/
index.jsp, welcome file configured in web.xml. File location: WebContent>index.jsp
/******************index.jsp begins*****************************/
/*******************index.jsp ends**************************************/
struts.xml. File Location: WebContent>web-inf>classes>struts.xml
/*************************struts.xml begins***********************************/
/***********************************struts.xml ends****************/
Action class, HelloWorldAction. File location: JavaResources> src>com.tutorialspoint.struts2
/*****************HelloWorldAction.java begins****************/
/***************HelloWorldAction ends****************/
HelloWorld.jsp, file location: WebContent>HelloWorld.jsp
/*****************HelloWorld begins******************/
/**************Hello World ends*********************************/
Built path for struts2 jar files in WebContent>WebINF>lib folder.
Deployed the project in web-apps folder of apache tomacat.
On running this project it runs perfectly. But when i run another mini project in same way, same configurations it does not work. i have checked for possible mistakes but they dont work...
Heres the code:
web.xml (webcontent>web-inf>web.xml)
/******web.xml*********************************************************/
/**************web.xml ends********************************/
index.jsp, welcome file configured in web.xml. File location: WebContent>index.jsp
/******************index.jsp begins*****************************/
/*********************index.jsp ends******************************/
struts.xml. File Location: WebContent>web-inf>classes>struts.xml
/*************************struts.xml begins***********************************/
/*****************struts.xml ends********************/
Action class, "ActionClass.java". File location: JavaResources> src>com.unit>ActionClass.java
/*****************ActionClass.java begins****************/
/****************ActionClass ends*****************/
Success.jsp. File location: WebContent>WEB-INF>Success.jsp
/*****************Success.jsp begins******************/
/***************Success.jsp ends*****************/
I have used same jar files in lib folder Same way of deployment. Yet it gives an error:
Why is Hello-World working and the next project isn't when done in same way..? I don't see anything wrong with Action class. I am using eclipse indigo and am not keen on using paid versions of eclipse, so available capabilities is not a very good idea. If any one can help it would be great. Thank-you.