<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Problem with XML in JSP file</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-xml-in-jsp-file</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/problem-with-xml-in-jsp-file/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tkauffma on Problem with XML in JSP file</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-xml-in-jsp-file#p1656</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-xml-in-jsp-file#p1656</guid>
        	        	<description><![CDATA[<p>You have to add following to your JSP file</p>
</p>
<p>&#60;% page contentType="text/xml" %&#62;</p>
</p>
<p>It works fine for me.</p></p>
]]></description>
        	        	<pubDate>Thu, 21 Aug 2008 13:59:48 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Problem with XML in JSP file</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-xml-in-jsp-file#p1474</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-xml-in-jsp-file#p1474</guid>
        	        	<description><![CDATA[<p>Maybe you should send the appropriate header. In PHP this is</p>
<p>header(...) function -&#160; see examples</p></p>
]]></description>
        	        	<pubDate>Wed, 13 Aug 2008 04:48:03 +0300</pubDate>
        </item>
        <item>
        	<title>pdelaney on Problem with XML in JSP file</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-xml-in-jsp-file#p1462</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-xml-in-jsp-file#p1462</guid>
        	        	<description><![CDATA[<p>Hi&#160; All;</p>
<p>I keep getting a parseerror when trying to load dynamic data from the server.&#160; My server-side technology is JSP.&#160; I create a simple .jsp file that looks like so:&#160; So really the data is static.&#160;&#160; The name of the file is&#160; <strong>detailXml2.jsp</strong></p>
<p>&#60;?xml version ="1.0" encoding="utf-8"?&#62;<br />&#60;rows&#62;<br />&#160;&#60;page&#62;1&#60;/page&#62;<br />&#160;&#160; &#60;total&#62;2&#60;/total&#62;<br />&#160;&#160; &#60;records&#62;1&#60;/records&#62;<br />&#160;&#160; &#60;row id ="1"&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;detailXml4.jsp&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;2007-10-06&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;Client 3&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;100.00&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;0.00&#60;/cell&#62;<br />&#160;&#160;&#160;&#160;&#160; &#60;cell&#62;0.00&#60;/cell&#62;<br />&#160; &#60;/row&#62;<br />&#60;/rows&#62;</p>
</p>
<p>Here is my jqGrid definition</p>
<p>&#160;$(&#39;#testGridTable&#39;).jqGrid( <br />&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160; height: 100,<br />&#160;&#160;&#160;&#160;&#160; width:&#160; 950,<br />&#160;&#160;&#160;&#160;&#160; url:&#39;<strong><a href="http://localhost:8080/FAMS/test/detailXml2.jsp&#038;#39" rel="nofollow" target="_blank"><a href="http://localhost:8080/FAMS/tes" rel="nofollow">http://localhost:8080/FAMS/tes</a>.....p&#038;#39</a>;</strong>,<br />&#160;&#160;&#160;&#160;&#160; datatype: &#39;xml&#39;,<br />&#160;&#160;&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160;&#160;&#160; colNames:[&#39;Group&#39;,&#39;Sleeve&#39;, &#39;Account&#39;,&#39;Buy/Sell&#39;,&#39;Total&#39;,&#39;Notes&#39;],<br />&#160;&#160;&#160;&#160;&#160; colModel :[ <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;invid&#39;, index:&#39;invid&#39;, width:55}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;invdate&#39;, index:&#39;invdate&#39;, width:90}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;amount&#39;, index:&#39;amount&#39;, width:80, align:&#39;right&#39;}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;tax&#39;, index:&#39;tax&#39;, width:80, align:&#39;right&#39;}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;total&#39;, index:&#39;total&#39;, width:80,align:&#39;right&#39;}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;note&#39;, index:&#39;note&#39;, width:150, sortable:false} ],<br />&#160;&#160;&#160;&#160;&#160; loadError: function(xhr,st,err) { <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert("Error :" + st + "\\n" + xhr.responseText);<br />&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160; pager: jQuery(&#39;#testPager&#39;),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum:10,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;id&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: &#39;desc&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; imgpath: &#39;scripts/jqgrid/themes/basic/images&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;This is the Test Grid&#39;<br />&#160;&#160;&#160; }<br />&#160;&#160; ).navGrid(&#39;#testPager&#39;,{add:false,edit:false,del:false,refresh:false} );</p>
</p>
<p>This is the Error I keep getting.</p>
<p><span style="color: #ff0000;"><strong>Error:&#160; parseerror</strong></span></p>
<p>I know it is something very simple, because if I changed the name of the file to detail.xml it loads it without any problems.&#160;</p>
</p>
<p>Thanks</p>
<p>Peter</p></p>
]]></description>
        	        	<pubDate>Mon, 11 Aug 2008 15:01:50 +0300</pubDate>
        </item>
</channel>
</rss>