redirection problem...
Hi all, actually i am not sure what's wrong with my redirection servlet script...
part of my servlet code:
if (menu1 !=null){
out.print(menu1);
if (menu1 =="$501-$1000"){
response.sendRedirect("http://www.yahoo.com");
}else{
out.println("Section 2 codes...");
}
ok when i do a out.print(menu1), i got this
$501-$1000;
however why it doesn't enter my if (menu1 == "$501-$1000") Control Structure and redirect me to other site? Can someone explain to me pls... thanks.

