The Artima Developer Community
Sponsored Link

Java Answers Forum
Using RequestDispatcher

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Muthu

Posts: 1
Nickname: muthu2805
Registered: Dec, 2002

Using RequestDispatcher Posted: Dec 30, 2002 8:54 AM
Reply to this message Reply
Advertisement
Hi,

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.

Please try to help me out.

Thanks in advance,
Muthu

Topic: Can somebody help me please ?? Previous Topic   Next Topic Topic: use of dll in jsps

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use