JSP introduces Jstl_ to the view layer format

Source: Internet
Author: User

<c:foreach items= "${fixedassetslist}" var= "FA" >  <tr bgcolor= "#FFFFFF" >                <td>${fa.id}< /TD>    <td>${fa.name}</td>    <td>        <fmt:formatnumber type= "Currency" >${ fa.money}</fmt:formatnumber>    </td>    <td>        <fmt:formatdate value= "${ Fa.startusetime} "pattern=" yyyy mm month dd Day hh:mm:ss/>    </td>  </tr></c:forEach>

2017-05-24 11:13:00

Note: FMT is the abbreviation for format and needs to be introduced

<% taglib prefix= "FMT" uri= "Http://java.sun.com/jsp/jstl/fmt"%>

Note that there is a JSP, the following error:

<% taglib prefix= "FMT" uri= "Http://java.sun.com/jstl/fmt"%>

The view layer should be packaged in a variety of mathematical formats, with the FMT offering great convenience,

The most common is the packaging of numbers and dates.

JSP introduces Jstl_ to the view layer format

Related Article

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.