I have a problem if I remove the .action
extension inside my Struts2 application. I put this in my struts.xml
:
I was having same issue in one of the application where i need to call an Action on page load in place of index.jsp
or welcom.jsp
in
.I did the following steps
Placed the following entry in my web.xml.
index
I created an empty file with name index
in my web-app folder and finally placed the following entry in my struts.xml file
/ab.jsp
So in this case when i was hitting this URL www.myapp.com/myApp
,its calling index action of Struts2 and i was able to do all init work for my welcome page.