Hello,
My application requires user to enter a name and then shows the rows associated to that row in the text field form while posting the name in hidden field.
In my doPOST, user can make changes to those fields and press update and updates the row. MY problem is if a user presses update b4 entering any name, it should show an error.
This is wut i did in my dopost n doget method:
doget():
String name = req.getParameter("name");
out.println("<FORM method=GET name = \"AMember\" action=\"AMember\" >");
out.println("<INPUT type=text size=40 maxlength=20 name=name");
out.println("<INPUT type=submit value=\"Lookup Member\" ");
in my dopost
String name = req.getParameter("name");
if(passcode == null || passcode.equals(""))
{
out.println("Please enter the name and press LOOKUP MEMBER");
}
it compiles but if i hit the update b4 submit, it gives me empty field ( im assuming, it thinks it looks up fields for name = null rather than giving me an error)..Could you plz help me out with this. thanks!!