Hi,
My
Struts & Tiles application has a
servlet mapping /action/*.Now with that mapping I have problems with formbeans.
My Struts Config is as follows
<?xml version="1.0" encoding="ISO-8859-1"?>
<struts-config>
<form-beans>
<form-bean name="results" type="formbean.inputformbean"/>
</form-beans>
<global-exceptions></global-exceptions>
<action-mappings>
<action path="/jsp/launch.jsp" type="action.DefaultAction" parameter="launch"/>
<action name="results" path="/jsp/results.jsp" type="action.ResultsAction" parameter="results" input="launch">
<forward name="success" path="results"/>
<forward name="failure" path="launch"/>
</action>
</action-mappings>
<controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
<message-resources parameter="resources.application"/>
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"/>
<set-property property="moduleAware" value="true"/>
<set-property property="definitions-parser-validate" value="true"/>
</plug-in>
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
</plug-in>
</struts-config>
I Also have a tile definition for the two actionmappings in my tile-defs.xml which is as follows
<definition name=".mainLayout" path="/layouts/template.jsp" controllerClass="controller.CustomTileController">
<put name="Title" value="Title" />
<put name="Top" value="/include/jsp/top.jsp" />
<put name="TopNav" value="/include/jsp/topnav.jsp" />
<put name="Left" value="/include/jsp/left.jsp" />
<put name="Crumb" value="/include/jsp/crumb.jsp" />
<put name="Content" value="/en/jsp/content/be_direct.jsp" />
<put name="Footer" value="/include/jsp/footer.jsp" />
</definition>
<definition name="launch" extends=".mainLayout">
<put name="title" value="Launc Title" />
<put name="Content" value="/en/jsp/content/launch.jsp" />
</definition>
<definition name="results" extends=".mainLayout">
<put name="title" value="Results Title" />
<put name="Content" value="/en/jsp/content/results.jsp" />
</definition>
My
jsp page has a html:form
<html:form action="/jsp/results.jsp">
and I get a error Cant find Mapping for "/jsp/results" I get the impression that the form taglib removes the .jsp at the end of the form action path.Is there a way to solve this or circumvent this?? Any Insights would be appretiated.
Thanks,
Sudeep