File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes refreshing a jsp - problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "refreshing a jsp - problem" Watch "refreshing a jsp - problem" New topic

refreshing a jsp - problem

Suku Kana

Joined: Mar 14, 2002
Posts: 3
I am getting this problem in a jsp page.
Initially, when my jsp page loads up, I get 8 attributes. I am able to read them using the function request.getAttributeNames() and getParameter().
But, when I refresh the page in the browser, I get only 4 attributes.
One more thing I noticed is, initially request.getQueryString() returns null. Whereas, after a refresh, request.getQueryString() returns a non null string. I am confused
Can anyone tell me the what the problem could be?
Sean MacLean
Ranch Hand

Joined: Nov 07, 2000
Posts: 621
I think we might need a bit more detail to help you out. For instance, What parameters are you passing in and how? Are you submitting 8 params from an html form? Have you placed 4 attributes in the session and 4 in the query string? Are you redirecting or forwarding to the page? Is the query string in the browser address bar changing from the first hit to the refresh (i.e. if the session is being url encoded or something). A few more specifics like this may shed a bit more light on the situation.
I agree. Here's the link:
subject: refreshing a jsp - problem
It's not a secret anymore!