Two Laptop Bag*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "formatting problems with SimpleDateFormat" Watch "formatting problems with SimpleDateFormat" New topic
Author

formatting problems with SimpleDateFormat

Anonymous
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
Or�un
(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
Hi,
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: http://aspose.com/file-tools
 
subject: formatting problems with SimpleDateFormat