As you have not posted the code it is sifficult to say whether there is an error in the code itself, but one thing to check is that there is NO white space above the redirect command.
For example if you had code that looked like this:
<%
response.addHeader
("Pragma","No-cache");
response.addHeader
("Cache-Control","no-cache");
response.addDateHeader
("Expires",1);
%>
<% HttpSession s =
request.getSession();
if (request.
isRequestedSessionIdValid()
== false || s.getAttribute("userInfo") == null)
{
response.sendRedirect("Login.jsp");
}
%>
you would get a cahcing error because there is white space between the %> and <% which opens the redirect section. To fix this you'd change the code to read:
<%
response.addHeader
("Pragma","No-cache");
response.addHeader
("Cache-Control","no-cache");
response.addDateHeader
("Expires",1);
%><% HttpSession s =
request.getSession();
if (request.
isRequestedSessionIdValid()
== false || s.getAttribute("userInfo") == null)
{
response.sendRedirect
("Login.jsp");
}
%>
Chardham tour operators
Seo Training Course Delhi
Another possible solution is to replace the sendRedirect() with an actual anchored link such as:
<A HREF = "Url for page">Go here</A>