好的,另一个问题,当用户点击提交按钮时,我将如何将当前日期/时间设置为输出字符串的文件名。
我知道如何设置标准的静态文件名,即。files/receipt.txt
并且还研究了如何使用<s:DateTimeFormatter id="dateTimeFormatter" dateStyle="short" timeStyle="short" locale="en-AU" />
将Tue Jun 11 15:48:14 GMT+1000 2013更改为2013 年 11 月 6 日下午 3:50来格式化时间和日期的标准输出
- 现在我需要知道如何删除文件名的空格和
- 如何设置变量文件名(如“files/
todaysDate
.txt”)
并提前谢谢你!