Sendredirect without



Keywords: sendredirect without
Description: I have a simple form that takes a value from user (e.g email). passes it to a servlet named SignIn.java that processes it and saves the email value to the session. The SignIn code is very simple.

I have a simple form that takes a value from user (e.g email). passes it to a servlet named SignIn.java that processes it and saves the email value to the session. The SignIn code is very simple. here is what its doGet mostly does:

So far so good, I've verified that the values aren't null at this point. Now comes the problem, I want to redirect to another servlet ( ShowOnline.java ) that needs to do some more processing. When I write

What is going on? sendRedirect() just makes your browser send a new request, it shouldn't affect the session scope. I have checked the cookies and they are fine (it is the same session from before for sure since it is the first and only session my webapp creates and furthermore I even bothered and checked the sesison ID's and they're the same on both requests).

Why would there be a difference between sendRedirect() and forward(). The easy solution would be to use forward() but I want to get to the bottom of this before I just let go. I think it is important for me to understand what happened. I'm not sure I like the idea of not knowing what's going on on such basic concepts (my whole webapp is very simple and basic at this point since I'm a beginner).




Photogallery Sendredirect without:


JAVA Ravin: forward and sendRedirect example using Servlets


apex - sendRedirect is redirecting only Home page component but ...


Student Support9 : Java Servlet Login And Logout Session ...


JSP AuthX Documentation for UTHSC-Houston


Servlets : Send Redirect vs. Forward - Java For Beginners Blog


Presentation "Servlets & JSPs - Sharad Ballepu. Agenda ...


Servlet Technology Model , Servlet API and life cycle;javax ...


Servlets : Send Redirect vs. Forward - Java For Beginners Blog


J2EE Servlets Tutorial


documentation for identity based secure distrbuted data storage schem


Final edu junction_ss (1)


Servlets : Send Redirect vs. Forward - Java For Beginners Blog


Jsp interview questions by java training center


DeviceAtlas - A Content Adaptation Survival Guide


B.Tech Project Documentation


NBC's Website Hacked and Infected - TechBeat


java servlet and servlet programming


Project report final


JEE: Servlet Redirecting and Dispatching


Struts2 tutorial