How to make fmt:formatDate work for form:input

后端 未结 2 1639
旧巷少年郎
旧巷少年郎 2021-02-13 06:20

I have a jstl loop and I want to format the date of a form:input. I have tried many permutations of some of the suggestions that I\'ve fond online but I just cannot get it to wo

2条回答
  •  清歌不尽
    2021-02-13 07:11

    You can't use a JSP tag in an attribute of another JSP tag. STore the result of the date formatting in a page attribute, and use this page attribute (as you would do with a variable in Java):

    
    
    

提交回复
热议问题