This content has been marked as final. Show 3 replies
request.setParameter("userID", "password");Maybe you're just guessing at the query parameters that the login form expects. Have you actually examined the HTML source of the login form, to ensure you are setting up posting the correct parameter names and values to it?
Yes my friend, i check the code and put the exact parameter names.
So the password is passed to a field named "tempID"? That's odd. The next step might be to make sure your code is grabbing the right form.
You're doing this:
WebForm loginForm = response.getForms();Are you sure that is returning the one you think it is? You should do some debugging (using a real debugger to step thru the code and examine things, or use a "poor man's debugger" by simply adding some System.out.println statements in there to let it show you what form the code actually retrieved).