[Dynamic page] (1) premise, dynamic page premise

Source: Internet
Author: User

[Dynamic page] (1) premise, dynamic page premise

Recently, due to business needs, we have switched to the Research on Dynamic Pages, because our system is divided into five subsystems, in line with the flexible and efficient principle, we want to extract the front-end page, different from the past, JSP forms and controls were written to an end, but in a flexible and configurable manner, each system was operated efficiently. It may be possible to combine permissions to control the calls to various resources. Of course, it may not take long to start.


On the dynamic page, we finally want to achieve the effect of generating the desired page through dynamic binding instead of writing JSP to the foreground. I am responsible for generating the form. The specific business requirement is that other subsystems compress their own entities into Jar packages and throw them to me. I parse and process the Jar packages, read the class name, attribute name, length, and remarks and add them to the database for usage. In this way, you do not need to put entities irrelevant to your system into your own system, it has taken another step towards efficient, flexible, and configurable systems.


I am in charge of the part, the preliminary research is to check the information, how to parse the Jar package, read the Jar package class name, attribute name, Class Name Description, field Name Description and length information. However, this is an issue. Later, I asked the experts about how to use the Java reflection mechanism. In the next blog, I will explain the reflection mechanism of Java. Determined to use the Java reflection mechanism to parse the Jar package. Next we will start to study and then parse the Jar package. In this case, the attributes in the reading annotation method are involved, and the meta annotation is also involved, later we will come up with one or two blogs dedicated to the meta annotation and how to customize the annotation to read the Jar package. The function of generating forms through entities later seems very simple, but the logic is very complicated. Fortunately, the final process is complete successfully. I will also explain the logic later.


In the next few blogs, I will focus on dynamic pages and share the content I mentioned above. I haven't written a series of blogs for a long time. In the next article, let's start with the Java reflection mechanism. Stay tuned!


Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.