I'm trying to setup
maven and
struts 2 project in Eclipse, but I'm having problems. I have chosen to create simple HelloWorld example and afterwards add some other functionality, but I'm having problems.
I have 'struts.xml' path in project: src/main/resources/struts.xml
and inside it:
also I have web.xml with path src/main/web/WEB-INF/web.xml and content:
From commandline I use 'mvn clean install' and I get .war file to target folder, that .war file I'm going to deploy under
Tomcat (also it deploys it successfully) but when I enter url I get error:
The requested resource (/ContactWeb/Pages/Login.jsp) is not available.
same error with different url-s only path is different (/ContactWeb/Login.jsp, /ContactWeb/Login.action etc.).
In my project I do have Login.jsp, Index.jsp and also Welcome.jsp. They are under: src/main/web/Pages
I have read somewhere that in struts2 I need to but .action extension to url, but it doesn't work and also why in struts.xml is package name and namespace? what exactly needs to be there? I have read that is for page what it is going to display?