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

Coin Marketplace

STEEM 0.21
TRX 0.26
JST 0.038
BTC 95931.40
ETH 3358.80
USDT 1.00
SBD 3.04