yes, I originally used "document.loginForm" and had the same issue. Since I was in a time crunch I hacked a workaround. I created a 'dummy' form at the bottom of the HTML page that consists of the following:
Now, since this form only contains hidden parameters - in my HttpUnit test case I use a Scriptable handler to populate them and submit the form (HttpUnit will not let you directly change a hidden form parameter without throwing an exception).
Seems cheesy, but until I figure out what the hell is going on it will have to do. My hunch is that it has something to do with the fact that I am using <form> instead of <html:form>, but cannot verify.
Have you tried: HttpUnitOptions.setExceptionsThrownOnScriptError( false );
posted 15 years ago
I will open the floodgates of his own worst nightmare! All in a tiny ad: