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

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-JSR-5
    • Fix Version/s: 1.0-RC-1
    • Component/s: Groovlet / GSP
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: