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.23
TRX 0.20
JST 0.035
BTC 97105.70
ETH 3328.65
USDT 1.00
SBD 3.16