[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit WebForm.java,1.22,1.23
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2001-07-17 12:50:15
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit
In directory usw-pr-cvs1:/tmp/cvs-serv16631/src/com/meterware/httpunit
Modified Files:
WebForm.java
Log Message:
Support forms with no explicit action
Index: WebForm.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/WebForm.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- WebForm.java 2001/05/21 21:04:29 1.22
+++ WebForm.java 2001/07/17 12:50:12 1.23
@@ -238,6 +238,10 @@
NamedNodeMap nnm = _node.getAttributes();
String action = getValue( nnm.getNamedItem( "action" ) );
+ if (action.trim().length() == 0) {
+ action = this._baseURL.getFile();
+ }
+
WebRequest result;
if (getValue( nnm.getNamedItem( "method" ) ).equalsIgnoreCase( "post" )) {
|