Utilizing REST to POST data through Firefox's Poster tool and encountering a url:
http://[ip]/page.jsp?paramater1=whatever¶meter2=whatever (Content Type: application/x-www-form-urlencoded)
The page.jsp includes:
<body onload="onload()">
<script>
document.forms["myform"].submit(); // just to be redundant
function onload(){
document.forms["myform"].submit(); // just to be redundant
}
</script>
<form action="SessionTestDriver" method="post" id="myform">
[form stuff]
</form>
Despite this setup, the form submission does not proceed. Manually loading the page in a browser works flawlessly, indicating an issue with the REST call.
An obvious gap in understanding is evident. Any suggestions?
SOLVED! Success! After realizing the main jsp page calls a servlet on submit, I directly used that servlet in the REST url instead of the jsp page, resulting in the desired outcome!