Hi,
I am trying to make use of a calendar written in javascript on my JSP page which is using struts. this is the calendar website:
http://www.dynamicdrive.com/dynamicindex7/jasoncalendar.htm
I cannot seem to make the connection on what I have to do to get the value of the date into one of my bean properties. The documentation for the calendar says it creates a hidden field with the value, so I am trying to access this field and either it is not creating it or I am not accessing it correctly. Would you guys check out this site and see if you have any ideas on how I could make this work? I think I am very close but I just cannot make the final connection!
thank you!
-
javascript calendar and struts (6 messages)
- Posted by: Matt Christ
- Posted on: June 20 2005 13:12 EDT
Threaded Messages (6)
- javascript calendar and struts by Aaron Craven on June 20 2005 16:19 EDT
- thank you by Matt Christ on June 20 2005 22:23 EDT
- thank you by Aaron Craven on June 20 2005 10:53 EDT
- thank you by Matt Christ on June 20 2005 22:23 EDT
- Calendar Control by Syed Rizwan Hashmi on June 21 2005 03:10 EDT
- Calendar Control by Aaron Craven on June 21 2005 08:30 EDT
- Another Javascript Calendar by Andrew Gee on June 23 2005 06:46 EDT
-
javascript calendar and struts[ Go to top ]
- Posted by: Aaron Craven
- Posted on: June 20 2005 16:19 EDT
- in response to Matt Christ
The documentation for the calendar says it creates a hidden field with the value, so I am trying to access this field and either it is not creating it or I am not accessing it correctly.
I had to do something similar (with a different calendar). What I found was that I needed to be able to define my field using <html:hidden ...> and tell the calendar where to put the value. Because we actually purchased our component, the developer was more than happy to make some modifications to allow specifying a separate field (one that it did not generate). Given that your calendar is free, you may not have as much luck. -
thank you[ Go to top ]
- Posted by: Matt Christ
- Posted on: June 20 2005 22:23 EDT
- in response to Aaron Craven
for your comment. It was helpful. I am trying to use the html:hidden tag, and haven't as yet had any luck. You may be correct that the javascript may need to be modified. Anyone else have any ideas?? :) -
thank you[ Go to top ]
- Posted by: Aaron Craven
- Posted on: June 20 2005 22:53 EDT
- in response to Matt Christ
Actually, I just thought of this, but the component we're using has a free counterpart that may work for you (assuming you have the option of using something different). The setup syntax is a little different from what we're using, I think, but it *should* work with struts, anyway. Look here. -
Calendar Control[ Go to top ]
- Posted by: Syed Rizwan Hashmi
- Posted on: June 21 2005 03:10 EDT
- in response to Matt Christ
You can use this calendar its very nice.
http://dynarch.com/mishoo/calendar.epl -
Calendar Control[ Go to top ]
- Posted by: Aaron Craven
- Posted on: June 21 2005 08:30 EDT
- in response to Syed Rizwan Hashmi
You can use this calendar its very nice.http://dynarch.com/mishoo/calendar.epl
That is a very attractive calendar. My complements to the developers. -
Another Javascript Calendar[ Go to top ]
- Posted by: Andrew Gee
- Posted on: June 23 2005 06:46 EDT
- in response to Matt Christ
Hi
I used the following Calendar and successfully got it working with Struts.
http://www.dynarch.com/projects/calendar/
I did it about 6mths ago and I was able to get it to update one of the bean properties on my form, without to much trouble.
It might help
Regards
Andrew