An example of a simple call to the jsp page to get server time

  • 2020-12-21 18:07:43
  • OfStack


Calendar c = Calendar.getInstance();
int year = c.get(Calendar.YEAR);
int month = c.get(Calendar.MONTH);
int day= c.get(Calendar.DAY);

So let's add these 3 rows < % % > inside

Used when calling < %= year % > < %= month% > < %= day% >


Related articles: