and used JavaScript to set the action and call submit. But Tomcat showed the request as a GET. I found that adding a dummy form input fixed the problem:
<form name="doForm" action="" method="post">
</form>
<form name="doForm" action="" method="post">
<input type="hidden" name="blah" value="blah"/><!-- need at least 1 input or the form uses method="get" even when "post" is specified. -->
</form>
1 comment:
I think method="post" needs to be in all caps:
method="POST"
but I'm not 100% sure...
Post a Comment