cancel
Showing results for 
Search instead for 
Did you mean: 

In the action attribute of form:form tag ": POST" string getting appended when the form method is POST

0 Kudos

Here in my scenario we are migrating from hybris 5.3 to 6.3.
I have a variable submitAction and /registration/createcustomer is a value assign to it.
This submitAction variable assign to action of form:form tag.
here the problem is ": POST" string getting appended to action URL for form:form tag after page render.

In the JSP file code looks like this.

 <c:url value="/registration/createcustomer" var="submitAction" />
 <form:form class="registrationB2b" method="POST" commandName="fmdata" id="registrationB2b" name="registrationB2b" action="${submitAction}" enctype="multipart/form-data">

After page render in browser code looks like this

 <form id="registrationB2b" name="registrationB2b" class="registrationB2b" action="/fmstorefront/federalmogul/en/USD/registration/createcustomer : POST" method="POST" enctype="multipart/form-data"><input type="hidden" id="technicianType" name="technicianType" value="Warehouse Distributor Light Vehicle">                
  <button id="regsubmit" class="btn btn-sm btn-fmDefault text-uppercase registrationBtns" type="submit">Submit</button>
 </form>

Does any one came across this?

Any help would be really appreciated.

Thank you

Accepted Solutions (0)

Answers (0)