Hello all,
I have a very stupid problem... unfortunately i can not find any way to solve it..
I am using JDeveloper to design & implement JSP page..
I have an input field "text field" where the user enter his name..
I wanna check if the text field is empty or not when the user click the submit button..
I am using this condition:
if(request.getParameter("UserName") !=null)
{
.......
}
else
out.println("Enter your name");
the problem is that it always enter the IF even if the text field is empty. i have tried saving the value into a variable I defined but i got the same output..
how can i fix this!