The Date class has no notion of timezones
As an independent date class, it is not having notion of TimeZone. But, When you put that into JSP it is having timezone notion.
In the following code, currentdate being shown in the timezone I've set using TimeZone.setDefault()
In servlet I set, request.setAttribute("currentdate",new Date());
in jsp, i it using display $(currentdate} , this should be in the updated timezone
But, It is changing for all the webapplications ( entire JVM). Is there any other way of doing it for a single web application.
(Without using calenders)?