I am getting null when I am using post method while passing a form to the next page A repeat of this question link text
<html>
<head>
Title
<script>
function callme()
{
alert("Hi");
alert(document.getElementById("prio").value);
}
</script>
</head>
<body>
<FORM method="post" name="test"enctype="multipart/form-data" action="testjsp.jsp" >
<select name="prio" id="prio">
<option>1</option>
<option>2</option>
</select>
<input type="submit" value="Submit" onClick=callme();>
</form>
</body>
</html>
IN testjsp.jsp I am trying to prin the prio variable which I am not able to do and its prining null.I just want to access the variable prio in some other server side component and also want to use post method.
<html>
<head>
Title
</head>
<body>
<%
String prio=request.getParameter("prio");
out.println("the value of prio is"+prio);
%>
</body>
</html>
Is this any way related to Idempotent property? I am confused why I could not access the variable prio in the testjsp page.