R
ramakrishna
Dear all,
I have a problem in html:form form tag.
Iam using following html code.
<html:form action="/addUser.do">
</html>
while resolving the aciton it is giving the following result.
<form method="post" name="userForm" action="//addUser.do">
</form>
Iam getting "//addUser.do" double slashes in action element.
Could you please send me the solution for this.
Please send me reply.
Thanks In Advance.
Please find the struts-config.xml entry
- <form-beans>
<form-bean name="userForm" type="com.ebg.formbean.UserForm" />
</form-beans>
- <!-- ========== Action Mapping Definitions
==============================
-->
- <action-mappings>
- <action path="/addUser" name="userForm"
type="com.ebg.actions.AddUserAction" scope="request" validate="true"
input="fail">
<forward name="success" path="/work/blackListSearch.jsp" />
<forward name="fail" path="/displayUser" />
</action>
<action path="/displayUser" scope="request" forward="/work/
addUser.jsp" />
</action-mappings>
I have a problem in html:form form tag.
Iam using following html code.
<html:form action="/addUser.do">
</html>
while resolving the aciton it is giving the following result.
<form method="post" name="userForm" action="//addUser.do">
</form>
Iam getting "//addUser.do" double slashes in action element.
Could you please send me the solution for this.
Please send me reply.
Thanks In Advance.
Please find the struts-config.xml entry
- <form-beans>
<form-bean name="userForm" type="com.ebg.formbean.UserForm" />
</form-beans>
- <!-- ========== Action Mapping Definitions
==============================
-->
- <action-mappings>
- <action path="/addUser" name="userForm"
type="com.ebg.actions.AddUserAction" scope="request" validate="true"
input="fail">
<forward name="success" path="/work/blackListSearch.jsp" />
<forward name="fail" path="/displayUser" />
</action>
<action path="/displayUser" scope="request" forward="/work/
addUser.jsp" />
</action-mappings>