I haven't tried it, but I would think that something like - 

startDate="@[EMAIL PROTECTED]().getTime()" 

might work. It should be a fairly trivial exercise to use OGNL to set
the parameters dynamically.

-Wes

On Fri, 2008-02-01 at 03:52 +0000, Naveen Kumar M wrote:
> Thanks ravichandrac, 
> 
> Yes I know it will preset the date value to the date you set in action class,
> but my question is basically to limit the Date selection from the date picker 
> created by datepicker tag, however which contains parametes called startDate 
> and endDate, so m,y requirment I just wnated to change the startDate value 
> dynamically. 
> 
> i hope i have posted my question cleraly.......!
> 
> Thanks & Regards,
> Minchu
> 
> ravi_eze <[EMAIL PROTECTED]> wrote: 
> hi,
> 
> if i am uderstanding u right then this should solve ur problem.
> 
> action class:
> Date inpDate = new Date();
> 
> jsp page:
> 
> 
> so for the fist time when the page is being displayed the inpDate is set ot
> the current date which will solve ur problem
> 
> hope this helps.
> 
> cheers,
> ravi 
> 
> 
> Naveen Kumar M wrote:
> > 
> > 
> > THANKS Wannemacher FOR YOUR REPLY.
> > 
> > My question is, I want to change the values being assigned the
> > startDate and endDate parameters for the tag. So for example
> > page using my datepicker is loaded in to browser today, than 
> > startDate should be todays systems date, for the same in next 
> > coming day the startDate should be that day's system date(server date)
> > 
> > I hope i have posted my question more clearly.
> > 
> > Expecting some response on the issue.
> > 
> > 
> > Regards,
> > Minchu
> > 
> > 
> > 
> > Wes Wannemacher  wrote: Have you tried the startDate and
> > endDate parameters for the tag and
> > received an error?
> > 
> > http://struts.apache.org/2.x/docs/datetimepicker.html
> > 
> > -Wes
> > 
> > On Thu, 2008-01-31 at 05:24 +0000, Naveen Kumar M wrote:
> >> Hi,
> >> 
> >> We have a reqierment to control startdate and enddate of the datepicker
> >> dynamically, so i have tried out for controlling  it by a dojo script,
> >> which is breaking up the appearance of datepicker. So can any one suggest
> >> how to control it dyanimcally.
> >> 
> >> thanks in advance 
> >> 
> >> 
> >> regards,
> >> minchu
> >> 
> >>        
> >> ---------------------------------
> >>  Unlimited freedom, unlimited storage. Get it now
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> >        
> > ---------------------------------
> >  5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/dojo-script-for-DATEPICKER-tag-tp15198436p15203522.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
>        
> ---------------------------------
>  Get the freedom to save as many mails as you wish. Click here to know how.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to