This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
jQuery in Action, 2nd edition
subject: formatting problems with SimpleDateFormat
Similar Threads
Unable to locate setter methof for attribute lock in the tag class
generating string
Getting different time than system time in Unix (java.util.Date)
Problem with jsp:useBean tag...URGENT
Internal server error