my dog learned polymorphism
The moose likes Beginning Java and the fly likes formatting problems with SimpleDateFormat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "formatting problems with SimpleDateFormat" Watch "formatting problems with SimpleDateFormat" New topic

formatting problems with SimpleDateFormat

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hello friends
I wrote a TagClass for displaying fullmonthname in pulldown list. In Class MonthTag , I use <start> and <end> attributes for getting the months.
If I set both attributes. It displays the fullmonthname successfully.
The months nummer I get from getStart() and getEnd() Method. These getter-Methods function successfully.
But if I dont use those attributes it should display me the actual months fullname.
But it doesnt display me the month fullname, because the "mon"-attribute which is initialised by format() in doEnd() has suddenly a number.
Here is code of the class "MonthTag":

Question: Why dont I get not the fullmonthsname if I dont enter start and end attributes? But on the other hand I get the right fullmonthname when I enter the attributes?
thanks in advance
(edited by Cindy (again?) to format code using [ code] and [ /code] tags without the spaces)
[ February 05, 2003: Message edited by: Cindy Glass ]
Vijayakumar Arya
Ranch Hand

Joined: Jan 27, 2003
Posts: 76
This is not an appropriate forum to discuss, you should have posted under the JSP forum. Not all the users of this forum are familiar with JSPs and tag libs.
Moderators - please move this topic to JSP forum.

Thanks,<p>Vijay<p>The Hand that gives, Gathers.
I agree. Here's the link:
subject: formatting problems with SimpleDateFormat
jQuery in Action, 3rd edition