How to pass value from one jsp to another jsp page?

in #siacoin7 years ago (edited)

This sounds like a cool miner. Anybody got one and like to share your experience?

  1. Using Query parameter

  1. Using Hidden variable in a web form.

  2. you can send Using Session object.

    session.setAttribute("userId", userid);

These values will now be available from any jsp as long as your session is still active.

int userid = session.getAttribute("userId");

Source: https://stackoverflow.com/questions/22369717/how-to-pass-value-from-one-jsp-to-another-jsp-page