Hi ,
 I am using JSP/Jawa web server .Facing the following problem in IE.I am
trying to redirect an invalid session to a login form.the login form
resides in another server(different from the server in which the
application is running).

the code is as follows

                LoginCheck lc=new LoginCheck();
                boolean isValid=lc.check(request,response,session);
                System.out.println(isValid);
                if (!isValid)
                {
                        System.out.println("Invalid Session " +
(String)session.getValue("userId"));
                        System.out.println("redirecting page");
//                      
response.sendRedirect("http://localhost:1111/common/Login.jsp");
                        
response.sendRedirect("http://remotehost:2222/common/Login.jsp");

        }

the comand when executed in IE gives the following message
"The request did not specify a valid virtual host. ".but on pressing
refresh works fine.
the same code is working in netscape

TIA
Sujoy

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to