Use struts tags in JSP formatted output date type attribute value

zhaozj2021-02-16  125

When there is a DateTime type attribute in the bean, the output is formatted on the webpage. I used to convert the static method of the tool class. It is now found that Struts has a simpler processing approach, as follows:

1. Add the following key value (I use IBM tool RBManger, very easy to use): global.formatdatetimeAll = YYYY MM Moon DD day hh: mm: ssglobal.formaTDateTime = YYYY MM Moon DD day hh: MMGlobal.formaTDate = yyyy year mm month DD day global.formatmonth = YYYY MM month global.formatyear = yyyy year 2. Write " />

From Matrix Forum Struts and MVC Framework Edition.

转载请注明原文地址:https://www.9cbs.com/read-9052.html

New Post(0)