<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Roopak Neevan&#039;s Blog</title>
	<atom:link href="http://roopakneevan.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://roopakneevan.wordpress.com</link>
	<description>techno web blog</description>
	<lastBuildDate>Tue, 17 Jan 2012 15:39:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='roopakneevan.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Roopak Neevan&#039;s Blog</title>
		<link>http://roopakneevan.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://roopakneevan.wordpress.com/osd.xml" title="Roopak Neevan&#039;s Blog" />
	<atom:link rel='hub' href='http://roopakneevan.wordpress.com/?pushpress=hub'/>
		<item>
		<title>add watremarking to pdf</title>
		<link>http://roopakneevan.wordpress.com/2011/06/21/add-watremarking-to-pdf/</link>
		<comments>http://roopakneevan.wordpress.com/2011/06/21/add-watremarking-to-pdf/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 20:46:29 +0000</pubDate>
		<dc:creator>Naveen Kapoor</dc:creator>
				<category><![CDATA[Misc.....]]></category>

		<guid isPermaLink="false">http://roopakneevan.wordpress.com/?p=207</guid>
		<description><![CDATA[We got this new new requirement where we need to add the watermarking to the pdf documents. There are number of solution available but being a part of the my company (following the process)  we can not use any jar file available on the internet so when we checked the approved open source for my [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&amp;blog=5504801&amp;post=207&amp;subd=roopakneevan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We got this new new requirement where we need to add the watermarking to the pdf documents. There are number of solution available but being a part of the my company (following the process)  we can not use any jar file available on the internet so when we checked the approved open source for my company I found that we can use iTEXT which support the pdf  documents and able to implement the new requirement for my project.</p>
<p>Took help from the following urls :</p>
<p>http://www.itextpdf.com/</p>
<p>http://www.java-connect.com/itext/add-watermark-in-PDF-document-using-java-iText-library.html</p>
<p>http://stackoverflow.com/questions/5278280/some-pdf-file-watermark-does-not-show-using-itext</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/roopakneevan.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/roopakneevan.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/roopakneevan.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/roopakneevan.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/roopakneevan.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/roopakneevan.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/roopakneevan.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/roopakneevan.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/roopakneevan.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/roopakneevan.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/roopakneevan.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/roopakneevan.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/roopakneevan.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/roopakneevan.wordpress.com/207/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&amp;blog=5504801&amp;post=207&amp;subd=roopakneevan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://roopakneevan.wordpress.com/2011/06/21/add-watremarking-to-pdf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d56611e78d380a4c3ef5e47e30fec0ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">roopak</media:title>
		</media:content>
	</item>
		<item>
		<title>Play Housie / Tambola / Bingo Online</title>
		<link>http://roopakneevan.wordpress.com/2009/09/16/play-housee-tambola-bingo-online/</link>
		<comments>http://roopakneevan.wordpress.com/2009/09/16/play-housee-tambola-bingo-online/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 03:28:31 +0000</pubDate>
		<dc:creator>Naveen Kapoor</dc:creator>
				<category><![CDATA[Interview Question's Detailed Discussion]]></category>

		<guid isPermaLink="false">http://roopakneevan.wordpress.com/?p=179</guid>
		<description><![CDATA[Hi&#8230;. Subject seems very exciting rt&#8230;.. I have created a code using this code you can play Housie / Tambola / Bingo online on your system. This is a standalone program. You need to Download the java files(as pdf, permissible format on this site) and run them on Java runtime environment. This will be easy for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&amp;blog=5504801&amp;post=179&amp;subd=roopakneevan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi&#8230;.</p>
<p>Subject seems very exciting rt&#8230;..</p>
<p>I have created a code using this code you can play Housie / Tambola / Bingo online on your system.</p>
<p>This is a standalone program. You need to Download the java files(as pdf, permissible format on this site) and run them on Java runtime environment.</p>
<p>This will be easy for those who knows Java. I am sorry for that as I can not upload a Jar file here on this forum.</p>
<p>I am uploading the java files in the form of pdf files&#8230;. Change the file format to .Java and the compile the same to class file and then you can run the Swings file (Tambola.class using Java compiler) and you can play Tambola / Housee / Bingo on your desktop.</p>
<p>I am attaching 2 file</p>
<p>1) Tambola.java which you need to execute using java comands</p>
<p>2) GameLogic.java  which you contains the logic behind generating the 90 random numbers.</p>
<p>Tambola.pdf =&gt; <a href="http://roopakneevan.files.wordpress.com/2009/09/tambola3.pdf">Tambola</a></p>
<p>Gamelogic.pdf =&gt; <a href="http://roopakneevan.files.wordpress.com/2009/09/gamelogic2.pdf">GameLogic</a></p>
<p>You can download tambola slips from</p>
<p>1) <a href="http://misterharold.net/bingo/">http://misterharold.net/bingo/</a></p>
<p>Or if you love coding then here is the code to generate TambolaGameLogic Tambola ticket :</p>
<p><a href="https://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=8128&amp;lngWId=3">https://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=8128&amp;lngWId=3</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/roopakneevan.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/roopakneevan.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/roopakneevan.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/roopakneevan.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/roopakneevan.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/roopakneevan.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/roopakneevan.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/roopakneevan.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/roopakneevan.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/roopakneevan.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/roopakneevan.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/roopakneevan.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/roopakneevan.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/roopakneevan.wordpress.com/179/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&amp;blog=5504801&amp;post=179&amp;subd=roopakneevan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://roopakneevan.wordpress.com/2009/09/16/play-housee-tambola-bingo-online/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d56611e78d380a4c3ef5e47e30fec0ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">roopak</media:title>
		</media:content>
	</item>
		<item>
		<title>AJAX with Servlets : Code</title>
		<link>http://roopakneevan.wordpress.com/2009/07/29/ajax-with-servlets-code/</link>
		<comments>http://roopakneevan.wordpress.com/2009/07/29/ajax-with-servlets-code/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 05:00:26 +0000</pubDate>
		<dc:creator>Naveen Kapoor</dc:creator>
				<category><![CDATA[Web Application]]></category>

		<guid isPermaLink="false">http://roopakneevan.wordpress.com/?p=149</guid>
		<description><![CDATA[ AJAX with Servlet : Example  =&#62; http://roopakneevan.wordpress.com/2009/07/29/ajax-with-servlets-example/ Above link is an example for the below code[In the above example I have put the code screen shots].   JSP Code : FirstExample.jsp &#60;!DOCTYPE HTML PUBLIC &#8220;-//W3C//DTD HTML 4.01 Transitional//EN&#8221;&#62;&#60;HTML &#62;  &#60;HEAD&#62;        &#60;script type=&#8221;text/javascript&#8221; src=&#8221;javascript/myJSfunc.js&#8221;&#62; &#60;/script&#62;        &#60;TITLE&#62;Your First Step to  AJAX&#60;/TITLE&#62;   &#60;/HEAD&#62;   &#60;BODY&#62;   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&amp;blog=5504801&amp;post=149&amp;subd=roopakneevan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> <span style="color:#0000ff;">AJAX with Servlet : Example  </span>=&gt; <span style="color:#0000ff;"><a href="http://roopakneevan.wordpress.com/2009/07/29/ajax-with-servlets-example/">http://roopakneevan.wordpress.com/2009/07/29/<span title="Click to edit this part of the permalink">ajax-with-servlets-example</span>/</a></span></p>
<p><span style="color:#0000ff;">Above link is an example for the below code[In the above example I have put the code screen shots].</span></p>
<p><span style="color:#0000ff;"> </span></p>
<p>JSP Code :</p>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td width="100%" valign="top">
<p align="center">FirstExample.jsp</p>
</td>
</tr>
<tr>
<td width="100%" valign="top">&lt;!DOCTYPE HTML PUBLIC &#8220;-//W3C//DTD HTML 4.01 Transitional//EN&#8221;&gt;&lt;HTML &gt;  &lt;HEAD&gt;</p>
<p>       &lt;script type=&#8221;text/javascript&#8221; src=&#8221;javascript/myJSfunc.js&#8221;&gt; &lt;/script&gt;</p>
<p>       &lt;TITLE&gt;Your First Step to  AJAX&lt;/TITLE&gt;</p>
<p>  &lt;/HEAD&gt;</p>
<p>  &lt;BODY&gt;</p>
<p>  &lt;DIV id=&#8221;header&#8221;&gt;</p>
<p>    &lt;h1&gt;Ajax-powered Dropdown example&lt;/h1&gt;</p>
<p>  &lt;/DIV&gt;</p>
<p>  &lt;DIV id = &#8220;control1&#8243;&gt;</p>
<p>    &lt;FORM&gt;</p>
<p>       &lt;P&gt; &lt;h3&gt;Make you choice from the below drop down menu&lt;/h3&gt;</p>
<p>       &lt;SELECT name=&#8221;invOption&#8221; onchange=&#8217;OnChange(this.form.invOption);&#8217;&gt;</p>
<p>              &lt;OPTION value=&#8221;&#8212;&#8221;&gt;   &#8212;   &lt;/OPTION&gt;</p>
<p>              &lt;OPTION value=&#8221;AJAX&#8221;&gt; AJAX &lt;/OPTION&gt;</p>
<p>              &lt;OPTION value=&#8221;JAVA&#8221;&gt; JAVA &lt;/OPTION&gt;</p>
<p>              &lt;OPTION value=&#8221;J2EE&#8221;&gt; J2EE &lt;/OPTION&gt;</p>
<p>       &lt;/SELECT&gt;</p>
<p>       &lt;/P&gt;         </p>
<p>    &lt;/FORM&gt;</p>
<p>    &lt;/DIV&gt;</p>
<p>       &lt;DIV id=&#8221;dyna-contents&#8221;&gt; &lt;H5&gt;This Example is created for AJAX Aspirants&lt;/H5&gt;</p>
<p>    &lt;/DIV&gt;</p>
<p>&lt;/BODY&gt;</p>
<p>&lt;/HTML &gt;</td>
</tr>
</tbody>
</table>
<p> </p>
<p style="text-align:center;">Javascript code :</p>
<table style="text-align:center;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="text-align:center;" width="590" valign="top">function OnChange</td>
</tr>
<tr>
<td width="590" valign="top">function OnChange(dropdown){  var myindex  = dropdown.selectedIndex;           var SelValue = dropdown.options[myindex].value;  var url = &#8220;CoffeeAjaxTest?SelValue=&#8221; + escape(SelValue);  sendURL(request1,url);}</td>
</tr>
<tr>
<td width="590" valign="top">function sendURL</td>
</tr>
<tr>
<td width="590" valign="top">function sendURL(request,url){      request.onreadystatechange = getDynaContent;      request.open(&#8220;GET&#8221;,url,true);      request.send(null);}</td>
</tr>
<tr>
<td width="590" valign="top">function getDynaContent</td>
</tr>
<tr>
<td width="590" valign="top">function getDynaContent(){  if(request1.readyState == 4){    if(request1.Status == 200){      var response = request1.responseXML.getElementsByTagName                     (&#8220;message&#8221;)[0].childNodes[0].nodeValue;      var dynaText = document.getElementById(&#8220;dyna-contents&#8221;);      replaceText(dynaText,response);      request1 = createRequest();    }else      alert(&#8220;Error! Request status is &#8221; + request1.status);</p>
<p>  }</p>
<p>}</td>
</tr>
<tr>
<td width="590" valign="top">function createRequest</td>
</tr>
<tr>
<td width="590" valign="top">var request1 = createRequest(); function createRequest() {      var request = null;      try {          request = new XMLHttpRequest();        } catch (trymicrosoft) {          try {            request = new ActiveXObject(&#8220;Msxml2.XMLHTTP&#8221;);          } catch (othermicrosoft) {</p>
<p>            try {</p>
<p>              request = new ActiveXObject(&#8220;Microsoft.XMLHTTP&#8221;);</p>
<p>            } catch (failed) {</p>
<p>              request = null;</p>
<p>            }</p>
<p>          }</p>
<p>        }</p>
<p>     </p>
<p>        if (request == null) {</p>
<p>          alert(&#8220;Error creating request object!&#8221;);</p>
<p>        } else {</p>
<p>          return request;</p>
<p>        }</p>
<p>}</td>
</tr>
<tr>
<td width="590" valign="top">function replaceText, function clearText, function getText</td>
</tr>
<tr>
<td width="590" valign="top"> function replaceText(el, text) {  if (el != null) {    clearText(el);    var newNode = document.createTextNode(text);    el.appendChild(newNode);  }} function clearText(el) {</p>
<p>  if (el != null) {</p>
<p>    if (el.childNodes) {</p>
<p>      for (var i = 0; i &lt; el.childNodes.length; i++) {</p>
<p>        var childNode = el.childNodes[i];</p>
<p>        el.removeChild(childNode);</p>
<p>      }</p>
<p>    }</p>
<p>  }</p>
<p>}</p>
<p> </p>
<p>function getText(el) {</p>
<p>  var text = &#8220;&#8221;;</p>
<p>  if (el != null) {</p>
<p>    if (el.childNodes) {</p>
<p>      for (var i = 0; i &lt; el.childNodes.length; i++) {</p>
<p>        var childNode = el.childNodes[i];</p>
<p>        if (childNode.nodeValue != null) {</p>
<p>          text = text + childNode.nodeValue;</p>
<p>        }</p>
<p>      }</p>
<p>    }</p>
<p>  }</p>
<p>  return text;</p>
<p>}</td>
</tr>
<tr>
<td width="590" valign="top"> </td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/roopakneevan.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/roopakneevan.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/roopakneevan.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/roopakneevan.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/roopakneevan.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/roopakneevan.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/roopakneevan.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/roopakneevan.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/roopakneevan.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/roopakneevan.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/roopakneevan.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/roopakneevan.wordpress.com/149/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/roopakneevan.wordpress.com/149/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/roopakneevan.wordpress.com/149/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&amp;blog=5504801&amp;post=149&amp;subd=roopakneevan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://roopakneevan.wordpress.com/2009/07/29/ajax-with-servlets-code/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d56611e78d380a4c3ef5e47e30fec0ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">roopak</media:title>
		</media:content>
	</item>
		<item>
		<title>AJAX with Servlets : Example</title>
		<link>http://roopakneevan.wordpress.com/2009/07/29/ajax-with-servlets-example/</link>
		<comments>http://roopakneevan.wordpress.com/2009/07/29/ajax-with-servlets-example/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 04:56:53 +0000</pubDate>
		<dc:creator>Naveen Kapoor</dc:creator>
				<category><![CDATA[Web Application]]></category>

		<guid isPermaLink="false">http://roopakneevan.wordpress.com/?p=92</guid>
		<description><![CDATA[  I am going thru Head Rush Ajax and i found it quite interesting. I am following with the exampleas as well. All the examples in this book are based on PHP&#8217;s and I have never worked with PHP so initially it was difficult for me to start with but the I started with PHP and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&amp;blog=5504801&amp;post=92&amp;subd=roopakneevan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> </p>
<p>I am going thru Head Rush Ajax and i found it quite interesting. I am following with the exampleas as well. All the examples in this book are based on PHP&#8217;s and I have never worked with PHP so initially it was difficult for me to start with but the I started with PHP and I found it easy( One reason is all code is already existing and you just need to copy that <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ).</p>
<p>As I am always a  servlet/JSP person, So the next question was how to intract my JSP pages with AJAX implemented javascript to my servlets.  Answer to this question is easy &#8220;GOOGLE&#8221;. Now it comes to the right serch and right resource. I tried so many options and so many pages but the info was either a complex one or not complete. After extraction bits and pieces of  info I came up with a proper AJAX code and I want to share the same with all AJAX Aspirents.</p>
<p>NOTE :  I have put the screen shots for the code(except the servlet and web.xml code)  as I faced lot of difficulty with code indentation. Please find the code for the below example from below link. </p>
<p> <span><a href="http://roopakneevan.wordpress.com/2009/07/29/ajax-with-servlets-code/"><strong><em>http://roopakneevan.wordpress.com/2009/07/29/<span title="Click to edit this part of the permalink">ajax-with-servlets-code</span>/</em></strong></a></span></p>
<p><span>You may need to indent the code or may need to correct the code while coping the code to editor.</span></p>
<p><strong>Eample follows here : </strong></p>
<p><strong>Step 1 ) </strong></p>
<p><strong><img class="alignnone size-full wp-image-162" title="Fig1" src="http://roopakneevan.files.wordpress.com/2009/07/fig14.jpg?w=480" alt="Fig1" /> </strong></p>
<p>Start with the JSP Page. This page contains a drop down menu and as the option in the drop down menu change based on the value this page will fetch the dynamic contents from the server using HTTPRequest.</p>
<p> <strong>Step 2 ) </strong></p>
<p> <img class="alignnone size-full wp-image-127" title="fig8" src="http://roopakneevan.files.wordpress.com/2009/07/fig8.jpg?w=480" alt="Fig2" /></p>
<p>Above snippet is from the JSP, Now when the drop down value will change this will call the function OnChange with parameter as the dropdown value. Lets implement it.</p>
<p> Create a javascript file and name it <strong>myJSfunc.js</strong> and define your OnChange and other supporting function in the file</p>
<p><img class="alignnone size-full wp-image-128" title="fig2" src="http://roopakneevan.files.wordpress.com/2009/07/fig22.jpg?w=480" alt="Fig 2."   /><img class="alignnone size-full wp-image-129" title="fig3" src="http://roopakneevan.files.wordpress.com/2009/07/fig3.jpg?w=480" alt="Fig 3."   /><img class="alignnone size-full wp-image-130" title="fig4" src="http://roopakneevan.files.wordpress.com/2009/07/fig4.jpg?w=480" alt="Fig 4."   /><img class="alignnone size-full wp-image-131" title="fig5" src="http://roopakneevan.files.wordpress.com/2009/07/fig5.jpg?w=480" alt="Fig 5."   /><img class="alignnone size-full wp-image-132" title="fig6" src="http://roopakneevan.files.wordpress.com/2009/07/fig6.jpg?w=480" alt="Fig 6."   /></p>
<p> <strong>Step 3)</strong> </p>
<p>Now we are all set with the JSP and AJAX implemented java scripts code and we are left out with the servelet. So now its time to move on to the Servlet code.</p>
<table style="width:558px;height:1516px;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="590" valign="top">
<p align="center">MyFirstAJAXServ.java</p>
</td>
</tr>
<tr>
<td width="590" valign="top">public class MyFirstAJAXServ extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet{           public MyFirstAJAXServ () {                        super(); }                     protected void doGet(HttpServletRequest req, HttpServletResponse resp)                                                                     throws ServletException, IOException {            // Enable this code for AJAX : first step to AJAX            String dropDownVal = req.getParameter(&#8220;SelValue&#8221;);            System.out.println(&#8220;dropDownVal : &#8221; + dropDownVal);</p>
<p>            if (dropDownVal.equalsIgnoreCase(&#8220;&#8212;&#8221;)){</p>
<p>                 resp.setContentType(&#8220;text/xml&#8221;);</p>
<p>                 resp.setHeader(&#8220;Cache-Control&#8221;, &#8220;no-cache&#8221;);</p>
<p>                 resp.getWriter().write(&#8220;&lt;message&gt;This Example is created for AJAX Aspirents&lt;/message&gt;&#8221;);</p>
<p>            }else if (dropDownVal.equalsIgnoreCase(&#8220;AJAX&#8221;)){</p>
<p>                 resp.setContentType(&#8220;text/xml&#8221;);</p>
<p>                 resp.setHeader(&#8220;Cache-Control&#8221;, &#8220;no-cache&#8221;);</p>
<p>                 resp.getWriter().write(&#8220;&lt;message&gt;AJAX is the term coined in February 2005 to describe a collection of technologies&#8221;+&#8221;" +</p>
<p>            &#8221; used to automatically update and manipulate the information on a web page while it is being viewed&#8221;+</p>
<p>            &#8221; in a browser (ie without the user having to manually refresh the page). This allows developers to&#8221;+&#8221;" +</p>
<p>            &#8221; create more sophisticated web pages and applications without having to add to the native capabilities&#8221;+</p>
<p>            &#8221; of the browser. A key component is the use of XMLHttpRequest, a function originally added to browsers&#8221;+&#8221;" +</p>
<p>            &#8221; by Microsoft, to exchange data in the background with one or more web servers.&lt;/message&gt;&#8221;);</p>
<p>            }else if (dropDownVal.equalsIgnoreCase(&#8220;JAVA&#8221;)){</p>
<p>                 resp.setContentType(&#8220;text/xml&#8221;);</p>
<p>                 resp.setHeader(&#8220;Cache-Control&#8221;, &#8220;no-cache&#8221;);</p>
<p>                 resp.getWriter().write(&#8220;&lt;message&gt;Java is a programming language expressly designed for use in the distributed environment of the Internet.&#8221; +</p>
<p>                &#8220;It was designed to have the look and feel of the C++ language, but it is simpler to use than C++ and enforces an &#8221; +</p>
<p>                 &#8220;object-oriented programming model. Java can be used to create complete applications that may run on a single computer&#8221; +</p>
<p>                 &#8221; or be distributed among servers and clients in a network. It can also be used to build a small application module or &#8221; +</p>
<p>                 &#8220;applet for use as part of a Web page. Applets make it possible for a Web page user to interact with the page.&lt;/message&gt;&#8221;);</p>
<p>            }else if (dropDownVal.equalsIgnoreCase(&#8220;J2EE&#8221;)){</p>
<p>                 resp.setContentType(&#8220;text/xml&#8221;);</p>
<p>                 resp.setHeader(&#8220;Cache-Control&#8221;, &#8220;no-cache&#8221;);</p>
<p>                 resp.getWriter().write(&#8220;&lt;message&gt;J2EE (Java 2 Platform, Enterprise Edition) technology and its component-based model simplify enterprise&#8221; +</p>
<p>                 &#8221; development and deployment. The J2EE platform manages the infrastructure and supports the Web services to enable &#8221; +</p>
<p>                 &#8220;development of secure, robust and interoperable business applications.&lt;/message&gt;&#8221;);</p>
<p>                        }                      </p>
<p>            }                                </p>
<p> protected void doPost(HttpServletRequest arg0, HttpServletResponse arg1) </p>
<p>                                                                         throws ServletException, IOException {</p>
<p>                        //System.out.println(“Hello world”);</p>
<p>            }</td>
</tr>
<tr>
<td width="590" valign="top">Copy the above servelet or create your own servlet and copy the doGet function from the above code to your servlet. ** In case you are defining your own servlet please don’t forget to change the url variable in the java script with the correct servlet mapping name..</td>
</tr>
</tbody>
</table>
<p>Step 4) Now we have created the Servlet, Its time to define the servlet and the mapping in web.xml.</p>
<p>&lt;servlet&gt;</p>
<p>      &lt;display-name&gt;CoffeeAjaxTest&lt;/display-name&gt;</p>
<p>      &lt;servlet-name&gt;CoffeeAjaxTest&lt;/servlet-name&gt;</p>
<p>      &lt;servlet-class&gt;com.ibm.nav.ajax. MyFirstAJAXServ &lt;/servlet-class&gt;</p>
<p>&lt;/servlet&gt;</p>
<p> &lt;servlet-mapping&gt;</p>
<p>      &lt;servlet-name&gt; MyFirstAJAXServ &lt;/servlet-name&gt;</p>
<p>      &lt;url-pattern&gt;/ MyFirstAJAXServ &lt;/url-pattern&gt;</p>
<p>&lt;/servlet-mapping&gt;</p>
<p><img class="alignnone size-full wp-image-133" title="fig7" src="http://roopakneevan.files.wordpress.com/2009/07/fig7.jpg?w=480" alt="Fig 7."   /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/roopakneevan.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/roopakneevan.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/roopakneevan.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/roopakneevan.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/roopakneevan.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/roopakneevan.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/roopakneevan.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/roopakneevan.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/roopakneevan.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/roopakneevan.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/roopakneevan.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/roopakneevan.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/roopakneevan.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/roopakneevan.wordpress.com/92/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&amp;blog=5504801&amp;post=92&amp;subd=roopakneevan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://roopakneevan.wordpress.com/2009/07/29/ajax-with-servlets-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d56611e78d380a4c3ef5e47e30fec0ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">roopak</media:title>
		</media:content>

		<media:content url="http://roopakneevan.files.wordpress.com/2009/07/fig14.jpg" medium="image">
			<media:title type="html">Fig1</media:title>
		</media:content>

		<media:content url="http://roopakneevan.files.wordpress.com/2009/07/fig8.jpg" medium="image">
			<media:title type="html">fig8</media:title>
		</media:content>

		<media:content url="http://roopakneevan.files.wordpress.com/2009/07/fig22.jpg" medium="image">
			<media:title type="html">fig2</media:title>
		</media:content>

		<media:content url="http://roopakneevan.files.wordpress.com/2009/07/fig3.jpg" medium="image">
			<media:title type="html">fig3</media:title>
		</media:content>

		<media:content url="http://roopakneevan.files.wordpress.com/2009/07/fig4.jpg" medium="image">
			<media:title type="html">fig4</media:title>
		</media:content>

		<media:content url="http://roopakneevan.files.wordpress.com/2009/07/fig5.jpg" medium="image">
			<media:title type="html">fig5</media:title>
		</media:content>

		<media:content url="http://roopakneevan.files.wordpress.com/2009/07/fig6.jpg" medium="image">
			<media:title type="html">fig6</media:title>
		</media:content>

		<media:content url="http://roopakneevan.files.wordpress.com/2009/07/fig7.jpg" medium="image">
			<media:title type="html">fig7</media:title>
		</media:content>
	</item>
		<item>
		<title>India : Tatkal Passport for Minor</title>
		<link>http://roopakneevan.wordpress.com/2009/01/29/india-tatkal-passport-for-minor/</link>
		<comments>http://roopakneevan.wordpress.com/2009/01/29/india-tatkal-passport-for-minor/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 16:54:22 +0000</pubDate>
		<dc:creator>Naveen Kapoor</dc:creator>
				<category><![CDATA[Misc.....]]></category>

		<guid isPermaLink="false">http://roopakneevan.wordpress.com/?p=64</guid>
		<description><![CDATA[Hi Friends&#8230; I am dedicating this article to people who have suffered when they were in process of applying there child passport ( Like myself ). Please give you feed back and place you queries which I will try to answer thru my experience. I will say this is a very simple and easy process especially [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&amp;blog=5504801&amp;post=64&amp;subd=roopakneevan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi Friends&#8230; I am dedicating this article to people who have suffered when they were in process of applying there child passport ( Like myself <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  ). Please give you feed back and place you queries which I will try to answer thru my experience.</p>
<p>I will say this is a very simple and easy process especially in city like Bangalore but major problem is lack of information. No one out of passport office knows the correct process or what documents are needed to get minor passport. Those who know either don&#8217;t want to share or want to make easy money. When I contacted a Authorized passport agent he told that Normal application will cost me Rs 3100 and Tatkal will cost me Rs 3800.</p>
<p>Ques. Only Rs 700 extra to get the passport in just 7 days instead of 30 days sounds good. What is a problem then?.</p>
<p>Ans. Now I want to mention that there are no extra documents required to convert Minor passport from Normal application to Tatkal Application. Neither <span style="color:#993300;">Annexure I</span> nor <span style="color:#993300;">Annexure F</span> is required in case of Minors.</p>
<p>Ques. What is the process of applying fresh passport for Minor?</p>
<p>Ans. As I have processed my son passport in Bangalore at Bangalore1 center so I am giving the Step by step Process for the same.</p>
<p>Step 1) Go to <a href="http://passport.nic.in/">http://passport.nic.in/</a> and click on Application form and Download Application Form No. 1 <a href="https://roopakneevan.wordpress.com/wp-admin/ppapp1h.pdf">[ Hindi</a> /  <a href="https://roopakneevan.wordpress.com/wp-admin/ppapp1.pdf">English ]</a> . ppapp.pdf</p>
<p>Step 2) Fill in first 4 pages of an application form. In case of minor please ignore the last 2 pages they are for police verification and police verification is not needed for minors.</p>
<p>Step 3) Collect the supported documents to submit in Bangalore 1 office.(as it is easy to submit the docs in B1 office)</p>
<p>Supported documents in case of minor.</p>
<p>i) <strong>Parents Passport photo copies.</strong>  (Here we have a catch, You need to take care that one of the parent name must be there in other parent passport. for example either Father name should be there in Mother passport or Mother name should be there in Father passport.)</p>
<p>ii) <strong>Minor Birth certificate photo copy.</strong> (Photo copy must be attested for a gadgeted officer else photo copy is not valid)</p>
<p>iii) <strong>Address proof.</strong> (You can get the list of valid address proof documents on internet. <em><strong><span style="color:#ff0000;">Rental agreement is not acceptable</span></strong></em>. I have submitted my 12 month bank statement and CompanyAddress proof letter)</p>
<p>iv) <strong>Always keep extra photographs along with you.</strong></p>
<p>Please carry all orignals with you. Now go to the any of the B1 center close to your place and submit the documents along with Rs 600. They will verify all documents and fill an application in there system, verify the details with you and give you the recipt with the file number.</p>
<p><strong>Converting from normal application to tatkal application: </strong></p>
<p>After a day or two Go to RPO, Kormangala along with the below documents</p>
<p>1) 1 Photograph of minor,</p>
<p>2) Rs 1500,</p>
<p>3) Photo copies of parent&#8217;s passport,</p>
<p>4) Photocopy of Minor birth certificate.</p>
<p>5) Hand written application, giving the reason to convert the passport from normal to tatkal ( I was not asked for this application, better keep this along with you)</p>
<p>6) Passport receipt from B1 office</p>
<p>When you will enter the RPO Kormangala, There is a tatkal window adjacent to inquiry window.  Stand in the queue.(Don&#8217;t got to the long queue at the back that queue is for fresh passport application). When the window is about to open a police man will come and will give you Tatkal form. Fill in that form, paste an applicant photo on the form and wait for you turn. Officer will take your documents and verify them. If all documents are in proper shape, he will paste one slip(token) on your tatkal form and will ask you to go to first floor and meet one passport officer. He will sign your Tatkal application and put dispatch date on your Tatkal form and will tell you to go to counter X and submit the fee and collect the payment receipt.</p>
<p>Now you are all set to collect your child passport.</p>
<p>=================================================================================================</p>
<h2>Inputs from friends :</h2>
<p><strong><span style="color:#0000ff;">From Raju Bafna :</span></strong></p>
<p>Minor’s passport : when one parent is aborad..<br />
a) Need the affidavit by Parent staying abroad, Attested by the Consulate General of India. (Please find the affidavit details from the site of the applicable Consulate General of India, as each office has variations)<br />
b) Need Annexure G got the Parent applying for Passport.</p>
<p><strong><span style="color:#0000ff;">From Vishal Khandekar</span> : </strong></p>
<p>First of all, thanks a lot for this post as it really helped me a lot to get passport for my kid under Tatkaal scheme. It just took 8 days to get passport delivered after submission of application. That was really fast for me. I’d applied for passport of my 3 months old daughter in Pune PO. Thanks a lot to this Blog/ Roopak as well as to Sanjay Soni. Just to add few points to share my experience for minor’s passport under tatkaal scheme in Pune Passport office:</p>
<p>1. I would suggest to get your kid with you as security person may ask to see the kid if you give reason as minor’s passport application.</p>
<p>2. If you are submitting company letter as address proof, please ensure that you have ORIGINAL of same along with photocopy of your company ID and Original to cross verify. (I’d to rush back only for this reason and had to spent one hour extra)</p>
<p>3. They only took one set of application form (along with PP in duplicate) and supporting documents (as I am recollecting) however as suggested by Sanjay/ other, it would be good to carry two set of all documents and original for cross-verification (Must).</p>
<p>4. All photocopies should be self-attested (by both parents preferrably).</p>
<p>5. If parents passport are from different passport office, then ensure that sufficient address proof are available in Pune. You can also give Index 2 of registry as address proof.</p>
<p>6. No Need to take anyone’s help to go inside. (some agents may come to you). In Pune office, they have good arrangements to give preference to minors and senior citizens to go inside the office instead of getting into normal queue (That was really helpful as it is very dificult to stand in queue with small kids). Inside office, ofcourse, you need to get in queue but it is not more than 8-10 numbers.</p>
<p>7. Please ensure that parents sign at all pages where kids thumb impression require (except first page) as I’ve observed many to make this mistake.</p>
<p>8. If you want to trace the passport once you see the status as dispatched on passport office website (after 2-3 days of date of dispatch); just search the phone number of your nearby post office delivery point and try if they can update you if they’ve received any passport for delivery. Unfortunately, the registration number given on website doesn’t help to track the passport delivery.</p>
<p>9. It took me Rs600 + Rs. 1500 (for Tatkaal Scheme) + Rs. 200 for affidavit (Annexure I) in total. No need to pay extra money to any agent. Thanks to our govt. and passport office to make the process easy.</p>
<p><span style="color:#0000ff;"><strong>From Sanjay Soni</strong></span> :</p>
<p>First of all no need to carry the baby with you to the office, either father and mother’s presence is sufficient.</p>
<p>No need to pay extra money to any agent as they will charge 4000-6000 Rs. and your presence is also required. (I will suggest at least try once by yourself)</p>
<p>I went to submit application of passport of my 2 months old baby in Pune passport office. Just following things were required:</p>
<p>Documents:–</p>
<p>1) Fill the form online (they are not accepting normal forms). Fill all the details. Parents need to sign aside wherever thumb impression is required (OTHER THEN THE FIRST PAGE IN THE BOX, ONLY BABY’S THUMBIMPRESSION SHOULD BE THERE), fill PP forms also.</p>
<p>2) Annex I is required (parents and baby’s photo required) (can be obtained by any advocate (Notary) outside the passport office @250 Rs.)</p>
<p>3) Annexure H (on normal paper) download from official site.</p>
<p>4) Marriage certificate</p>
<p>5) Passport of both the parents where spouse name should be embossed in either one.</p>
<p>6) Birth certificate of child</p>
<p>7) three address proof (refer official site of passport)</p>
<p>8) Handwritten application to convert the application as ‘out of turn’ (Tatkal) describing reason.</p>
<p>Take two copies of the 1-7 documents and should be signed by both the parents. Make two sets, and carry originals with you for verification.</p>
<p>Procedure: —-</p>
<p>1) fill the form online and submit and take printout, the date and time will be printed on the side of the form.</p>
<p>2) reach the office with the entire document at least 1/2 hour before the time. (Time doesn’t matters as I have observed 12:30 appointee to came at 9:00)</p>
<p>(the office is really very well managed and no need to pay any extra amount to any agent to by pass the line as I was the 40-50th person but my turn came within 10-15 minutes. they will refer you to counter no. 7 in case of pune)</p>
<p>3) On the counter they will check all the document and then forward to fee counter (usually no need to meet with passport officer).</p>
<p>4) pay the fee i.e. 600+1500 Rs.</p>
<p>You will get the passport within 8 days. It can also be tracked online (mostly does not have updated info)</p>
<p><strong><span style="color:#0000ff;">From adarsh :</span></strong></p>
<p>For you queries please mail to  <a href="mailto:rpob_enquiry@dataone.in">rpob_enquiry@dataone.in</a>  they responded very well and quickly.</p>
<p><span style="color:#0000ff;"><strong>From Sajid :</strong></span></p>
<p>I had gone to the RPO today to submit the Tatkal conversion form. Unfortunately, the counter lady insisted that I bring my son also (he is around one year old). So, I had to come back with him. Anyways, all went well afterwards and I am set to get his passport next week hopefully.</p>
<p>I guess the requirement of the minor’s presence (or for that matter any other requirement) varies on the whims and fancies of the persons at the counter</p>
<p><strong><span style="color:#0000ff;">From Raghu :</span></strong></p>
<p>i ) There is a free assistance booth on the back side of the passport office(Bangalore RPO) . They will help you sort your docs and prepare the app if required. This will save you time of scrutiny.</p>
<p>ii ) Inside the office(Bangalore RPO) too there is a scrutiny desk where an official will check and advise you on the documents.</p>
<p><span style="color:#0000ff;"><strong>From Uday Kumar</strong></span> :</p>
<p>Learnings for Me :-</p>
<p>1. I was over confident in filling the application form properly and realized few mistakes even while in the line and while scrutinizing it at home. I say it would help a great deal to check the application form 3 to 4 times as there are chances of some information missing and that one mistake is enough to ruin all the hard work done by you for atleast 3 to 4hrs</p>
<p>2. Carry all possible documents which can prove that you reside at following address. Sometimes its about convincing the passport personnel inspite of having all the documents as per the website, as there are chances of some last minute modifications. Like since 16th April’11 their is no Tatkal 8-14 days option , all we have is option 1 where in work will be done in 7 days , but this information is missing in the website.</p>
<p>3. Before applying myselfi went through 2 agents. 1st one was not at all professional in handling things and i skipped him in the last minute. Next one made me feel comfortable but while striking the deal an applicant who went through this agent walked in to office to put across his point that inspite of paying 3000INR for normal passport he wasn’t provided any help at all and he confessed openly that their is no use of going through agent, as they will still make you stand in line and stll submit the application on your own, then where is the point of getting it done quickly through an agent. That incident has put me in to 2nd thoughts and made me put some more effort in finding out the information from all possible sources. Lesson is their are hundred people around us who encourage to get it done through agents, but at the same time their are thousand others who enable us to get it done without agent and unknoingly helping us fight corruption. Choice is ours.</p>
<p><span style="color:#0000ff;"><strong>From Singhal (updated on 22/12/2011)</strong></span> :</p>
<p>Experience at Pune&#8217;s Passport Office:</p>
<p>A super smooth experience (except for waiting in the queue, which is fine).</p>
<p>Reached Passport Office at: 7:25AM (I was 19th in the queue)<br />
Entered sharp at: 10AM (Inside the office, I was the 2nd one in the queue for Minors)<br />
There&#8217;s a seperate window for minors and government officials.<br />
Submitted application and Was out at: 10:15AM !!</p>
<p>Documents I submitted:<br />
1. Baby&#8217;s Birth Certificate<br />
2. Electricity Bill (Recent and a year and a half old)<br />
3. Mother&#8217;s Bank Statement (Original Submitted)<br />
4. Anexure H on plain paper (signed by both Mother &amp; Father)<br />
5. 1st and Last Page photocopies of Father&#8217;s passport.<br />
6. Application Reciept of the Mother&#8217;s new passport.<br />
7. 1st and Last Page photocopies of Mother&#8217;s old passport.</p>
<p id="yui_3_2_0_1_1324529642328333">Key Notes:<br />
1. All photocopies should be self-attested (by both parents preferrably).<br />
2. Take two copies of the documents. Make two sets, and carry originals with you for verification.<br />
3. Parents need to sign aside wherever thumb impression is required (OTHER THAN THE FIRST PAGE IN THE BOX, ONLY BABY’S THUMB IMPRESSION SHOULD BE THERE).<br />
4. Make sure you fill the 2 PP forms too.<br />
5. No need to cross sign or take cross thumb impressions on any of the photos.<br />
6. ECNR required : YES for minors. IN category use &#8216;M&#8217; (which is for all children below 18 years of age).<br />
7. Fill NA/No for all fields which not applicable. Try not to leave a field blank.<br />
8. Only 3 photos were needed, i.e. the ones that were pasted on the forms.</p>
<p>For my case they said that police verification will happen as the address on both the parents passport is not the current one. Though my wife has already applied for a new passport (with the new name after marriage and the new address), but we haven&#8217;t received the new passport yet.</p>
<p>Its a super simple and a super smooth process. Please DO NOT go for agents !</p>
<p>FYI:<br />
I unnecessarily had made Annexure I which was not needed. I believe it is needed only for Tatkal Applications.</p>
<div id="inline-70">=================================================================================================</div>
<h2>FAQ :</h2>
<p><span style="color:#0000ff;">Q 1 . What will happen if  parents name does not match in Passport and Birth certificate.</span></p>
<p>(e.g. On Passport  it is  Anil Kumar Kapoor , and On Birth Cert if it is Anil Kapoor)</p>
<p>A. In case of Minor, Names on Parents Passport are valid name.</p>
<p><span style="color:#0000ff;">Q 2 . In Case either husband or wife dont have there name in others passport but they have &#8220;Nikah Nama&#8221; or a marriage certificate with translation in english.</span></p>
<p>A. Yes My dear frns this is a process even in case you are carrying your Marriage certificate with you. Still You need to take care that one of the parent name must be there in other parent passport. for example either Father name should be there in Mother passport or Mother name should be there in Father passport.</p>
<p><span style="color:#0000ff;">Q 3 . Can I check online status for karnataka.</span></p>
<p>A. In General you can go to <a href="http://passport.gov.in/">http://passport.gov.in/</a> and check the status of your passport online. there is an option &#8221; Status page&#8221; Please select the city where you have applied and check the status.</p>
<p><span style="color:#0000ff;">Q 4 : We stay outside Bangalore, and I need to apply for my 1 month old son’s passport through Tatkal. Do i need to take all my documents to RPO on the same day and also apply for tatkal there?</span></p>
<p>A : If you have all docs along with you then I will suggest you to take online tatkal appointment if it is available in your city and go to RPO this will make you work and efforts easy else you go eary and stand in a queue. Yes you can get it done on same day. Your presence will be enough</p>
<p><span style="color:#0000ff;">Q 5  : I wanted to ask whether childs presence is required for tatkal passport or not? Since my baby is just 10 days old, can I avail tatkal facility without my child’s presence.</span></p>
<p>A : One of the government FAQ site says :  It is okay if either of the parents submits the application of a minor child. Baby need not be <span style="background-color:#ffff00;">pres</span>ent if application is not under out-of-turn/Tatkal scheme.</p>
<p><span style="color:#0000ff;">Q  6 : We(me and my wife) both didnt have spouse name in our passport so I have applied for inclusion of spouse name in the passport. I have a small doubt again. Can we now apply for minors passport within this time window?In the passport site they have mentioned that if the parent has applied for passport they can mention their file reference number? Your thoughts on this?</span></p>
<p>A : The passport authorities will accept the baby’s application by showing your passport and your spouse file number stating that you had already applied for inclusion of spouse name. So even if you have applied for spouse name inclusion, you could still go about applying for a minor passport.</p>
<p><span style="color:#0000ff;">Q  7 : We are planning to apply for a passport for my 1yr old daughter. We are presently staying in Bangalore and the same address in not present in either of mine or my wife passport. We have a running bank account on my daughter’s name. Is it sufficient that if we produce this as a address proof, or should we mention any one of the address present on our passport.</span></p>
<p>A : There is no need to mention the address which is there on your passport. If you have any bank account in your or your wife name and the address mentioned in your bank is your current residential address then you can use that for residential proof. you need to submit last 12 mnths statement of your bank account.</p>
<p><span style="color:#0000ff;">Q  8 : can u tell me where should I apply for my 6 month old baby in Mumbai.</span></p>
<p>A : I am not sure if Mumbai has any utility center as Bangalore has. If not you please directly go to Passport office and apply there or googling is the best option to find more info with respect to your city <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span style="color:#0000ff;">Q  9 : I was told that I will get my minor daughter passport on 14 may but when I saw the status they are telling passport will be dispatched on 8 june -2009.</span></p>
<p>A : When you have applied for tatkal, Passport officer might have write the dispatch date on the receipt or the token, Please check what date (s)he has mentioned. If the date mentioned is 14May then keep watch on the status till 14th else I will suggest you to go to RPO and complain.<br />
If they will dispatch on 14th May you will be receiving passport in next 2 days. I will suggest some one to be at home else tracking will be difficult again.</p>
<p><span style="color:#0000ff;">Q  10 : You have mentioned, company address proof letter? What that mean? Means to submitt compnay address proof. But one has to mention its residence proof and do i need to submit attested coppy of all pages of my passport.</span></p>
<p>A : Correct, you need to get company address proof with your residence address mentioned on that. And they(Company) have to mention that you are residing on this address from past one year and You only need to submit the first and last page of your passport and no need to attest them….<br />
<span style="color:#0000ff;">Q  11 : I checked with agent and they say if one has marriage certificate then no need to enter spouse name in othr passport.</span></p>
<p>A : I am not sure if marriage certificate will do. Its an advice please confirm from passport office on this else there might be delay in your process.</p>
<p><span style="color:#0000ff;">Q 12  : When you convert the normal application to Tatkal, is it required to take an online appointment for the purpose or just standing in the queue would do? I could not find a separate category for Tatkal in the online token registration site.</span></p>
<p>A : Not required to take an online appointment. When you will enter the RPO Kormangala, There is a tatkal window adjacent to inquiry window.  Stand in the queue.[ Please refer last para before "Inputs from friends"]</p>
<p><span style="color:#0000ff;">Q 13 : In case of a minor child passport, whose father is abroad, whether consent is to be obtained to apply for a passport? If so, what is the procedure? </span></p>
<p>Ans. <strong>Yes</strong>. Consent of the spouse, who is abroad, is required for submitting the application. It should be in the form of a Sworn Affidavit duly attested by the <strong>Indian Embassy/Consulate abroad.</strong></p>
<p>Refer<strong>, <em><span style="color:#0000ff;">Inputs from friends  =&gt; </span><strong><span style="color:#0000ff;"><span style="color:#0000ff;">From Raju Bafna</span> </span></strong></em>:</strong></p>
<p>Raja Selvam has saved his experience @ =&gt; <a href="http://chennaicrusader.blogspot.com/2011/02/passport-mystery-chennai.html" rel="nofollow">http://chennaicrusader.blogspot.com/2011/02/passport-mystery-chennai.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/roopakneevan.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/roopakneevan.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/roopakneevan.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/roopakneevan.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/roopakneevan.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/roopakneevan.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/roopakneevan.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/roopakneevan.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/roopakneevan.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/roopakneevan.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/roopakneevan.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/roopakneevan.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/roopakneevan.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/roopakneevan.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&amp;blog=5504801&amp;post=64&amp;subd=roopakneevan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://roopakneevan.wordpress.com/2009/01/29/india-tatkal-passport-for-minor/feed/</wfw:commentRss>
		<slash:comments>75</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d56611e78d380a4c3ef5e47e30fec0ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">roopak</media:title>
		</media:content>
	</item>
		<item>
		<title>US Visa Interview Tips : L1 Blanket</title>
		<link>http://roopakneevan.wordpress.com/2009/01/27/us-visa-interview-tips/</link>
		<comments>http://roopakneevan.wordpress.com/2009/01/27/us-visa-interview-tips/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 17:48:18 +0000</pubDate>
		<dc:creator>Naveen Kapoor</dc:creator>
				<category><![CDATA[Misc.....]]></category>

		<guid isPermaLink="false">http://roopakneevan.wordpress.com/?p=51</guid>
		<description><![CDATA[That was a Monday morning; I was very much relaxed after two days of holidays as usual. I went to office and raise the travel request to Chennai for my visa interview. As per the process after an hr I got a mail from our training coordinator to attend the visa interview training on Tuesday. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&amp;blog=5504801&amp;post=51&amp;subd=roopakneevan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>That was a Monday morning; I was very much relaxed after two days of holidays as usual. I went to office and raise the travel request to Chennai for my visa interview. As per the process after an hr I got a mail from our training coordinator to attend the visa interview training on Tuesday. Till end of the day I was busy with arranging my documents and other process. On Tuesday Morning with relaxed mood i went to attend this training, Entering the training room where we have six members already present all discussing about visa interview process which they got to know from their frnds. As I started interacting with them I got to know that few of them are preparing for the Visa interview&#8230; Preparation for Visa interview ?? I got confused, First time i got to know that we have rejection while attending visa interview ho ho ho&#8230;. &#8220;Muzhe to pasina hi aa gaya yaar&#8230;&#8221; I did not know what to prepare&#8230; Our Interview coordinator brief us about the process and few technical things about petitions and he suggested the given below site for preparing for visa intv.</p>
<p style="text-align:justify;"><a href="http://www.immihelp.com/experience/readentries.do?category=24">http://www.immihelp.com/experience/readentries.do?category=24</a></p>
<p>&#8220;Par mera interview to kal hai&#8221; now what to prepare ?&#8230;How to prepare&#8230; ? &#8221;Bhot tension ho gayi yaar&#8221;. I started going thru the questions on the site and I found that the question pattern was similar for all the candidates who have attended for the interview. I started going thru the questions and started looking into my petition. &#8220;or maine apne aap ko finally interview(so called) ke liye tayiar kar liya&#8221;. My Interview was scheduled at 7:15 am. I reached there by 6:45. &#8220;are bap re itni bhid aab kaya karun, I requested few ppl and skipped the queue. Now I entered the office and stood in the queue waiting to submit the 25K draft. The window opened at 8:45(sarkari kaam), I submitted the draft and went to queue and started waiting for my turn when the VO called me(at 9:15 am) I went to him with a smile( Par dil main ek dar sa tha yaar) He asked me 2 question</p>
<p>1) Who is your end client?</p>
<p>2) Your previous work experience.</p>
<p>And he asked me to put my middle finger(Right hand) on scanner. And told me that I will be getting my Visa in a week time.(Hurraaahhhhhh maza aaa gaya).</p>
<p>From my experience I can say is</p>
<p>1) Stays cool and don&#8217;t be nervous or panic</p>
<p>2) Go thru question from the above mentioned site and Stick to the description in your petition for answers.</p>
<p>3) Be punctual but you should not panic if you are late. As you can say I was in queue or request</p>
<p>4) Try to wear formal cloths (Tie is not must).</p>
<p>Please let me know if you have any questions <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/roopakneevan.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/roopakneevan.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/roopakneevan.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/roopakneevan.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/roopakneevan.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/roopakneevan.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/roopakneevan.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/roopakneevan.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/roopakneevan.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/roopakneevan.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/roopakneevan.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/roopakneevan.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/roopakneevan.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/roopakneevan.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&amp;blog=5504801&amp;post=51&amp;subd=roopakneevan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://roopakneevan.wordpress.com/2009/01/27/us-visa-interview-tips/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d56611e78d380a4c3ef5e47e30fec0ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">roopak</media:title>
		</media:content>
	</item>
		<item>
		<title>Java Concept : Why no multiple inheritance</title>
		<link>http://roopakneevan.wordpress.com/2009/01/14/java-concept-why-no-multiple-inheritance/</link>
		<comments>http://roopakneevan.wordpress.com/2009/01/14/java-concept-why-no-multiple-inheritance/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 10:55:59 +0000</pubDate>
		<dc:creator>Naveen Kapoor</dc:creator>
				<category><![CDATA[Java Concepts : questions]]></category>

		<guid isPermaLink="false">http://roopakneevan.wordpress.com/?p=56</guid>
		<description><![CDATA[Please refer the below artical for the beautiful Explaination : http://venkatsadasivam.wordpress.com/2008/08/02/why-multiple-inheritance-is-not-allowed-in-java/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&amp;blog=5504801&amp;post=56&amp;subd=roopakneevan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Please refer the below artical for the beautiful Explaination :</p>
<p><a href="http://venkatsadasivam.wordpress.com/2008/08/02/why-multiple-inheritance-is-not-allowed-in-java/">http://venkatsadasivam.wordpress.com/2008/08/02/why-multiple-inheritance-is-not-allowed-in-java/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/roopakneevan.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/roopakneevan.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/roopakneevan.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/roopakneevan.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/roopakneevan.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/roopakneevan.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/roopakneevan.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/roopakneevan.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/roopakneevan.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/roopakneevan.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/roopakneevan.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/roopakneevan.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/roopakneevan.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/roopakneevan.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&amp;blog=5504801&amp;post=56&amp;subd=roopakneevan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://roopakneevan.wordpress.com/2009/01/14/java-concept-why-no-multiple-inheritance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d56611e78d380a4c3ef5e47e30fec0ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">roopak</media:title>
		</media:content>
	</item>
		<item>
		<title>Introduction : IBM &#8211; WebSphere Integration Developer( WID)</title>
		<link>http://roopakneevan.wordpress.com/2009/01/13/ibm-websphere-intigration-developer-wid/</link>
		<comments>http://roopakneevan.wordpress.com/2009/01/13/ibm-websphere-intigration-developer-wid/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 14:44:27 +0000</pubDate>
		<dc:creator>Naveen Kapoor</dc:creator>
				<category><![CDATA[Web Application]]></category>

		<guid isPermaLink="false">http://roopakneevan.wordpress.com/?p=48</guid>
		<description><![CDATA[WID : WebSphere Integration Developer(WID) is a business integration product from IBM. It enables user to create business processes that integrate applications and data. Business Process : A business process is a defined set of business activities that represent the steps required to achieve a business objective. A business process consists of two main parts: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&amp;blog=5504801&amp;post=48&amp;subd=roopakneevan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>WID : WebSphere Integration Developer(WID) is a business integration product from IBM. It enables user to create business processes that integrate applications and data.</p>
<p>Business Process : A business process is a defined set of business activities that represent the steps required to achieve a business objective.</p>
<p>A business process consists of two main parts:</p>
<p>    * Interface file<br />
    * Business process file</p>
<p>When you create a business process through WID, you can choose to have a default Web Services Description Language (WSDL) interface file. Or you can choose to use an existing WSDL file.</p>
<p>The WSDL interface file exposes the functionality of the business process and enables clients to interact with the process.</p>
<p>In WebSphere Integration Developer, business processes are automatically defined using the Business Process Execution Language (BPEL) specification,which is an open standard that is compatible with the WSDL specification.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/roopakneevan.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/roopakneevan.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/roopakneevan.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/roopakneevan.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/roopakneevan.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/roopakneevan.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/roopakneevan.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/roopakneevan.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/roopakneevan.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/roopakneevan.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/roopakneevan.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/roopakneevan.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/roopakneevan.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/roopakneevan.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&amp;blog=5504801&amp;post=48&amp;subd=roopakneevan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://roopakneevan.wordpress.com/2009/01/13/ibm-websphere-intigration-developer-wid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d56611e78d380a4c3ef5e47e30fec0ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">roopak</media:title>
		</media:content>
	</item>
		<item>
		<title>Base64 Encoding</title>
		<link>http://roopakneevan.wordpress.com/2009/01/09/base64-encoding/</link>
		<comments>http://roopakneevan.wordpress.com/2009/01/09/base64-encoding/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 07:27:31 +0000</pubDate>
		<dc:creator>Naveen Kapoor</dc:creator>
				<category><![CDATA[Misc.....]]></category>

		<guid isPermaLink="false">http://roopakneevan.wordpress.com/?p=41</guid>
		<description><![CDATA[Base64 Encoding :  Base64 encoding is a use to encodes arbitrary binary data as a string composed from a set of 64 characters. The character constitute of a 64 distinct ASCII characters,  &#8221;A&#8221; -  &#8220;Z&#8221; &#8220;a&#8221; -  &#8220;z&#8221; &#8220;0&#8243; -  &#8220;9&#8243; &#8220;+&#8221; , &#8220;/&#8221;  For example, using this character set the 40-bit data:  01001000 01100101 01101100 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&amp;blog=5504801&amp;post=41&amp;subd=roopakneevan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><em><span style="text-decoration:underline;">Base64 Encoding</span></em></strong> :  Base64 encoding is a use to encodes arbitrary binary data as a string composed from a set of 64 characters. The character constitute of a 64 distinct ASCII characters,</p>
<p> &#8221;A&#8221; -  &#8220;Z&#8221;</p>
<p>&#8220;a&#8221; -  &#8220;z&#8221;</p>
<p>&#8220;0&#8243; -  &#8220;9&#8243;</p>
<p>&#8220;+&#8221; , &#8220;/&#8221;</p>
<p> For example, using this character set the 40-bit data:</p>
<p> 01001000 01100101 01101100 01101100 01101111 cBase64 encoding for above binary data is : SGVsbG8=</p>
<p>Where &#8220;=&#8221; character is a padding character.</p>
<p> <strong><span style="text-decoration:underline;">Why Base64 Encoding</span></strong>.</p>
<p> To transmit binary data on the communication channel that is designated to transmit the character data, like Emails. In case user want a binary image thru mail, User can apply base64 encoding on image Binary data and transmit the same thru mail. As Base64 encoding use only 64 character and these 64 characters can be represented with just 6 Bits</p>
<p> <strong><span style="text-decoration:underline;">How it works</span>:</strong></p>
<p> lets take the above example :</p>
<p> <strong><em><span style="text-decoration:underline;">Initals Binary Data</span>:</em></strong></p>
<p><strong><span style="color:#ff0000;">010010</span><span style="color:#008000;">00 0110</span><span style="color:#ff0000;">0101 01</span><span style="color:#339966;">101100</span></strong> 01101100 01101111 &#8230;&#8230;&#8230;&#8230;&#8230;</p>
<p> <strong><em><span style="text-decoration:underline;">To Result Bytes</span></em></strong></p>
<p>XX<span style="color:#ff0000;"><strong>010010</strong></span>  XX<span style="color:#008000;"><strong>000110</strong></span>  XX<span style="color:#ff0000;"><strong>010101</strong></span>  XX<span style="color:#008000;"><strong>101100</strong></span> &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..</p>
<p><strong><em><span style="text-decoration:underline;">Final Result Chars</span></em></strong></p>
<p>    <strong><span style="color:#ff0000;">S   </span></strong>                <span style="color:#008000;"><strong>G </strong></span>               <strong><span style="color:#ff0000;">V </span></strong>                 <strong><span style="color:#008000;">t   </span></strong>  &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..</p>
<p><strong><em><span style="text-decoration:underline;"> Encoding Process :</span></em></strong></p>
<ul type="disc">
<li>Divid the input bytes stream into blocks of 3 bytes.</li>
<li>Divid the 24 bits of a 3-byte block into 4 groups of 6 bits.</li>
<li>Map each group of 6 bits to 1 printable character, based on the 6-bit value.</li>
<li>If the last 3-byte block has only 1 byte of input data, pad 2 bytes of zero (\x0000). (As we need to make the bits count to 24 so that we can divide it in 4 groups of 6 bits) After encoding it as a normal block, override the last 2 characters with 2 equal signs (==), so the decoding process knows 2 bytes of zero were padded.</li>
<li>If the last 3-byte block has only 2 bytes of input data, pad 1 byte of zero (\x00). (As we need to make the bits count to 24 so that we can divide it in 4 groups of 6 bits)  After encoding it as a normal block, override the last 1 character with 1 equal signs (=), so the decoding process knows 1 byte of zero was padded.</li>
<li>Carriage return (\r) and new line (\n) are inserted into the output character stream. They will be ignored by the decoding process.</li>
</ul>
<p>You can refer :</p>
<ul>
<li>1) <a href="http://www.herongyang.com/encoding/Base64-Encoding-Algorithm.html">http://www.herongyang.com/encoding/Base64-Encoding-Algorithm.html</a> for Base64 Encoding algorithm</li>
<li>2) <a href="http://www.herongyang.com/encoding/Base64-Sun-Java-Implementation.html">http://www.herongyang.com/encoding/Base64-Sun-Java-Implementation.html</a> for implementation of the Base64 algorithm</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/roopakneevan.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/roopakneevan.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/roopakneevan.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/roopakneevan.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/roopakneevan.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/roopakneevan.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/roopakneevan.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/roopakneevan.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/roopakneevan.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/roopakneevan.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/roopakneevan.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/roopakneevan.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/roopakneevan.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/roopakneevan.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&amp;blog=5504801&amp;post=41&amp;subd=roopakneevan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://roopakneevan.wordpress.com/2009/01/09/base64-encoding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d56611e78d380a4c3ef5e47e30fec0ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">roopak</media:title>
		</media:content>
	</item>
		<item>
		<title>Java Concepts : Serialization</title>
		<link>http://roopakneevan.wordpress.com/2008/12/29/java-concepts-serialization/</link>
		<comments>http://roopakneevan.wordpress.com/2008/12/29/java-concepts-serialization/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 09:45:16 +0000</pubDate>
		<dc:creator>Naveen Kapoor</dc:creator>
				<category><![CDATA[Java Concepts : questions]]></category>

		<guid isPermaLink="false">http://roopakneevan.wordpress.com/?p=23</guid>
		<description><![CDATA[Java allows us to create reusable objects in memory. All of those objects exist only as long as the Java virtual machine. With object serialization, we can flatten our objects and reuse them in powerful ways.  Object serialization is the process of saving an object&#8217;s state to a sequence of bytes, and also rebuilding those [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&amp;blog=5504801&amp;post=23&amp;subd=roopakneevan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Java allows us to create reusable objects in memory. All of those objects exist only as long as the Java virtual machine. With object serialization, we can flatten our objects and reuse them in powerful ways.</p>
<p> Object serialization is the process of saving an object&#8217;s state to a sequence of bytes, and also rebuilding those bytes into a live object at some future time.</p>
<p>There are three different ways to perform serialization -</p>
<p>1)         Using the default protocol,</p>
<p>2)         Customizing the default protocol, and</p>
<p>3)         Creating your own protocol</p>
<p> 1) Lets learn the first one first (i.e.)  Default Protocol: </p>
<p> To make an object as a persistent object, an object is marked serializable by implementing the java.io.Serializable interface  which signifies to the existing API&#8217;s that the object can be flatten into bytes abd vice-versa.</p>
<p> Example :</p>
<p>                        import java.io.Serializable;</p>
<p>                        public class PersistentExample implements Serializable</p>
<p>                        {</p>
<p>                                    private String persist_String;</p>
<p>                                     public PersistentExample()</p>
<p>                                    {</p>
<p>                                                persist_String= &#8220;Naveen Kapoor&#8221;;</p>
<p>                                    }</p>
<p>                                     public String getPersistString()</p>
<p>                                    {</p>
<p>                                                return persist_String;</p>
<p>                                    }</p>
<p>                        }</p>
<p>Next step is to actually persisting an object and this we can achieve with java.io.ObjectOutputStream class. This class is a filter stream and this is wrapped around a low level byte stream known as node stream which take care of serialization protocol for us.</p>
<p>This node stream is capable of writing to a file system or across the sockets.</p>
<p>Example :</p>
<p>import java.io.ObjectOutputStream;</p>
<p>import java.io.FileOutputStream;</p>
<p>import java.io.IOException;</p>
<p>public class CustomizeProtocol</p>
<p>{</p>
<p>            public static void main(String [] args)</p>
<p>            {</p>
<p>                        String filename = &#8220;custiomFile.txt&#8221;;</p>
<p>                        if(args.length &gt; 0)</p>
<p>                        {</p>
<p>                                    filename = args[0];</p>
<p>                        }</p>
<p>                        PersistentExample Persist_Example = new PersistentExample ();</p>
<p>                        FileOutputStream fos = null;</p>
<p>                        ObjectOutputStream out = null;</p>
<p>                        try</p>
<p>                        {</p>
<p>                                    fos = new FileOutputStream(filename);</p>
<p>                                    out = new ObjectOutputStream(fos);</p>
<p>                                    out.writeObject(Persist_Example); //</p>
<p>                                    out.close();</p>
<p>                        }</p>
<p>                        catch(IOException ex)</p>
<p>                        {</p>
<p>                                    ex.printStackTrace();</p>
<p>                        }</p>
<p>            }</p>
<p>}</p>
<p>above code : out.writeObject(Persist_Example) will trigger the serialization mechanism and will flatten the object to the file.</p>
<p> Not all objects in java are persistent, Only objects that implements serializable interfaces are persistent. Certain system level classes such as thread, outputStream and its subclasses are not serializable. And it would not make any sense if they were. for example, Thread running in my JVM would be using my system&#8217;s memory. Persisting it and trying to run it in your JVM would make no sense at all.</p>
<p> If we have a class that contains an instance of a thread, Is it possible to persist that class.</p>
<p>Yes&#8230; As long as we tell serialization process by marking our class&#8217;s thread object as Transient.</p>
<p>The bottom line: you must mark transient any field that either cannot be serialized or any field you do not want serialized.</p>
<p>************************************************************</p>
<p> <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Your comments and corrections are most welcome <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/roopakneevan.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/roopakneevan.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/roopakneevan.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/roopakneevan.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/roopakneevan.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/roopakneevan.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/roopakneevan.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/roopakneevan.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/roopakneevan.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/roopakneevan.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/roopakneevan.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/roopakneevan.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/roopakneevan.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/roopakneevan.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&amp;blog=5504801&amp;post=23&amp;subd=roopakneevan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://roopakneevan.wordpress.com/2008/12/29/java-concepts-serialization/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d56611e78d380a4c3ef5e47e30fec0ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">roopak</media:title>
		</media:content>
	</item>
	</channel>
</rss>
