Hi, I have a code like this
<html>
<head>Title
<script>
function callme()
{
alert("Hi");
document.test.action ="testAction.do";
alert(document.getElementById("option").value);
alert('<%=request.getParameter("option")%>');
}
</script> }
</head>
<body>
<FORM method="post" name="test" >
<select name="option" id="option">
<option>1</option>
<option>2</option>
</select>
<input type="submit" value="Submit" onClick="callme()">
</form>
</body>
</html>
This is a sample jsp code of what I have to do.The problem is I am able to get value for the document.getElementById but I want to access this parameter inside my action class which is retunring as null.Can anyone help me in solving this issue.