java.util.Date now = new java.util.Date(); Initializes "now" to the current time and date. Then you can use the dateformatting code listed above to get it as a String. This isn't JSP-related, BTW -- it's basic Java.
An IDE is no substitute for an Intelligent Developer.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com