The Archicture we are using is MVC. In my Login screen, after entering username and password I am submiting the page to same URL to set values to particular FormBean(useBean). After that using RequestDispatcher to forward control to Controller Servlet. Their based on the operation and action calling respective model and DAOBean.
Based on the result, calling next page with RequestDispatcher. When I forward the page I am setting ResultSet retrieved from DB into Request Attribute.
The problem is when I refresh the page in forwarded page, the submitted Login page value is getting and resubmiting the page(it goes upto controller and DAO).
When I refresh my page, it should not happen. I don't want to use sendRedirect, because my resultSet may have morethan 1000 records.