How to make fmt:formatDate work for form:input

后端 未结 2 1824
南笙
南笙 2021-02-13 06:27

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条回答
  •  Happy的楠姐
    2021-02-13 07:03

    In the latest releases of the spring JSTL tags you can't use the attribute value into de tah form:input. If you try, you will get a value attribute is not valid for tag error.

    In this case you must use a normal HTML input tag and put the path as the name of the input to trigger the binding to the Spring form like this

    
    
    

    Ugly but works for me! ;)

提交回复
热议问题