You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Keven <hi...@yahoo.ca> on 2002/09/13 04:45:30 UTC
How to use struts tag to display system date and time?
Hi, ALL:
I want to have system date and time displayed in my web page. Are there is a way to do it using struts tag?
Thanks for your help.
Keven
Re: How to use struts tag to display system date and time?
Posted by Keven <hi...@yahoo.ca>.
John, thank you very much for your valuable information.
regards,
Keven
----- Original Message -----
From: "John Yu" <jo...@scioworks.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Friday, September 13, 2002 12:22 AM
Subject: Re: How to use struts tag to display system date and time?
> Struts does not provide custom tag to display system time/date.
>
> Option 1 , following MVC, you have the code in the Action retrieving the
> system time into a bean and use <bean:message> to format it in the JSP.
>
> Option 2, use other taglibs (e.g. Jakarta-Taglibs/DateTime
> http://jakarta.apache.org/taglibs/doc/datetime-doc/intro.html) to display
> the date time directly.
>
> At 10:45 am 13-09-2002, you wrote:
> >Hi, ALL:
> >
> >I want to have system date and time displayed in my web page. Are there
is
> >a way to do it using struts tag?
> >
> >Thanks for your help.
> >
> >Keven
>
> --
> John Yu Scioworks Technologies
> e: john@scioworks.com w: +(65) 873 5989
> w: http://www.scioworks.com m: +(65) 9782 9610
>
> Scioworks Camino - "Don't develop Struts Apps without it!"
> Copyright (c) 2002 John Yu/Scioworks Technologies. All rights reserved.
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: How to use struts tag to display system date and time?
Posted by John Yu <jo...@scioworks.com>.
Struts does not provide custom tag to display system time/date.
Option 1 , following MVC, you have the code in the Action retrieving the
system time into a bean and use <bean:message> to format it in the JSP.
Option 2, use other taglibs (e.g. Jakarta-Taglibs/DateTime
http://jakarta.apache.org/taglibs/doc/datetime-doc/intro.html) to display
the date time directly.
At 10:45 am 13-09-2002, you wrote:
>Hi, ALL:
>
>I want to have system date and time displayed in my web page. Are there is
>a way to do it using struts tag?
>
>Thanks for your help.
>
>Keven
--
John Yu Scioworks Technologies
e: john@scioworks.com w: +(65) 873 5989
w: http://www.scioworks.com m: +(65) 9782 9610
Scioworks Camino - "Don't develop Struts Apps without it!"
Copyright (c) 2002 John Yu/Scioworks Technologies. All rights reserved.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>