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.