Hi Mat,
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, java.io.IOException { HttpSession session = req.getSession(); String url1 = res.encodeRedirectURL("http://localhost:8080/ELTest/view.jsp"); //Line 14boolean test = "http://localhost:8080/ELTest/view.jsp". equals(url1); //Line 15 System.out.println(test);System.out.println(url1); res.sendRedirect(url1); }
executing with this code, jsessionid is shown in url. But it is not showing when user clicks on Test Link & goes to TestJSP.jsp page.
What is the problem ?