Hi,
I have a java Calendar object, observationDate .
I want to trigger a javascript function upon clicking a radio button
on a form that checks if the calendar data is in January or February
and triggers a popup if it is.
How can I make the java object into a String so I can pass it (in my jsp)
to javascript ? Or even better, see if my Calendar is the right month
range using java and pass a yes or no value to the javascript accordingly ?
I am fairly new to java and am quickly finding that java and javascript do not
always mix together very well...
thanks
basm101
I have a java Calendar object, observationDate .
Code:
java.util.Calendar observationDate=subsequentSub.getObservationDate();
on a form that checks if the calendar data is in January or February
and triggers a popup if it is.
How can I make the java object into a String so I can pass it (in my jsp)
to javascript ? Or even better, see if my Calendar is the right month
range using java and pass a yes or no value to the javascript accordingly ?
I am fairly new to java and am quickly finding that java and javascript do not
always mix together very well...
thanks
basm101
Comment