Passing parameter without use of HTML forms in JSP

后端 未结 3 1117
粉色の甜心
粉色の甜心 2020-12-30 11:06

I have done some research, and majority of the examples I have found use forms (obviously for user input) to collect data which is then passed to another JSP page through th

3条回答
  •  清酒与你
    2020-12-30 11:23

    There's no way a JSP page can tell the difference between a manually constructed GET url, e.g.:

    Go to the next JSP page, versus something like:

    Either way it can be accessed through getParameter or getParameterValues

    Is that what you're asking?

提交回复
热议问题