I'm trying to setup an apache tomcat server with a struts application. Problem was the project's directory structure was poorly mapped out. I've updated it and running into a problem when I try to start my server. My folder structure is as follows.
The main thing I changed was moving all of the jsp files into a separate folder, they were originally just directly in the Web Content folder. My problem is now I THOUGHT the only thing I needed to change was the struts.xml's package default namespace (the only one they made) to "/jsp" thinking the "/" would point to the web content folder and adding jsp would hit the right folder. However it doesn't seem to be the case. I get an error that "There is no Action mapped for namespace "/" and action name mainDashboardHome." (tried cleaning server, clearing FF cache, and restarting eclipse), like it didn't even see that I changed the package's namespace. My web.xml is super basic filtering all url patterns to struts2. The only thing I can think of is the Welcom-file-list : Welcome.jsp's redirect needs to change... code below. Not sure what to change it to.
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
</head>
<body>
<% response.sendRedirect("mainDashboardHome.action"); %>
</body>
</html>
Also the start of my struts.xml package definition with dashboard action (located in the SRC folder):
<struts>
...
<package name="default" extends="struts-default" namespace="/jsp">
...
<action name="mainDashboardHome" method="mainDashBoard"
class="mainDashboard.Action.ApplicationRouteAction">
<result name="success">test.jsp</result>
<result name="error">Login.jsp</result>
</action>