I am trying to
test a simple
jsp by configuring
struts & tiles.
When I invoke the action in the browser, I get a HTTP 404 message.
I don't see any error message in the console.
Help?
The tiles-defs.xml reads:
***************************************************************
<definition name="mylayout" path="mylayout.jsp">
<put name="bodycontent" value="body_content.jsp"/>
<put name="bodytopbar" value="topbar.jsp"/>
<put name="header" value="header.jsp"/>
<put name="footer" value="footer.jsp"/>
<put name="menu" value="menu_common.jsp"/>
</definition>
<!-- App entries -->
<definition name="test" extends="mylayout" >
<put name="title" value="Test"/>
<put name="bodycontent" value="newtest.jsp"/>
<put name="menu" value="menu_app.jsp"/>
</definition>
***************************************************************
The struts config.xml reads:
***************************************************************
<action-mappings>
<action path="/mytest" forward="a" />
</action-mappings>
.
.
.
<plug-in className="org.apache.struts.tiles.TilesPlugin" >
<set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />
<set-property property="definitions-debug" value="2" />
<set-property property="definitions-parser-details" value="2" />
<set-property property="definitions-parser-validate" value="true" />
<set-property property="moduleAware" value="true" />
</plug-in>
***************************************************************
When I invoke
http://localhost:9095/appdev/mytest.do, I get HTTP 404 message.
The console output is:
***************************************************************
[4/10/06 10:31:36:776 EDT] 3340306e WsServer A WSVR0001I: Server server1 open for e-business
[4/10/06 10:31:44:167 EDT] 3d75f06c WebGroup I SRVE0180I: [FICSWeb] [/ficsdev] [Servlet.LOG]: ActionServlet: init
[4/10/06 10:31:44:237 EDT] 3d75f06c PropertyMessa I org.apache.struts.util.PropertyMessageResources Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
[4/10/06 10:31:44:247 EDT] 3d75f06c PropertyMessa I org.apache.struts.util.PropertyMessageResources Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
[4/10/06 10:31:45:238 EDT] 3d75f06c TilesPlugin I org.apache.struts.tiles.TilesPlugin Tiles definition factory loaded for module ''.
[4/10/06 10:31:45:298 EDT] 3d75f06c TilesRequestP I org.apache.struts.tiles.TilesRequestProcessor Tiles definition factory found for request processor ''.
***************************************************************