Okay heres the problem
i have stored Phone numbers from a check box into an array
i want to replace #NUMBERS# in the String URL with a value from the array numbers[]
example :
number[1] = 0000
Before:
url:http://www.sendmessgae.com/send?#NUMBERS
After:
url:http://www.sendmessgae.com/send?0000
String url = "http://www.sendmessgae.com/send?#NUMBERS"
for (int i = 0; i < numbers.length; i++)
{
String expression = "#NUMBER#";
String replacement = String numbers[i];
String URL = URL.replace(expression, replacement);
}
response.sendRedirect(URL);
The above code is what i have so far however it is not working
i was wondering if any one could assist me in getting it working as i am fairly new to jsp and java.
Thanks in advanced