<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8712869988235180568</id><updated>2024-09-20T20:33:28.368-04:00</updated><category term="facebook"/><category term="500 error code"/><category term="ASP.NET MVC"/><category term="ColdFusion"/><category term="SQL"/><category term="cfhttp"/><category term="connection failure"/><title type='text'>Something to share...</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://heemar.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8712869988235180568/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://heemar.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Heema Rajkarnikar</name><uri>http://www.blogger.com/profile/00248397713868414819</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8712869988235180568.post-254624653368416383</id><published>2012-02-15T22:01:00.001-05:00</published><updated>2012-02-15T22:03:19.616-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="facebook"/><title type='text'>FB has changed a way to add FB app to FB page</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I was working on fb app and was not able to find a way to add app on fan page. Earlier it used to be in app&#39;s profile page but now they&#39;ve discontinued app profile page so only way to add new app to a page is &amp;nbsp;by using the below link.&lt;br /&gt;
&lt;br /&gt;
https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&amp;amp;next=YOUR_URL&lt;br /&gt;
&lt;br /&gt;
where YOUR_APP_ID is your app&#39;s ID and for YOUR_URL I use canvas page URL&lt;br /&gt;
&lt;br /&gt;
You can find more detail below(see Adding an App to a Page section):&lt;br /&gt;
&lt;a href=&quot;https://developers.facebook.com/docs/appsonfacebook/pagetabs/&quot; target=&quot;_blank&quot;&gt;https://developers.facebook.com/docs/appsonfacebook/pagetabs/&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://heemar.blogspot.com/feeds/254624653368416383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://heemar.blogspot.com/2012/02/fb-has-changed-way-to-add-fb-app-to-fb.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8712869988235180568/posts/default/254624653368416383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8712869988235180568/posts/default/254624653368416383'/><link rel='alternate' type='text/html' href='http://heemar.blogspot.com/2012/02/fb-has-changed-way-to-add-fb-app-to-fb.html' title='FB has changed a way to add FB app to FB page'/><author><name>Heema Rajkarnikar</name><uri>http://www.blogger.com/profile/00248397713868414819</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8712869988235180568.post-2147161357629733056</id><published>2011-11-08T12:54:00.001-05:00</published><updated>2011-11-08T12:56:57.020-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ColdFusion"/><category scheme="http://www.blogger.com/atom/ns#" term="facebook"/><title type='text'>Setting up session in Facebook iframe app</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
When I tried to use session in Facebook canvas iframe application, in IE browser I was having issue with session not being set up but in Chrome and FF it works. So to make it work in IE I added this below code (for ColdFusion) and it worked in IE too:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;cfheader name=&quot;P3P&quot; value=&quot;CP=&#39;IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT&#39;&quot; /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Ref:&lt;br /&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/3871199/facebook-iframe-not-working-in-ie-session-login-issue&quot;&gt;http://stackoverflow.com/questions/3871199/facebook-iframe-not-working-in-ie-session-login-issue&lt;/a&gt; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://heemar.blogspot.com/feeds/2147161357629733056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://heemar.blogspot.com/2011/11/setting-up-session-in-facebook-iframe.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8712869988235180568/posts/default/2147161357629733056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8712869988235180568/posts/default/2147161357629733056'/><link rel='alternate' type='text/html' href='http://heemar.blogspot.com/2011/11/setting-up-session-in-facebook-iframe.html' title='Setting up session in Facebook iframe app'/><author><name>Heema Rajkarnikar</name><uri>http://www.blogger.com/profile/00248397713868414819</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8712869988235180568.post-5446889612436380899</id><published>2011-10-23T14:46:00.002-04:00</published><updated>2011-10-23T14:54:31.922-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET MVC"/><title type='text'>ASP.NET MVC Pipeline</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Life cycle&amp;nbsp;of a request in ASP.NET MVC.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://www.simple-talk.com/content/file.ashx?file=6068&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbgXXbDCQ0P-GmDIy23UYuZaYMCeCb-uXSU2cOiWuRoHt8VCA5P856Wf7zTWqewglnlKBQkeM6eg51aJMdn0lo02qcpxgDk5x5XIKrMOAFzHafTm8oQa-Z7GiRAxMYS0fcKln4K6Cd1M4/s640/mvc-lifecycle.jpg&quot; width=&quot;585&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://heemar.blogspot.com/feeds/5446889612436380899/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://heemar.blogspot.com/2011/10/aspnet-mvc-pipeline.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8712869988235180568/posts/default/5446889612436380899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8712869988235180568/posts/default/5446889612436380899'/><link rel='alternate' type='text/html' href='http://heemar.blogspot.com/2011/10/aspnet-mvc-pipeline.html' title='ASP.NET MVC Pipeline'/><author><name>Heema Rajkarnikar</name><uri>http://www.blogger.com/profile/00248397713868414819</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbgXXbDCQ0P-GmDIy23UYuZaYMCeCb-uXSU2cOiWuRoHt8VCA5P856Wf7zTWqewglnlKBQkeM6eg51aJMdn0lo02qcpxgDk5x5XIKrMOAFzHafTm8oQa-Z7GiRAxMYS0fcKln4K6Cd1M4/s72-c/mvc-lifecycle.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8712869988235180568.post-4787016242254219912</id><published>2011-10-16T10:59:00.000-04:00</published><updated>2011-10-16T11:00:33.494-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>SQL to get unique entry and the date it was first entered</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Let&#39;s say you have this table:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Email&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EnteredDate&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;abc@abc.com&amp;nbsp;&amp;nbsp;&amp;nbsp; 11/1/2011&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;xyz@zyx.com&amp;nbsp;&amp;nbsp;&amp;nbsp; 11/1/2011&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;abc@abc.com&amp;nbsp;&amp;nbsp;&amp;nbsp; 11/2/2011&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
and you want to get list of unique emails and the date when it was first entered. Then this query:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;SELECT email, min(EnteredDate) as FirstEntered FROM entries&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;GROUP BY email&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
will give you this result displaying unique email with the date it was first entered:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Email&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstEntered&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;abc@abc.com&amp;nbsp;&amp;nbsp;&amp;nbsp; 11/1/2011&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;xyz@zyx.com&amp;nbsp;&amp;nbsp;&amp;nbsp; 11/1/2011&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
If you know any better solution then please share it with me.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://heemar.blogspot.com/feeds/4787016242254219912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://heemar.blogspot.com/2011/10/sql-to-get-unique-entry-and-date-it-was.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8712869988235180568/posts/default/4787016242254219912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8712869988235180568/posts/default/4787016242254219912'/><link rel='alternate' type='text/html' href='http://heemar.blogspot.com/2011/10/sql-to-get-unique-entry-and-date-it-was.html' title='SQL to get unique entry and the date it was first entered'/><author><name>Heema Rajkarnikar</name><uri>http://www.blogger.com/profile/00248397713868414819</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8712869988235180568.post-7387371406276479913</id><published>2011-10-11T21:28:00.000-04:00</published><updated>2011-10-11T21:29:59.062-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="facebook"/><title type='text'>Tool to debug Facebook&#39;s Open Graph protocol</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Great tool to debug Facebook&#39;s Open Graph protocol &lt;a href=&quot;https://developers.facebook.com/tools/debug&quot; target=&quot;_blank&quot;&gt;https://developers.facebook.com/tools/debug&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
This tool displays all Open Graph Object properties which helps us to debug the properties we have set on our pages. This way we will be sure whether we have set the properties correctly or not.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://heemar.blogspot.com/feeds/7387371406276479913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://heemar.blogspot.com/2011/10/tool-to-debug-facebooks-open-graph.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8712869988235180568/posts/default/7387371406276479913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8712869988235180568/posts/default/7387371406276479913'/><link rel='alternate' type='text/html' href='http://heemar.blogspot.com/2011/10/tool-to-debug-facebooks-open-graph.html' title='Tool to debug Facebook&#39;s Open Graph protocol'/><author><name>Heema Rajkarnikar</name><uri>http://www.blogger.com/profile/00248397713868414819</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8712869988235180568.post-7119153664858657337</id><published>2011-10-10T20:11:00.002-04:00</published><updated>2011-10-10T22:38:53.832-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="facebook"/><title type='text'>Fix for facebook iframe scrollbar issue</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Sometimes &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;FB.Canvas.setAutoResize&lt;/span&gt; or &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;FB.Canvas.setSize&lt;/span&gt; fails to remove the scrollbar from applications. To fix it you can put &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;lt;body style=&quot;overflow:hidden&quot;&amp;gt;&lt;/span&gt; in body tag.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://heemar.blogspot.com/feeds/7119153664858657337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://heemar.blogspot.com/2011/10/fix-for-facebook-iframe-scrollbar-issue.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8712869988235180568/posts/default/7119153664858657337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8712869988235180568/posts/default/7119153664858657337'/><link rel='alternate' type='text/html' href='http://heemar.blogspot.com/2011/10/fix-for-facebook-iframe-scrollbar-issue.html' title='Fix for facebook iframe scrollbar issue'/><author><name>Heema Rajkarnikar</name><uri>http://www.blogger.com/profile/00248397713868414819</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8712869988235180568.post-8019987550089063349</id><published>2011-10-08T01:59:00.001-04:00</published><updated>2011-10-08T23:18:30.270-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="facebook"/><title type='text'>Fix for loading non secured FB JSDK over HTTPS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Set FB._https to true before calling FB.init &amp;nbsp;to avoid loading non securing fb items over HTTPS.&lt;br /&gt;
&lt;br /&gt;
Ref:&amp;nbsp;&lt;a href=&quot;http://stackoverflow.com/questions/5212016/facebook-javascript-sdk-over-https-loading-non-secure-items&quot;&gt;http://stackoverflow.com/questions/5212016/facebook-javascript-sdk-over-https-loading-non-secure-items&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://heemar.blogspot.com/feeds/8019987550089063349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://heemar.blogspot.com/2011/10/fix-for-loading-non-secured-fb-jsdk.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8712869988235180568/posts/default/8019987550089063349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8712869988235180568/posts/default/8019987550089063349'/><link rel='alternate' type='text/html' href='http://heemar.blogspot.com/2011/10/fix-for-loading-non-secured-fb-jsdk.html' title='Fix for loading non secured FB JSDK over HTTPS'/><author><name>Heema Rajkarnikar</name><uri>http://www.blogger.com/profile/00248397713868414819</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8712869988235180568.post-3265831421832162349</id><published>2011-10-04T23:27:00.000-04:00</published><updated>2011-10-08T23:13:25.111-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cfhttp"/><category scheme="http://www.blogger.com/atom/ns#" term="connection failure"/><title type='text'>CFHTTP issue with Connection Failure: Status code unavailable</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
I was trying to connect to client&#39;s remote URL using CFHTTP and I was getting an error saying &quot;Connection Failure: Status code unavailable&quot;. So to fix that I used below code and this solved by problem:&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;lt;cfobject action=&quot;Create&quot; name=&quot;objSrvHTTP&quot; class=&quot;MSXML2.ServerXMLHTTP&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;lt;cfset temp = objSrvHTTP.open(&quot;GET&quot;,&quot;http://google.com&quot;)&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;lt;cfset temp = objSrvHTTP.send(&quot;&quot;)&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;lt;cfset myResult = objSrvHTTP.responsetext&amp;gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://heemar.blogspot.com/feeds/3265831421832162349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://heemar.blogspot.com/2011/10/cfhttp-issue-with-connection-failure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8712869988235180568/posts/default/3265831421832162349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8712869988235180568/posts/default/3265831421832162349'/><link rel='alternate' type='text/html' href='http://heemar.blogspot.com/2011/10/cfhttp-issue-with-connection-failure.html' title='CFHTTP issue with Connection Failure: Status code unavailable'/><author><name>Heema Rajkarnikar</name><uri>http://www.blogger.com/profile/00248397713868414819</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8712869988235180568.post-5458106100070761942</id><published>2011-10-04T23:14:00.000-04:00</published><updated>2011-10-08T23:13:49.466-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="500 error code"/><title type='text'>Show custom page for run-time exceptions occurred in servlet</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
In Coldfusion if you see errors in servlet with a stack trace like below:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsP5OodsGK0_iI30iM42hBjar2-McGZ_DnfIjKJPunkSBZqMkKqhwMvO7OwuMj1PPwAMd4IowPgCFV6a11Qlr3f3-5oqJ_B4XB6pFCjSMAlTuQF-9FOPcTgaqKz-umVS3TbwO6OY9RM1M/s1600/500.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;216&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsP5OodsGK0_iI30iM42hBjar2-McGZ_DnfIjKJPunkSBZqMkKqhwMvO7OwuMj1PPwAMd4IowPgCFV6a11Qlr3f3-5oqJ_B4XB6pFCjSMAlTuQF-9FOPcTgaqKz-umVS3TbwO6OY9RM1M/s320/500.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
then in order to get custom error page you need to add this code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;lt;error-page&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;lt;error-code&amp;gt;500&amp;lt;/error-code&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;lt;location&amp;gt;/500.cfm&amp;lt;/location&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;lt;/error-page&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
in default-web.xml. You can find this xml in this location C:\JRun4\servers\cfusion\SERVER-INF\.&lt;br /&gt;
&lt;br /&gt;
Ref:&amp;nbsp;&lt;a href=&quot;http://livedocs.adobe.com/jrun/4/Programmers_Guide/techniques_servlet12.htm&quot;&gt;http://livedocs.adobe.com/jrun/4/Programmers_Guide/techniques_servlet12.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
I created the above error by capturing the form post using Live HTTP Headers add on of Firefox and changing the content length and replayed the request. When I do this then cferror was not capturing that error. So had to do this way in order to show custom error.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://heemar.blogspot.com/feeds/5458106100070761942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://heemar.blogspot.com/2011/10/show-custom-page-for-run-time.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8712869988235180568/posts/default/5458106100070761942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8712869988235180568/posts/default/5458106100070761942'/><link rel='alternate' type='text/html' href='http://heemar.blogspot.com/2011/10/show-custom-page-for-run-time.html' title='Show custom page for run-time exceptions occurred in servlet'/><author><name>Heema Rajkarnikar</name><uri>http://www.blogger.com/profile/00248397713868414819</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsP5OodsGK0_iI30iM42hBjar2-McGZ_DnfIjKJPunkSBZqMkKqhwMvO7OwuMj1PPwAMd4IowPgCFV6a11Qlr3f3-5oqJ_B4XB6pFCjSMAlTuQF-9FOPcTgaqKz-umVS3TbwO6OY9RM1M/s72-c/500.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>