• Post Reply Bookmark Topic Watch Topic
  • New Topic

formatting problem

 
devika cha
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to crate a web application where in when user enters year and month and the respective month gets displayed .The display part is taken care be jsp , my problem is how to leave the blank spaces for ex:if first of a month starts on thursday , the column below sun mon ... is be blank .
can anybody tell me how to acheive this .
thank you.
 
Manoj Gundawar
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Devika,
Not answering your question, but just suggesting something new. If you are creating a calendar, there are many free calendars available on the net (in JavaScript)
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35743
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Devika,
java.util.Calendar can tell you what day of the week the first is. That gives you the number of blanks needed.

Then you can display empty cells in your table. It's good to fill them with   so older browsers display better.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!