RE: Format on the JSP pages

2001-06-04 Thread Joyce Tang
Title: RE: Format on the JSP pages





 Michael,


Thank you very much for the response.


However, I have heard about reservation on using taglib from Jakarta just for the purpose of datetime formatting.  It is too expensive to convert your datetime to long, wrap it in context and then use tablig.  Also there will be nested tablib usage problem.

Are there any simpler ways to do it?


I notice there on the to-do list for struts is a task to support PropertyEditor.  Is there any work around when the PropertyEditor support is not there yet.

Thank you very much for the help.


JT


-Original Message-
From: Michael Mok
To: [EMAIL PROTECTED]
Sent: 6/2/01 7:57 AM
Subject: Re: Format on the JSP pages


In addition to Craig's comment, if you decide to use the Jakarta Taglibs
project <http://jakarta.apache.org/taglibs> , you can this on your JSP
page.


<%@ taglib uri="http://jakarta.apache.org/taglibs/datetime-1.0"
prefix="dt"
%>


  
property="startDateTime"/>


In the above example my bean contain the following method


public long getStartDateTime() {
  //
  //  return the Calender.getTime() component;
};



Cheers


Michael Mok
www.webappcabaret.com/teatimej


- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Joyce Tang" <[EMAIL PROTECTED]>
Sent: Saturday, June 02, 2001 12:29 PM
Subject: RE: Format on the JSP pages



>
>
> On Mon, 21 May 2001, Joyce Tang wrote:
>
> >  Sorry if I didn't make it clear.  What I am asking is how to format
a
> > embedded attibute?
> >
>
> There isn't any particular support for formatting within the Struts
tags
> at the moment.  However, there is a formatting library in the Jakarta
> Taglibs project <http://jakarta.apache.org/taglibs> that might help.
>
> Craig
>
>
> > -Original Message-
> > From: Joyce Tang
> > To: '[EMAIL PROTECTED]'
> > Sent: 5/21/01 2:13 PM
> > Subject: Format on the JSP pages
> >
> > One property of my form is a customer object.
> >
> > So in the JSP page, I am displaying them as:
> >
> > 
> > scope="request" filter="true"/>
> >
> > How should I format it?
> >
> > Thanks
> >
> >
>
>





Re: Format on the JSP pages

2001-06-02 Thread Michael Mok

In addition to Craig's comment, if you decide to use the Jakarta Taglibs
project <http://jakarta.apache.org/taglibs> , you can this on your JSP page.

<%@ taglib uri="http://jakarta.apache.org/taglibs/datetime-1.0"; prefix="dt"
%>

  

In the above example my bean contain the following method

public long getStartDateTime() {
  //
  //  return the Calender.getTime() component;
};


Cheers

Michael Mok
www.webappcabaret.com/teatimej

- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Joyce Tang" <[EMAIL PROTECTED]>
Sent: Saturday, June 02, 2001 12:29 PM
Subject: RE: Format on the JSP pages


>
>
> On Mon, 21 May 2001, Joyce Tang wrote:
>
> >  Sorry if I didn't make it clear.  What I am asking is how to format a
> > embedded attibute?
> >
>
> There isn't any particular support for formatting within the Struts tags
> at the moment.  However, there is a formatting library in the Jakarta
> Taglibs project <http://jakarta.apache.org/taglibs> that might help.
>
> Craig
>
>
> > -Original Message-
> > From: Joyce Tang
> > To: '[EMAIL PROTECTED]'
> > Sent: 5/21/01 2:13 PM
> > Subject: Format on the JSP pages
> >
> > One property of my form is a customer object.
> >
> > So in the JSP page, I am displaying them as:
> >
> >  > scope="request" filter="true"/>
> >
> > How should I format it?
> >
> > Thanks
> >
> >
>
>



RE: Format on the JSP pages

2001-06-01 Thread Craig R. McClanahan



On Mon, 21 May 2001, Joyce Tang wrote:

>  Sorry if I didn't make it clear.  What I am asking is how to format a
> embedded attibute?
> 

There isn't any particular support for formatting within the Struts tags
at the moment.  However, there is a formatting library in the Jakarta
Taglibs project <http://jakarta.apache.org/taglibs> that might help.

Craig


> -Original Message-
> From: Joyce Tang
> To: '[EMAIL PROTECTED]'
> Sent: 5/21/01 2:13 PM
> Subject: Format on the JSP pages
> 
> One property of my form is a customer object. 
> 
> So in the JSP page, I am displaying them as: 
> 
>  scope="request" filter="true"/> 
> 
> How should I format it? 
> 
> Thanks 
> 
> 




RE: Format on the JSP pages

2001-05-21 Thread Joyce Tang
Title: RE: Format on the JSP pages





 Sorry if I didn't make it clear.  What I am asking is how to format a embedded attibute?


-Original Message-
From: Joyce Tang
To: '[EMAIL PROTECTED]'
Sent: 5/21/01 2:13 PM
Subject: Format on the JSP pages


One property of my form is a customer object. 


So in the JSP page, I am displaying them as: 



scope="request" filter="true"/> 


How should I format it? 


Thanks 





Format on the JSP pages

2001-05-21 Thread Joyce Tang
Title: Format on the JSP pages





One property of my form is a customer object. 


So in the JSP page, I am displaying them as:





How should I format it?


Thanks