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.16
TRX 0.15
JST 0.027
BTC 60244.17
ETH 2333.72
USDT 1.00
SBD 2.47