aspose file tools
The moose likes JSP and the fly likes getting the current date and formatting it. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply 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: 56185
    
  13

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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: 56185
    
  13

Please reveal when it's an IDE error. Obviously, the IDE is wrong. :rolleyes:
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: getting the current date and formatting it.
 
Similar Threads
Convert String to Date Issue
Invalid field value for field "Date"
html:submit.... problem
Writing EL Function
strange onclick