This usually means you have some whitespace in your file
before your redirect, if you send any characters down the
line at all before the redirect it will fail, and jsp
counts the whitespaces including returns in your file. you
may find it easier to do your redirect in javascript if you
can make that requirement.

Komal Sethi


> -----Original Message-----
> From: Ralph Eddy [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 16, 1999 11:34 AM
> To: [EMAIL PROTECTED]
> Subject: sendRedirect problem
>
>
>
>
> I have the following line in my JSP file:
>   <%Response.sendRedirect("http://www.lettucehead.com/No_Session.jsp"); %>
>
> I placed a trace above and below it so I know it is being executed.
> However, it does not do anything.
> I have tried using tresponse.sendRedirect and response.sendRedirect
>
> I use SendRedirect elsewhere in servlets with no problems but I am unable
> to get it to work in a JSP created java file.
>
> Any Ideas?
>
> Thanks
>
> Ralph Eddy
> tel 415.383.4924
> fax 415.383.6560
> mailto:[EMAIL PROTECTED]
>
> ==================================================================
> =========
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff JSP-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to