You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sonu S <so...@gmail.com> on 2006/08/25 15:33:01 UTC

error in mapping

hi 2 all,

I am using dynaValidatiorForm in my application. i am getting some error
related to mapping. i checked my code everything seems to be ok. My code is.


in struts config:

<form-beans>
  <form-bean name="MyForm" type="
org.apache.struts.validator.DynaValidatorForm">
   <form-property name="text1" type="java.lang.String">
   </form-property>
   <form-property name="text2" type="java.lang.String">
   </form-property>
   <form-property name="submitaction" type="java.lang.String">
   </form-property>
  </form-bean>
 </form-beans>



<action-mappings>
 <action path="/MyApp"
    type="com.actions.MyAppAction"
    name="MyForm"  scope="request"
    validate="false" input="/jsp/index.jsp">
   <forward name="success" path="/jsp/submit.jsp" />
   <forward name="error" path="/jsp/error.jsp" />

</action>
 in JSP i am giving

<html:form action="/MyApp">
 <!-- some html tags -->
  <html:submit property="submitaction" value="Submit" />
  <html:submit property="submitaction" value="Reset" />
 <!-- some html tags -->
</html:form>


in web browser i am getting

400 Invalid path was requested

and on console i am getting someting like

RequestProces E org.apache.struts.action.RequestProcessor  Invalid path  was
requested.


i hope i will get solution in group


with regards
sonu