permaculture playing cards*
The moose likes JSP and the fly likes getting the current date and formatting it. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "getting the current date and formatting it." Watch "getting the current date and formatting it." New topic
Author

getting the current date and formatting it.

Robin John
Ranch Hand

Joined: Sep 10, 2008
Posts: 270

Hi,

I want to show the current date in my jsp. How to achieve that using the default tag libraries ?

currently I'm using


but when I include the following in my jsp it gives "Cannot find the tag library descriptor for "http://java.sun.com/jsp/jstl/fmt" error.

but it works. How does it work even if its giving me the error ?


Time is what we want the most, but what we use the worst. -- William Penn
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60045
    
  65

How can it work and give you an error at the same time?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Robin John
Ranch Hand

Joined: Sep 10, 2008
Posts: 270

Hi Bear,

It gives me an error in eclipse :( but when I refresh my web page it gives me the value. attached screen shots for the error. Thanks a lot for responding.



[Thumbnail for jsp error.JPG]

[Thumbnail for working page.JPG]

[Thumbnail for webpage error.JPG]

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60045
    
  65

Please reveal when it's an IDE error. Obviously, the IDE is wrong. :rolleyes:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting the current date and formatting it.
 
Similar Threads
html:submit.... problem
strange onclick
Writing EL Function
Convert String to Date Issue
Invalid field value for field "Date"