The invention relates to a method and
system for generating and displaying a dynamic page. The method comprises the steps: establishing an element template table, an element instance table and a template instance publishing table in a
database; acquiring display data and style data, which are required to be displayed, from the
database according to display needs; assembling data carrying objects according to business needs, putting the acquired display data and style data into the data carrying objects and encapsulating, so as to form a data carrying object
list; returning the
encapsulated data carrying object
list to the page for
cycling; cyclically acquiring data by using a template technology according to the data carrying object
list, and displaying the data, so as to achieve the generating and displaying of the dynamic page. According to the method and the
system, the data are extracted from the
database and are sorted as required, then, collection data are placed in a
Request action scope, the data are traversed by using a tag technology, and
cycling is carried out according to a specified number of columns, so as to output displayed data, thus, the
workload of development is greatly reduced, and meanwhile, the
workload of subsequent
program maintenance is reduced.