olegk 2004/02/23 15:05:43
Modified: httpclient/xdocs tutorial.xml
Log:
Fixes the mistake in the tutorial sample code
Reported by Thorsten Scherler
Revision Changes Path
1.5 +2 -3 jakarta-commons/httpclient/xdocs/tutorial.xml
Index: tutorial.xml
===================================================================
RCS file: /home/cvs/jakarta-commons/httpclient/xdocs/tutorial.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- tutorial.xml 15 Feb 2004 14:17:03 -0000 1.4
+++ tutorial.xml 23 Feb 2004 23:05:43 -0000 1.5
@@ -210,9 +210,8 @@
// Execute the method.
int statusCode = -1;
- int attempt = 0;
// We will retry up to 3 times.
- while (statusCode == -1 && attempt < 3; attempt++) {
+ for (int attempt = 0; statusCode == -1 && attempt < 3; attempt++) {
try {
// execute the method.
statusCode = client.executeMethod(method);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]