Hi Jeromy,
Thanks a lot for your reply. I am exatcly doing the same way as suggested by
you.. but now I am not able see the datetimepicker tag...
Here is the snippet of the code that I am using:
<head>
<script src="<%=request.getContextPath()%>/scripts/dojo.js"
type="text/javascript"></script>
<script language="javascript">
function calculateEndDate() {
startDate =
document.forms[0].elements['leasingStartDate.value'].value;
alert(startDate);
}
function init() {
var datePicker = dojo.widget.byId("leasingStartDate");
dojo.event.connect(datePicker, "onchange", calculateEndDate);
}
dojo.addOnLoad(init);
</script>
<s:head theme="simple"/>
</head>
<body style="margin-left: 31%; width: 388%;">
<s:form id="fm_form" action="requisition" theme="simple"
name="fm_form" method="POST">
<s:datetimepicker onchange="calculateEndDate()"
id="leasingStartDate"
displayFormat="dd.MM.yyyy" />
</s:form>
</body>
Kindly let me know what am I missing out here...
Thanks,
Jugal
--
View this message in context:
http://www.nabble.com/Struts-2-and-DateTimePicker-tag-tp14239582p14249105.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]