If you can print out the value of the whole string ( including the values of s and i ) then we will know what URL finally comes out. Please post the exact problem. -ARSKumar
ARS Kumar, Sun Certified Programmer for Java 2 Platform
http://www.automatedsqa.com/
tao , Welcome to javaranch. PROPER NAMES ARE NOW REQUIRED Please look carefully at official naming policy at javaranch & reregister yourself with proper first & last name. Please adhere to official naming policy & help maintain the decorum of the forum. Waiting for your posts with proper first & last name. Once you have reregister , please let us know about that & then your previous account will be disabled. Regards.