This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
i have a servlet with a blank action (so it calls itself). first time in it creates a form with a submit button a la:
so the servlet has basically this logic:
this works fine when i test it on my servlet engine. the problem is trying to test it with httpUnit. when i submit the form via the httpUnit WebConversation getResponse method, the code above always hits the else block. is there a better way to check for form submission than my req.getParameter("goButton") call? preferably one that httpUnit likes...
thanks. i'll try that out. you're right, i didn't use the same code. i had something like:
in other words, i used WebRequest instead of SubmitButton. it ran, but the submit button didn't seem to be set. again, thanks. i am finding that there is thin documentation on httpUnit. of course, i missed your article, which is greatly appreciated!