response.sendRedirect Vs window.location.href

hi

i have used response.sendRedirect in my application for redirecting ,when i have deployed the application on Tomcat server, ':8000' is appended in the URL automatically,but when i changed it to window.location.href ( through javascript),its working fine,

Can anyone tell me ,wots the possible cause of this issue.

[337 byte] By [Manzara] at [2007-11-26 18:38:50]
# 1
8000..is this ur port no?
mshanua at 2007-7-9 6:12:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
yup .it is
Manzara at 2007-7-9 6:12:53 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...