JSP: pass data to request but not via request parameters?

  • Thread starter Kai Grossjohann
  • Start date
K

Kai Grossjohann

I call a JSP via <c:redirect/>. I would like to pass a parameter to
that JSP that is not passed again when I hit the browser's reload
button.

My understanding is that this is not possible in a direct way. Is it?

(Currently, I put an object into the session before <c:redirect/>, and
the called JSP frobs a boolean in that object after it did its thing.
This accomplishes what I need, but I was wondering if I could avoid
using the session.)

Kai
 
T

Tor Iver Wilhelmsen

This accomplishes what I need, but I was wondering if I could avoid
using the session.)

No, the session is the only thing that the two displayings of the page
have in common.
 
A

Anton Spaans

The only way out i see is to use JavaScript.
Detect that the upload took place through a Refresh (or through any other
method than by pushing a button) and, if this is the case, change the
request-parameters to tell the server that a Refresh took place instead of a
regular submit.

-- Anton.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,097
Latest member
RayE496148

Latest Threads

Top