This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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.