Which version of struts are you using?  If you using 2.1.6 and above, you
need to have the struts-dojo lib and there is a tag include with <sx:
you need to use <sx:datetimepicker>  It is something like struts extensions.

You also need to include this..<sx:head debug="true" cache="false"
compressed="false" />


http://struts.apache.org/2.1.6/docs/datetimepicker.html

Rgds,

Satya

On Sat, Apr 11, 2009 at 11:34 AM, john lee <[email protected]> wrote:

>
> is <s:datetimepicker struts default tag?  if so, why it can not render the
> display?
>
> does it need to load additional .jar to support it?
>
> i tried the simple way
>    <s:datetimepicker lable="calendar" value="2009-01-01" >
> but just display "calendar" only, nothing display on the right side
>
> i tried the complex way, define action class
>    public  class DateBean  extends ActionSupport {
>
>     public String execute() throws Exception {
>       setTodayDate(new Date());
>       return SUCCESS;
>   }
>     private Date todayDate;
>     public Date getTodayDate() {        return todayDate;    }
>     public void setTodayDate(Date value) {        todayDate = value;   }
> }
>
> the jsp file is
> <s:datetimepicker name="todayDate" label="calendar"
> displayFormat="yyyy-MM-dd"/>
>
> but just display 'calendar', nothing display on the right side either
>
> what happen?
>
> tks in advance
>
> john
>
>
>
>
>

Reply via email to