Search code examples
struts-1

How to create a form with Date input field by Strut's Taglib?


How can I create a form with a date field using taglib of Struts 1.3?

I want to simulate the type = "date" of HTML5 to insert a born date of a user.


Solution

  • I don't think there is any "date" struts tag.

    You just have to use <html:text> and convert them to dates.

    Link to Struts html tag docs