Hi all
function doLogin(){
var id= loginForm.UID.value;
if(id.length > 0 && id.charAt(0)!=" "){
<% request.setAttribute("action","checkUser"); %>
//<% session.setAttribute("action","checkUser"); %>
document.loginForm.submit();
}else{
alert("Enter User Name");
}
}
In the code above i am trying to set the request parameter "Action" to a value.. but when i try to access it in the
servlet it is posted to i get a null value. But if i put it in the session than it works fine.
My servlet is acting as a controller and forwards the request to another bean or servlet depending upon the "action" value passed in the request.
Can anyone help me with what the problem is and what solution can be. Personally i dont want to use the session for it.
Thanks Dave for help, and everyone else also.
Gul