I am developing a JSP site for our intranet. We use Microsoft Internet Explorer. We recently upgraded from 5.0 to 6.0 and my application is now behaving strangely. I have no code specific to a browser. Since it is an intranet, I do not now nor will I ever need to support anything besides Internet Explorer. My site heavily uses frames for the layout. When you change the value of a combo box in one frame, the contents of another frame change accordingly. The frame that changes displays demographic information, that is stored in a JavaBean. The dates in this frame display strangely: 01/21/2002 is sometimes displayed as 0001/0021/2002, 01/0021/2002, 0001/21/2002, and so forth. Furthermore, sometimes the incorrect date is displayed. This does not happen to all dates; only a handful each time. However, it is not consistent: one person may have his date displayed in this strange format or with the wrong date, but if I try to reproduce it it won't happen to him again. Maybe it would happen to the person before or after him in the list. All of this (bad formatting and incorrect date displayed) is corrected by refreshing this frame. I store the dates in GregorianCalendars in the JavaBean, and then use SimpleDateFormat to format the dates accordingly. I do not believe that this is a problem with my code, as it worked perfectly on Internet Explorer 5.0. IE 6.0 is causing these problems. Has anyone else had strange results using IE 6 and JSP's? We use WebSphere 3.5 as the app server and Apache as the web server. Furthermore, does anyone know where to find patches for IE 6? I've looked and looked, but I don't think Microsoft likes to admit they made errors. . .
The Date and Calendar classes in Java are not specific to Internet (or any networking) services, so I'm afraid that it would be stretching matters to believe that the browser brand and version is directly affecting how the date is displayed. If you could provide the JSP code it would be a big help. As far as locating bug fixes for IE, you can call me a Micro-cynic, but I think they just slip the bug fixes in as they release their security patches these days, since rarely does a week go by without another hole uncovered. I think they'd like to not admit security holes, either, if they could...
An IDE is no substitute for an Intelligent Developer.
Joined: Jan 18, 2001
Hi Tim, Thanks for replying. The JSP code is consistent with what I do elsewhere in my application, without any problems. Here's my code just in case it can help.
[ January 24, 2002: Message edited by: verduka fox ]