I’m trying to load the static jsp data.
JSP Code:
[code]scheduler.init(‘scheduler_here’,new Date(2013,4,30),“timeline”);
//scheduler.load("/pages/rig/data.jsp?rigId=123&custId=12");
//var dp=new dataProcessor("/pages/rig/data.jsp");
//dp.init(scheduler);
scheduler.load('getVoyagesList.action?rigId=123&custId=12');
var dp=new dataProcessor('getVoyagesList.action?rigId=123&custId=12');
dp.init(scheduler);[/code]
load method call struts2 action method and the method return success.
struts mapping
<action name="getVoyagesList" class="rigManagementAction"
method="getVoyagesList">
<result name="success">/pages/rig/data.jsp</result>
<interceptor-ref name="params" />
<interceptor-ref name="prepare"/>
<interceptor-ref name="validation"/>
<interceptor-ref name="workflow" />
</action>
Action method
public String getVoyagesList() { return "success";}
data.jsp [webcontent/pages/rig/data.jsp]
<%@taglib prefix="s" uri="/struts-tags"%>
<%@page contentType="text/xml" %>
<data>
<event>
<start_date><![CDATA[2013-07-01]]></start_date>
<end_date><![CDATA[2013-07-08]]></end_date>
<section_id><![CDATA[40]]></section_id>
<text><![CDATA[New event]]></text>
<id><![CDATA[1371534539547]]></id>
<event_pid><![CDATA[]]></event_pid>
<event_length><![CDATA[]]></event_length>
<rec_pattern><![CDATA[]]></rec_pattern>
<rec_type><![CDATA[]]></rec_type>
<remarks><![CDATA[]]></remarks>
</event>
<event>
<start_date><![CDATA[2013-07-08]]></start_date>
<end_date><![CDATA[2013-07-15]]></end_date>
<section_id><![CDATA[40]]></section_id>
<text><![CDATA[Manikandan]]></text>
<id><![CDATA[1371534539553]]></id>
<event_pid><![CDATA[]]></event_pid>
<event_length><![CDATA[]]></event_length>
<rec_pattern><![CDATA[]]></rec_pattern>
<rec_type><![CDATA[]]></rec_type>
<remarks><![CDATA[]]></remarks>
</event>
<event>
<start_date><![CDATA[2013-06-10]]></start_date>
<end_date><![CDATA[2013-06-17]]></end_date>
<section_id><![CDATA[170]]></section_id>
<text><![CDATA[Sample]]></text>
<id><![CDATA[1371534539554]]></id>
<event_pid><![CDATA[]]></event_pid>
<event_length><![CDATA[]]></event_length>
<rec_pattern><![CDATA[]]></rec_pattern>
<rec_type><![CDATA[]]></rec_type>
<remarks><![CDATA[]]></remarks>
</event>
</data>
Issue: The data is not loading in scheduler. How to resolve the issue?
Please provide your suggestion and how to fix this issue