I'm having a problem with Struts2 in Eclipse. I've set all the JARs up
and the FilterDispatcher launches properly. The problem is that it seems
my struts.xml is never read, because I keep getting a message saying
"There is no Action mapped for namespace / and action name home. -
[unknown location]" when trying to access http://localhost/home.action
(yes, Tomcat is configured to port 80). I've searched all over for a
week or so but I still haven't found a solution. I think the problem is
where I put struts.xml or some configuration somewhere. I've tried
placing struts.xml in <project root>/build/classes/, <project
root>/classpath/, and <project root>/content/WEB-INF/classes/, but none
of them works. Does anyone have an idea?
Thanks in advance.
Emil
---struts.xml---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="default" namespace="/" extends="struts-default">
<action name="home" class="my.package.web.struts.action.HomeAction">
<result>/WEB-INF/jsp/page/home.jsp</result>
</action>
</package>
</struts>
---/struts.xml--
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]