Thanks for your reply Jeromy..
I have made changes according to the inputs provided by you... After change
my JSP looks something like this...

<head>
        <s:head theme="simple" debug="true"/>
        <link href="<%=request.getContextPath()%>/css/fm.css" type="text/css"
rel="stylesheet">
        
        <script type="test/javascript">djConfig = { isDebug: true };</script> 
        <script src="<%=request.getContextPath()%>/scripts/ajax.js"
type="text/javascript"></script>
        <script src="<%=request.getContextPath()%>/scripts/prototype.js"
type="text/javascript"></script>
        <script src="<%=request.getContextPath()%>/scripts/scriptaculous.js"
type="text/javascript"></script>
        <script src="<%=request.getContextPath()%>/scripts/dojo/dojo.js"
type="text/javascript"></script>
        
        <script type="text/javascript">
                dojo.require("dojo.widget.*");
                dojo.require("dojo.event.*");
        </script>
        
        <script type="text/javascript">
                
                function submitForm() {
                        document.forms[0].submit();
                }
                
                function calculateEndDate() {
                        alert("Calculating...");
                        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>
</head>

But still I am not able to invoke an onchage event on datetimepicker... Also
when i set the dojo in debug mode.. I get the following error.. FATAL
exception raised: Could not load 'dojo.debug'; last tried '__package__.js'

Kindly help me out on this...

Thanks and Regards,
Jugal 


-- 
View this message in context: 
http://www.nabble.com/Struts-2-and-DateTimePicker-tag-tp14239582p14251890.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]

Reply via email to