This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Let me confirm one thing : Did you replace <jsp:useBean id="user" class="mypackage.User" scope="session"/> by 1. <jsp:useBean id="user" class="mypackage.User" scope="request"/> or by 2. <jsp:useBean id="user" class="mypackage.User" request="session"/>
You should be using number one.
Joined: Apr 05, 2005
ok work now.....
i restarted eclipse... strange...
what i need to change to use: session instead request?
In Login.java, you have : request.setAttribute("user",user); which means that the user bean is in the request scope. To get it back in your jsp file, you have to use <c:useBean> with the same scope, which is "request". If you use the "session" scope, you will not get your bean back.