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.18
TRX 0.14
JST 0.030
BTC 60238.27
ETH 3215.90
USDT 1.00
SBD 2.46