<?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: Display error message after server side error using jquery plugin for struts2...</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/display-error-message-after-server-side-error-using-jquery-plugin-for-struts2</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/display-error-message-after-server-side-error-using-jquery-plugin-for-struts2/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>ram2010 on Display error message after server side error using jquery plugin for struts2...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/display-error-message-after-server-side-error-using-jquery-plugin-for-struts2#p14254</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/display-error-message-after-server-side-error-using-jquery-plugin-for-struts2#p14254</guid>
        	        	<description><![CDATA[<p>After days of trying to get this working with the jquery plugin for struts, the best I have come up with is when an error occurs on the server side, I catch the Exception &#38; then I set the status code in my action class. This seems to work to a degree in that the jqgrid will show the error number I set in my action. However, the message I&#160;want to display does not get displayed.</p>
</p>
<p>so in my action class I have done so:</p>
<p><span style="font-size: x-small;"></span></p>
<p><input type='button' class='sfcodeselect' name='sfselectit5401' value='Select Code' data-codeid='sfcode5401' /></p>
<div class='sfcode' id='sfcode5401'>ServletActionContext.<em>getResponse</em>().sendError(777, <span style=&#34;color: #2a00ff; font-size: x-small;&#34;><span style=&#34;color: #2a00ff; font-size: x-small;&#34;>&#34;test message&#34;</span></span><span style=&#34;font-size: x-small;&#34;>);</span></div>
<p align="left">&#160;</p>
<p align="left">And now the grid does display the error code 777 but doesnt display the message beside it. I get a an error like:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit218' value='Select Code' data-codeid='sfcode218' /></p>
<div class='sfcode' id='sfcode218'>Error Row 2: Result: 777 Status: error</div>
<p align="left">&#160;</p>
<p align="left">Anyone know if what I am doing is actually the best way to go about error handling? Or am I doing it completely wrong.</p>
<p align="left">I am fairly new to all this and help is very much appreciated. I have looked at dozens of examples on jqgrid&#160;but nothing quite puts it all together especially when dealing with struts.</p>
</p>
<p align="left">&#160;</p></p>
]]></description>
        	        	<pubDate>Mon, 25 Jan 2010 21:18:42 +0200</pubDate>
        </item>
</channel>
</rss>