Discussions

Web tier: servlets, JSP, Web frameworks: javascript calendar and struts

  1. javascript calendar and struts (6 messages)

    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!

    Threaded Messages (6)

  2. javascript calendar and struts[ Go to top ]

    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.
  3. thank you[ Go to top ]

    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?? :)
  4. thank you[ Go to top ]

    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.
  5. Calendar Control[ Go to top ]

    You can use this calendar its very nice.
    http://dynarch.com/mishoo/calendar.epl
  6. Calendar Control[ Go to top ]

    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.
  7. Another Javascript Calendar[ Go to top ]

    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