Return-Path: Delivered-To: apmail-jakarta-taglibs-user-archive@www.apache.org Received: (qmail 29292 invoked from network); 19 Jun 2005 03:37:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Jun 2005 03:37:03 -0000 Received: (qmail 55713 invoked by uid 500); 19 Jun 2005 03:37:00 -0000 Delivered-To: apmail-jakarta-taglibs-user-archive@jakarta.apache.org Received: (qmail 55661 invoked by uid 500); 19 Jun 2005 03:36:59 -0000 Mailing-List: contact taglibs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tag Libraries Users List" Reply-To: "Tag Libraries Users List" Delivered-To: mailing list taglibs-user@jakarta.apache.org Received: (qmail 55648 invoked by uid 99); 19 Jun 2005 03:36:59 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP X-Spam-Check-By: apache.org Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Jun 2005 20:36:56 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP Received-SPF: pass (asf.osuosl.org: domain of troygeek@gmail.com designates 64.233.184.206 as permitted sender) Received: from [64.233.184.206] (HELO wproxy.gmail.com) (64.233.184.206) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Jun 2005 20:36:31 -0700 Received: by wproxy.gmail.com with SMTP id 71so226097wri for ; Sat, 18 Jun 2005 20:36:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=etHB2EEjVWgzBZI+uHPLMu0fAD29cIhEXKm2s7br+K+WnQpwx11LPz/Dt5Oxn//eoJxFZBKK74HE8CruvTkE1mtAjvOeshp7FLRzpnv3GxAdsm+47+ud4pVfjjzGiIzKFH42B/cwI5CNt0Ktm0jExEgrjEpxVqKdOBCV30P7ZOY= Received: by 10.54.51.26 with SMTP id y26mr2040374wry; Sat, 18 Jun 2005 20:36:36 -0700 (PDT) Received: by 10.54.101.17 with HTTP; Sat, 18 Jun 2005 20:36:36 -0700 (PDT) Message-ID: <3c8511dd05061820367f677be@mail.gmail.com> Date: Sat, 18 Jun 2005 23:36:36 -0400 From: TroyGeek Reply-To: TroyGeek To: taglibs-user@jakarta.apache.org Subject: Problem with SQL Dates since MySQL Upgrade Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Old-Spam-Check-By: apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello,=20 I'm using Tomcat 5.0.28. I think I might be using JSTL 1.0. I'm using Java 1.4.2_05. I develop a small webapp on Windows. When I'm done coding the web pages, I upload to a Linux server. The linux server recently had its MySQL database upgraded from MySQL 3 to MySQL 4.1. Since that change, my date formatting using MySQL's DATE_FORMAT has been screwy. On Windows, everything works fine (My Windows system uses same programs and versions as Linux system). But, when I use DATE_FORMAT to format my date as a string and print that date string out using it comes out looking like this: [B@4d6b1a ...instead of: Thursday, January 27th, 2005 Also, if I refresh the JSP, that weird string with the 'at' sign changes everytime. If I select the dates directly from the database everything looks fine: +---------+-----------------------------------------+ | blog_id | DATE_FORMAT(blog_date,'%W, %M %D, %Y') | +---------+-----------------------------------------+ | 4 | Thursday, October 14th, 2004 | | 5 | Sunday, October 17th, 2004 | | 3 | Thursday, October 14th, 2004 | | 6 | Thursday, January 27th, 2005 | +---------+-----------------------------------------+ But just when the JSTL prints out that string it comes out weird. You can see an example of what i'm talking about here: http://www.troygeek.com/Blogs.jsp I've tried recreating the table, setting the dates to null and then back again, etc. I'm not sure what else to do. Any thoughts are much appreciated. Thank you, Troy Campano --------------------------------------------------------------------- To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: taglibs-user-help@jakarta.apache.org