J
Josh Martin
Struts Group -
I've been banging my head against a wall for three days trying all
kinds of things to get the ActionMapping wildcard feature to work.
I'm receiving an error (listed below under THE ERROR), but it goes
away if I remove the wildcard from the struts-config file (see SIMPLE
CHANGE TO STRUTS-CONFIG.XML THAT MAKES IT WORK). I found a site with
a JAR file that I also tried to use as a controller, but that didn't
work either. Any help would be very appreciated!
Josh
STRUTS WILDCARD DOCUMENTATION
http://jakarta.apache.org/struts/userGuide/building_controller.html#action_mapping_wildcards
THE ERROR
Cannot retrieve mapping for action /basicNavigateProduct
SITE WITH A STRUTS CONTROLLER MEANT TO HANDLE WILDCARDS
http://www.twdata.org/struts-wildcard/
IN MY JSP
<html:form name="productForm" type="com.gxs.lowes.forms.ProductForm"
action="/basicNavigateProduct.do">
THE STRUTS-CONFIG.XML
<action-mappings>
<action path="/*NavigateProduct"
type="com.gxs.lowes.actions.NavigateProductAction"
name="productForm"
scope="session"
input="{1}"
validate="true">
</action>
</action-mappings>
<controller processorClass="org.twdata.struts.WildcardTilesRequestProcessor"
inputForward="true"/>;
ALTERNATE STRUTS-CONFIG.XML CONTROLLER SETTINGS
<controller inputForward="true"/>;
SIMPLE CHANGE TO STRUTS-CONFIG.XML THAT MAKES IT WORK
<action-mappings>
<action path="/basicNavigateProduct"
type="com.gxs.lowes.actions.NavigateProductAction"
name="productForm"
scope="session"
input="basic"
validate="true">
</action>
</action-mappings>
<controller processorClass="org.twdata.struts.WildcardTilesRequestProcessor"
inputForward="true"/>;
I've been banging my head against a wall for three days trying all
kinds of things to get the ActionMapping wildcard feature to work.
I'm receiving an error (listed below under THE ERROR), but it goes
away if I remove the wildcard from the struts-config file (see SIMPLE
CHANGE TO STRUTS-CONFIG.XML THAT MAKES IT WORK). I found a site with
a JAR file that I also tried to use as a controller, but that didn't
work either. Any help would be very appreciated!
Josh
STRUTS WILDCARD DOCUMENTATION
http://jakarta.apache.org/struts/userGuide/building_controller.html#action_mapping_wildcards
THE ERROR
Cannot retrieve mapping for action /basicNavigateProduct
SITE WITH A STRUTS CONTROLLER MEANT TO HANDLE WILDCARDS
http://www.twdata.org/struts-wildcard/
IN MY JSP
<html:form name="productForm" type="com.gxs.lowes.forms.ProductForm"
action="/basicNavigateProduct.do">
THE STRUTS-CONFIG.XML
<action-mappings>
<action path="/*NavigateProduct"
type="com.gxs.lowes.actions.NavigateProductAction"
name="productForm"
scope="session"
input="{1}"
validate="true">
</action>
</action-mappings>
<controller processorClass="org.twdata.struts.WildcardTilesRequestProcessor"
inputForward="true"/>;
ALTERNATE STRUTS-CONFIG.XML CONTROLLER SETTINGS
<controller inputForward="true"/>;
SIMPLE CHANGE TO STRUTS-CONFIG.XML THAT MAKES IT WORK
<action-mappings>
<action path="/basicNavigateProduct"
type="com.gxs.lowes.actions.NavigateProductAction"
name="productForm"
scope="session"
input="basic"
validate="true">
</action>
</action-mappings>
<controller processorClass="org.twdata.struts.WildcardTilesRequestProcessor"
inputForward="true"/>;