You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Frederic Houbie <fr...@houbie.co.uk> on 2001/11/16 17:43:54 UTC

datetime taglib not working with java.sql.Timestamp variable

Hi, 
 
I'm trying to use datetime taglib to format datetime variable (timestamp
in fact) in JSP, but it simply returns invalid date as result.
 
Where is the problem ?
 
Thanks
 
Frederic


 

Re: Build my own Tag Lib

Posted by Burr Sutter <su...@bravepoint.com>.
Other options include:
- Many of the JSP books on the market offer some introduction to Tag lib
development.
- We offer a training class on Advanced JSP topics which includes taglib
development and use of Struts.

http://www.bravepoint.com/scripts/wsisa.dll/WService=training/training_cours
e.html?courseid=354

Burr
sutter@bravepoint.com

----- Original Message -----
From: "Trinko" <il...@yahoo.com>
To: "Tag Libraries Users List" <ta...@jakarta.apache.org>
Sent: Tuesday, November 20, 2001 8:54 AM
Subject: Re: Build my own Tag Lib


> Hi Dinesh,
>
> you can find some tutorials here:
> http://www.jspinsider.com/tutorials/jsp/taglibraries.view
>
> Enjoy :)
>
> Marco
> --- martin.cooper@tumbleweed.com wrote:
> > There are some examples in the JSP spec.
> >
> > --
> > Martin Cooper
> >
> >
> > ----- Original Message -----
> > From: "Dinesh, S." <di...@golisa.com>
> > To: "Tag Libraries Users List"
> > <ta...@jakarta.apache.org>
> > Sent: Monday, November 19, 2001 6:20 PM
> > Subject: Build my own Tag Lib
> >
> >
> > > Dear All,
> > >
> > > I'd like to build my own tag lib. Can anyone point
> > me to some tutorials?
> > > Preferably some documentation that I can download
> > and read at my own pace.
> > >
> > > Thanx,
> > > Dinesh, S.
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
>
>
> =====
> --------------------------------
> e-mail: iltrink0@yahoo.com
> Yahoo Messenger: iltrink0
> --------------------------------
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
> http://geocities.yahoo.com/ps/info1
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Build my own Tag Lib

Posted by Trinko <il...@yahoo.com>.
Hi Dinesh,

you can find some tutorials here:
http://www.jspinsider.com/tutorials/jsp/taglibraries.view

Enjoy :)

Marco
--- martin.cooper@tumbleweed.com wrote:
> There are some examples in the JSP spec.
> 
> --
> Martin Cooper
> 
> 
> ----- Original Message -----
> From: "Dinesh, S." <di...@golisa.com>
> To: "Tag Libraries Users List"
> <ta...@jakarta.apache.org>
> Sent: Monday, November 19, 2001 6:20 PM
> Subject: Build my own Tag Lib
> 
> 
> > Dear All,
> >
> > I'd like to build my own tag lib. Can anyone point
> me to some tutorials?
> > Preferably some documentation that I can download
> and read at my own pace.
> >
> > Thanx,
> > Dinesh, S.
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


=====
--------------------------------
e-mail: iltrink0@yahoo.com
Yahoo Messenger: iltrink0
--------------------------------

__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Build my own Tag Lib

Posted by ma...@tumbleweed.com.
There are some examples in the JSP spec.

--
Martin Cooper


----- Original Message -----
From: "Dinesh, S." <di...@golisa.com>
To: "Tag Libraries Users List" <ta...@jakarta.apache.org>
Sent: Monday, November 19, 2001 6:20 PM
Subject: Build my own Tag Lib


> Dear All,
>
> I'd like to build my own tag lib. Can anyone point me to some tutorials?
> Preferably some documentation that I can download and read at my own pace.
>
> Thanx,
> Dinesh, S.
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Build my own Tag Lib

Posted by "Dinesh, S." <di...@golisa.com>.
Dear All,

I'd like to build my own tag lib. Can anyone point me to some tutorials?
Preferably some documentation that I can download and read at my own pace.

Thanx,
Dinesh, S.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: datetime taglib not working with java.sql.Timestamp variable

Posted by Glenn Nielsen <gl...@voyager.apg.more.net>.
The format tag has an attribute named "locale", if set to "true" the
clients locale is used when formatting the date.

Regards,

Glenn

Frederic Houbie wrote:
> 
> OK, I use getTime() to return a long, it's ok, but how can I tell the
> tag to use Locale settings for formating date ?
> 
> Frederic
> 
> -----Original Message-----
> From: glenn@zathras.earthdome.org [mailto:glenn@zathras.earthdome.org]
> On Behalf Of Glenn Nielsen
> Sent: samedi 17 novembre 2001 13:55
> To: Tag Libraries Users List
> Subject: Re: datetime taglib not working with java.sql.Timestamp
> variable
> 
> The datetime taglibrary doesn't support the java.sql.Timestamp class.
> According to the javadocs for java.sql.Timstamp, it and java.util.Date
> are not interchangeable. Currently the taglib uses java.text.DateFormat,
> 
> which only accepts a Date object.
> 
> Regards,
> 
> Glenn
> 
> Frederic Houbie wrote:
> >
> >    Part 1.1    Type: Plain Text (text/plain)
> >            Encoding: 7bit
> 
> --
> ----------------------------------------------------------------------
> Glenn Nielsen             glenn@more.net | /* Spelin donut madder    |
> MOREnet System Programming               |  * if iz ina coment.      |
> Missouri Research and Education Network  |  */                       |
> ----------------------------------------------------------------------
> 
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

-- 
----------------------------------------------------------------------
Glenn Nielsen             glenn@more.net | /* Spelin donut madder    |
MOREnet System Programming               |  * if iz ina coment.      |
Missouri Research and Education Network  |  */                       |
----------------------------------------------------------------------

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: datetime taglib not working with java.sql.Timestamp variable

Posted by Frederic Houbie <fr...@houbie.co.uk>.
OK, I use getTime() to return a long, it's ok, but how can I tell the
tag to use Locale settings for formating date ? 

Frederic

-----Original Message-----
From: glenn@zathras.earthdome.org [mailto:glenn@zathras.earthdome.org]
On Behalf Of Glenn Nielsen
Sent: samedi 17 novembre 2001 13:55
To: Tag Libraries Users List
Subject: Re: datetime taglib not working with java.sql.Timestamp
variable

The datetime taglibrary doesn't support the java.sql.Timestamp class.
According to the javadocs for java.sql.Timstamp, it and java.util.Date
are not interchangeable. Currently the taglib uses java.text.DateFormat,

which only accepts a Date object.

Regards,

Glenn

Frederic Houbie wrote:
> 
>    Part 1.1    Type: Plain Text (text/plain)
>            Encoding: 7bit

-- 
----------------------------------------------------------------------
Glenn Nielsen             glenn@more.net | /* Spelin donut madder    |
MOREnet System Programming               |  * if iz ina coment.      |
Missouri Research and Education Network  |  */                       |
----------------------------------------------------------------------

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: datetime taglib not working with java.sql.Timestamp variable

Posted by Glenn Nielsen <gl...@voyager.apg.more.net>.
The datetime taglibrary doesn't support the java.sql.Timestamp class.
According to the javadocs for java.sql.Timstamp, it and java.util.Date
are not interchangeable. Currently the taglib uses java.text.DateFormat, 
which only accepts a Date object.

Regards,

Glenn

Frederic Houbie wrote:
> 
>    Part 1.1    Type: Plain Text (text/plain)
>            Encoding: 7bit

-- 
----------------------------------------------------------------------
Glenn Nielsen             glenn@more.net | /* Spelin donut madder    |
MOREnet System Programming               |  * if iz ina coment.      |
Missouri Research and Education Network  |  */                       |
----------------------------------------------------------------------

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>