Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1359

Ability to import custom user class an use it in the body of template

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-5
    • 1.0-RC-1
    • Groovlet / GSP
    • None
    • windows xp Tomcat 5.5.12

    Description

      I want to use for example java.text.DateFormat. and Date object

      e.g
      <%
      DateFormat fmt = new SimpleDateFormat("dd.MM.yyyy"); //01.01.2006
      %>
      Today is <%=fmt.format(new Date())%>

      i must somehow import a namespace java.text.*;

      How can i do this ?

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            vigor78 Vlasov Igor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: