Events still not showing up despite the many tries...sigh

Posted by sheng88 on Stack Overflow See other posts from Stack Overflow or by sheng88
Published on 2010-05-09T04:35:58Z Indexed on 2010/05/09 4:38 UTC
Read the original article Hit count: 245

I have tried the recommendation from this forum and through the many google searches...but i still can't get the events to show up on my calendar via jsp....i tried with php and it worked...sigh...i wonder where is the error....sigh....

The processRequest method is fine but when it dispatches to the JSP page...nothing appears from the browser....

protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
    String email=request.getParameter("email");
    try {
        ArrayList<CalendarEvt> calc=CalendarDAO.retrieveEvent(email);
        for (CalendarEvt calendarEvt : calc) {
            System.out.println(calendarEvt.getEventId());
        }

        request.setAttribute("calendar", calc);
        request.getRequestDispatcher("calendar.jsp").forward(request, response);

    } catch (Exception e) {
    }
}

Here is the JSP section that's giving me headaches...(Without the loop...the Google link does appear...)...I have tried putting quotations and leaving them out....still no luck:

<%--Load user's calendar--%>
        <script type='text/javascript'>

            $(document).ready(function() {

                var date = new Date();
                var d = date.getDate();
                var m = date.getMonth();
                var y = date.getFullYear();

                $('#calendar').fullCalendar({
                    editable: false,
                    events: [
            <c:forEach items="calendar" var="calc">
                            {
                                title: '${calc.eventName}',
                                start: ${calc.eventStart}

                            },
            </c:forEach>
                            {

                                title: 'Click for Google',
                                start: new Date(y, m, 1),
                                end: new Date(y, m, 1),
                                url: 'http://google.com/'
                            }



                        ]//end of events
                    });

                });

        </script>

        <%--Load user's calendar--%>

...any kind of help would be greatly appreciated...thx!!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about fullcalendar