Can you post some code, because there are quite a few things that can go wrong.
I have a feeling that you are directly accessing the JSP page instead of using the Servlet's mapped url.
Joined: Jun 15, 2011
yes im accessing directly the JSP page..
Im following the MVC pattern where my servlet will be the controller and the view will be the jsp page.
What i want is when I access the JSP page it will automatically call the servlet where it handles data retrieval from the data source like database,
then the servlet will forward the retrieved data to jsp page for display.
User s = (User)request.getAttribute("user");
im getting null values in my jsp page.I think when the page loads it does not call the servlet because it does not send a form or something.
Is there a better way or good way that i may be able to display a data from database in my jsp page when i first accessed it.