A brief analysis of value transfer between JSP pages
•
Java
This paper analyzes the problem of value transfer between JSP pages. Share with you for your reference, as follows:
The simplest one is the href in the < a > tag,
Write in a.jsp:
Then receive in b.jsp:
This method is relatively simple, but I also found some problems. For example, it cannot be loaded dynamically. The value is attached when the page is loaded. For example,
I have a < Select > tag, which dynamically cascades some provinces and cities. Then I want to take the value in < Select > at this time, and I can't pass it through href again, because I select the value in < Select > after the page is loaded. I do this personally,
I hope this article will help you in JSP programming.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码