<?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: How use jqGrid in JSP server? One example!</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-use-jqgrid-in-jsp-server-one-example</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/how-use-jqgrid-in-jsp-server-one-example/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Lee on How use jqGrid in JSP server? One example!</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-use-jqgrid-in-jsp-server-one-example#p27820</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-use-jqgrid-in-jsp-server-one-example#p27820</guid>
        	        	<description><![CDATA[<p>do i need to write a status string "success" in server response ? because if i do not, the grid will not reload after add or edit&#8230; so why ?</p>
]]></description>
        	        	<pubDate>Sat, 01 Dec 2012 14:49:03 +0200</pubDate>
        </item>
        <item>
        	<title>LxZv on How use jqGrid in JSP server? One example!</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-use-jqgrid-in-jsp-server-one-example#p10060</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-use-jqgrid-in-jsp-server-one-example#p10060</guid>
        	        	<description><![CDATA[<p>XD</p>
]]></description>
        	        	<pubDate>Wed, 23 Sep 2009 17:59:06 +0300</pubDate>
        </item>
        <item>
        	<title>YamilBracho on How use jqGrid in JSP server? One example!</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-use-jqgrid-in-jsp-server-one-example#p2242</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-use-jqgrid-in-jsp-server-one-example#p2242</guid>
        	        	<description><![CDATA[<p>Put at the begining of your JSP</p>
<p>&#60;%@ page contentType="text/html; charset=iso-8859-1" <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; language="java" <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; import="bcv.utilidades.Constantes" <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; errorPage="" %&#62;</p>
<p>In "import" places the jakarta libs and any other lib you would need separated by commas.</p></p>
]]></description>
        	        	<pubDate>Fri, 26 Sep 2008 10:52:56 +0300</pubDate>
        </item>
        <item>
        	<title>adriells on How use jqGrid in JSP server? One example!</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-use-jqgrid-in-jsp-server-one-example#p2241</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-use-jqgrid-in-jsp-server-one-example#p2241</guid>
        	        	<description><![CDATA[<p>How I import the Jakarta packages? I downloaded "commons-lang-2.4-bin.tar" from Jakarta site and I put in lib directory in my Apache but... How import in my server.jsp?</p>
]]></description>
        	        	<pubDate>Fri, 26 Sep 2008 10:41:28 +0300</pubDate>
        </item>
        <item>
        	<title>adriells on How use jqGrid in JSP server? One example!</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-use-jqgrid-in-jsp-server-one-example#p2239</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-use-jqgrid-in-jsp-server-one-example#p2239</guid>
        	        	<description><![CDATA[<p>Thanks, I&#39;ll try!</p>
]]></description>
        	        	<pubDate>Fri, 26 Sep 2008 09:41:05 +0300</pubDate>
        </item>
        <item>
        	<title>YamilBracho on How use jqGrid in JSP server? One example!</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-use-jqgrid-in-jsp-server-one-example#p2238</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-use-jqgrid-in-jsp-server-one-example#p2238</guid>
        	        	<description><![CDATA[<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; //--------------------------------------------------------<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; // Pagina Solicitada. Por defecto es 1<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //--------------------------------------------------------<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; String pageString = StringUtils.defaultIfEmpty(request.getParameter("page"), "1");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; long page = Long.parseLong(pageString, 10);</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; //--------------------------------------------------------<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; // Cuantas filas se quieren mostrar en el grid<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //--------------------------------------------------------<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; String limitString = StringUtils.defaultIfEmpty(request.getParameter("rows"), "10");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; long limit = Long.parseLong(limitString, 10);</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; //--------------------------------------------------------<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; // Indice de la columna donde se hizo click para ordenar<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //--------------------------------------------------------<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; String sidxString = StringUtils.defaultIfEmpty(request.getParameter("sidx"), "1");</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; //--------------------------------------------------------<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; // Si se desea ordenar Ascedente o Descendente<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //--------------------------------------------------------<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; String sordString = StringUtils.defaultIfEmpty(request.getParameter("sord"), "ASC");</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; //--------------------------------------------------------<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; // calcula numero de paginas para el query<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //--------------------------------------------------------<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; long total_pages = 0;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (count &#62; 0) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; total_pages = (long) Math.ceil(count / limit) + 1;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; //--------------------------------------------------------<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; // Si por alguna extra&#241;a razon la pagina solicitada es<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; // mayor que el total de paginas disponibles<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //--------------------------------------------------------<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (page &#62; total_pages) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; page = total_pages;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; //--------------------------------------------------------<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; // Calcula fila inicial<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //--------------------------------------------------------<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; long start = limit * page - limit;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; //--------------------------------------------------------<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; // Si por alguna extra&#241;a razon la fila de inicio es <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; // negativa. Puede darse el caso en que el usuario teclee<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; // 0 para la fila inicial<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; //--------------------------------------------------------<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (start &#60; 0) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; start = 0;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>I am using Jakarta Commns Lang (StringUtils)</p>
</p>
<p>HTH</p>
]]></description>
        	        	<pubDate>Fri, 26 Sep 2008 09:16:55 +0300</pubDate>
        </item>
        <item>
        	<title>adriells on How use jqGrid in JSP server? One example!</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-use-jqgrid-in-jsp-server-one-example#p2237</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-use-jqgrid-in-jsp-server-one-example#p2237</guid>
        	        	<description><![CDATA[<p>I need translate this PHP code in JSP code!</p>
<p>$page = $_GET[&#39;page&#39;]; // get the requested page<br /> $limit = $_GET[&#39;rows&#39;]; // get how many rows we want to have into the grid<br /> $sidx = $_GET[&#39;sidx&#39;]; // get index row - i.e. user click to sort<br /> $sord = $_GET[&#39;sord&#39;]; // get the direction</p>
<p>Any idea?</p></p>
]]></description>
        	        	<pubDate>Fri, 26 Sep 2008 08:35:13 +0300</pubDate>
        </item>
        <item>
        	<title>adriells on How use jqGrid in JSP server? One example!</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-use-jqgrid-in-jsp-server-one-example#p2233</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-use-jqgrid-in-jsp-server-one-example#p2233</guid>
        	        	<description><![CDATA[<p>On the server (server.jsp), to capture the values passed by the browser, I&#39;m using: </p>
<p> String _page = request.getParameter ( "page"); <br /> String _limit = request.getParameter ( "rows"); <br /> String _sidx = request.getParameter ( "sidx"); <br /> String _sord = request.getParameter ( "deaf"); </p>
<p> But all values are caught NULL. What can I do to take the real values?</p>
]]></description>
        	        	<pubDate>Thu, 25 Sep 2008 15:24:59 +0300</pubDate>
        </item>
        <item>
        	<title>YamilBracho on How use jqGrid in JSP server? One example!</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-use-jqgrid-in-jsp-server-one-example#p2231</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-use-jqgrid-in-jsp-server-one-example#p2231</guid>
        	        	<description><![CDATA[<p>I am using jqGrid&#160; with JSP/Servlets and so on...</p>
<p>Any questions are welcome...</p>
]]></description>
        	        	<pubDate>Thu, 25 Sep 2008 11:26:52 +0300</pubDate>
        </item>
        <item>
        	<title>adriells on How use jqGrid in JSP server? One example!</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-use-jqgrid-in-jsp-server-one-example#p2229</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-use-jqgrid-in-jsp-server-one-example#p2229</guid>
        	        	<description><![CDATA[<p>Hello, you have an example of jqGrid in JSP?</p>
]]></description>
        	        	<pubDate>Thu, 25 Sep 2008 08:41:56 +0300</pubDate>
        </item>
</channel>
</rss>