Implementation of DataGrid in JSP in ASP. NET

Source: Internet
Author: User

ASP. the DataGrid in. NET is very convenient and flexible. During this time, I wrote a grid implementation for JSP by referring to the DataGrid Interface UI of for webwork. In my opinion, in terms of usage, the DataGrid implemented by TAG is different from that implemented by ASP. net DataGrid is not inferior in terms of flexibility or scalability.

The following is my grid implementation method.

<Cos: DataGrid name = "gridtest" value = "listobj" border = "1" cellspacing = "12">
<Cos: Template headtext = "template column" headstyle = "background-color: #66 CCFF; cursor: Hand">
<Cos: inputtext name = "timezone" value = "name"/> </TD>
</COS: Template>
<Cos: column datafield = "ID" headtext = "no." width = "200" align = "right" style = "background-color: #66 CCFF; cursor: hand "> </COS: column>
<Cos: column datafield = "name" headtext = "name"> </COS: column>
</COS: DataGrid>

Compared with the. NET DataGrid, I only define two types of columns, template column and binding column. The template column can be placed in any other Interface UI.

The value of a column is specified by the value attribute. Because it is the sum of values with webwork, the system first searches for the value type in ognl in webwork. The value type must be collection. <?>, Because beanuils is used for values, the elements in the collection can contain multiple types.

Currently, no paging controls are added.

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.