Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

formatting problems with SimpleDateFormat

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic