Showing the current date using JSTL formatDate tag

前端 未结 2 1575
慢半拍i
慢半拍i 2021-01-17 09:44

I am trying to show the current date in my JSP page using JSTL. below is the code I am using.



        
相关标签:
2条回答
  • 2021-01-17 10:33

    Try to print it without formatting, ${now}, you probably have null in there. Do you have this attribute in request scope? Just double check, if yes it might be null. If not, then try remove this scope attribute from the tag, yeah it doesn't matter but just to make the things clear.

    0 讨论(0)
  • 2021-01-17 10:33

    scope=page works for me

    0 讨论(0)
提交回复
热议问题