redirection JSP not working in IE

Hi all,

I have a servlet with the following part of the code to redirect to an jsp page.

When I enter the correct username and password, and click "submit", it should redirect to my index.jsp page. It works fine with firefox, but in Inter

works fine with firefox. But in Internet Explorer(IE), if I click "submit" button, nothing happened, it just remain at the original page.

/*********************************************************************************/

if(buttonType.equalsIgnoreCase("submit")){

if (username.equals("test") && password.equals("test")){

url = host+"index.jsp";

response.sendRedirect(url);

return;

}

}

/*********************************************************************************/

Thank you in advance!

[828 byte] By [karenJJa] at [2007-11-27 10:34:03]
# 1

What's the value of host string? Just before index.jsp "slash" may be missing.

Use "equalsIgnoreCase instead of equals.

skp71a at 2007-7-28 18:26:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

thanks for reply skp71.host string is my website. no slash is missing. it works fine in firefox but in IE the page is not redirected. so I guess it's the problem with IE settings. Does anyone have any idea? Thanks!

karenJJa at 2007-7-28 18:26:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...