Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calender & Holidays

 
age spets
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Have already made a calender in JSP, but would like to mark holy days red. Holy days differ from country to country though. Is there some class/method that you can set which country your from and receive back the holidays for that year your in?
Yours Age
 
Scott Duncan
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try
Locale locale = new Locale(String language, String country);
GregorianCalendar cal = new GregorianCalendar(locale);
 
age spets
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THX for trying to help me:-) Locale does not contain Norwegian Language....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic