js| page
In Web applications, if the result set is ResultSet RS directly, stored in the session, or Reueest range,
You can pass it to the JSP and show that the
But to take into account, if the query at the same time a lot of users, the server pressure is very large!
So I suggest using the following methods!
I think I should write a label myself. For example, Display.java will then be defined as the label, for each time you want to display the content, in fact, you just pass the keyword, such as: SQL statements. You can do it! Then use the custom tags in your page: For example: <app:display> can be achieved!
In this way, in each of your JSP, as long as you want to output query results, only need to call <app:display/> on it! The above code may not be exactly right, but that's the idea! And in the big project, very respected! It embodies the idea of Java code reuse, but also make the result set of related operations not directly exposed to users, but also achieve security! For reference!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.