Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5970043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:19:04+00:00 2026-05-22T20:19:04+00:00

My apologies if this is a stupid question, however I can’t find any information

  • 0

My apologies if this is a stupid question, however I can’t find any information about this.

I would like to use a JSP tag (not play ‘tags’) in my application views – specifically, the Joda Time JSP tags for formatting purposes.

I can’t work out how to call these tags – in JSP I just had to import the taglib and off I went.

  <%@taglib prefix="joda" uri="http://www.joda.org/joda/time/tags" %>

Have I missed something simple – how do I do this in Play view definitions? At the moment my taglib calls are rendered as HTML. I understand that Play’s view stuff is based on Groovy’s – I have tried finding the relevant information there too but haven’t been successful.

Thanks.

Edit For what it’s worth I’m starting to suspect that I’m very much misunderstanding the situation here – am I correct in my assumption that the Play templating engine has nothing to do with JSP and is an alternative rather than an extension?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:19:04+00:00Added an answer on May 22, 2026 at 8:19 pm

    Indeed, you cannot use JSP tags. The Play framework uses (by default, although there are alternative modules that can replace the rendering engine) the Groovy templating engine to create the views. It is these views that are responsible for both the templates and for the majority of tags you will create.

    There are also the concepts of FastTags, which may be the easiest way for you to expose the JodaTime functionality that you find in the JSP tag library. A good example of how to build FastTags can be found here…

    Can someone explain how to use FastTags

    However, if all you are trying to do is to neatly format dates, then you should take a look at the JavaExtensions for date formatting. http://www.playframework.org/documentation/1.2.1/javaextensions#date. To format dates is really simple, your code should be as simple as the following (assuming your date is passed into your view as mydate.

    ${mydate.format('dd MMMM yyyy hh:mm:ss')}
    

    You can even create your own JavaExtensions if the ones built-in to Play don’t offer everything you need.

    Finally, It is important to understand that Play is not Java EE. Play has its own stack, its own set of rules and its own set of technologies. It can be difficult at first to separate yourself from the Java EE tools, but you almost certainly find that the Play approach saves you time and effort.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Apologies if this is a stupid question, but I'm a newbie and couldn't find
No idea how to go about this. Apologies if it's a stupid question (probably
Apologies if this is a stupid question but it is quite hard to find
Apologies if this is a stupid question, I'm relatively new to Matlab. I've got
Apologies if this is answered elsewhere; couldn't find enough information to convince myself of
Apologies for the massively stupid question but I am curious how to get this
Apologies if this is a stupid question as Im completly new to JAvascript and
Apologies if this is a stupid question - I'm an Android and Ant newbie.
Apologies if this is a stupid/easy question, but still getting used to everything in
Apologies if this is a stupid question - but this my first attempt at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.