<?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>Wed, 23 Sep 2009 00:36:08 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='roopakneevan.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/bcf816084900ea4e9e9f7488204d7853?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Roopak Neevan&#039;s Blog</title>
		<link>http://roopakneevan.wordpress.com</link>
	</image>
			<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 those who knows Java. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&blog=5504801&post=179&subd=roopakneevan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><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>
  <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/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&blog=5504801&post=179&subd=roopakneevan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://roopakneevan.wordpress.com/2009/09/16/play-housee-tambola-bingo-online/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>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;
  &#60;DIV id=&#8221;header&#8221;&#62;
    &#60;h1&#62;Ajax-powered Dropdown example&#60;/h1&#62;
  &#60;/DIV&#62;
  &#60;DIV id = &#8220;control1&#8243;&#62;
    [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&blog=5504801&post=149&subd=roopakneevan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><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>
  <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/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&blog=5504801&post=149&subd=roopakneevan&ref=&feed=1" /></div>]]></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 I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&blog=5504801&post=92&subd=roopakneevan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><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://s.wordpress.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" 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" 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" alt="Fig 2." width="578" height="327" /><img class="alignnone size-full wp-image-129" title="fig3" src="http://roopakneevan.files.wordpress.com/2009/07/fig3.jpg" alt="Fig 3." width="577" height="326" /><img class="alignnone size-full wp-image-130" title="fig4" src="http://roopakneevan.files.wordpress.com/2009/07/fig4.jpg" alt="Fig 4." width="573" height="441" /><img class="alignnone size-full wp-image-131" title="fig5" src="http://roopakneevan.files.wordpress.com/2009/07/fig5.jpg" alt="Fig 5." width="569" height="364" /><img class="alignnone size-full wp-image-132" title="fig6" src="http://roopakneevan.files.wordpress.com/2009/07/fig6.jpg" alt="Fig 6." width="569" height="625" /></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" alt="Fig 7." width="562" height="315" /></p>
  <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/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&blog=5504801&post=92&subd=roopakneevan&ref=&feed=1" /></div>]]></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 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&blog=5504801&post=64&subd=roopakneevan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><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://s.wordpress.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="http://roopakneevan.wordpress.com/wp-admin/ppapp1h.pdf">[ Hindi</a> /  <a href="http://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 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>
<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://s.wordpress.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>
  <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/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&blog=5504801&post=64&subd=roopakneevan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://roopakneevan.wordpress.com/2009/01/29/india-tatkal-passport-for-minor/feed/</wfw:commentRss>
		<slash:comments>21</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&blog=5504801&post=51&subd=roopakneevan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><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://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <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/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&blog=5504801&post=51&subd=roopakneevan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://roopakneevan.wordpress.com/2009/01/27/us-visa-interview-tips/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>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&blog=5504801&post=56&subd=roopakneevan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><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>
  <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/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&blog=5504801&post=56&subd=roopakneevan&ref=&feed=1" /></div>]]></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:
    * Interface [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&blog=5504801&post=48&subd=roopakneevan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><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>
  <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/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&blog=5504801&post=48&subd=roopakneevan&ref=&feed=1" /></div>]]></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 01101100 01101111 cBase64 encoding for above [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&blog=5504801&post=41&subd=roopakneevan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><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>
  <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/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&blog=5504801&post=41&subd=roopakneevan&ref=&feed=1" /></div>]]></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 bytes [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&blog=5504801&post=23&subd=roopakneevan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><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://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Your comments and corrections are most welcome <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <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/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&blog=5504801&post=23&subd=roopakneevan&ref=&feed=1" /></div>]]></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>
		<item>
		<title>JSF Tips : When to Customize UI component</title>
		<link>http://roopakneevan.wordpress.com/2008/12/26/jsf-tips-when-to-customize-ui-component/</link>
		<comments>http://roopakneevan.wordpress.com/2008/12/26/jsf-tips-when-to-customize-ui-component/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 12:13:28 +0000</pubDate>
		<dc:creator>Naveen Kapoor</dc:creator>
				<category><![CDATA[Web Application]]></category>

		<guid isPermaLink="false">http://roopakneevan.wordpress.com/?p=11</guid>
		<description><![CDATA[ Java Server Faces is a Java framework for building user interfaces for Web applications. It simplifies the development of the user interface, which is one of the more difficult parts of Web development. JSF technology offers a basic set of standard, reusable UI components which allows developers to quickly and easily build User Interface for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&blog=5504801&post=11&subd=roopakneevan&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span style="font-size:10pt;font-family:Arial;"><span style="font-size:10pt;font-family:Arial;"> </span></span>Java Server Faces is a Java framework for building user interfaces for Web applications. It simplifies the development of the user interface, which is one of the more difficult parts of Web development. JSF technology offers a basic set of standard, reusable UI components which allows developers to quickly and easily build User Interface for web applications. But application may requires a new functionality or It may need an entire new component and JSF allows developer to extent the standard UI Components or to create new custom components.</p>
<p><strong>When user need custom UI Components in JSF</strong></p>
<p>Users must need to identify if they really need to create custom components taking few points into consideration</p>
<ul>
<li>1) User must check if JSF community may already have the solution to your problem.</li>
<li>2) If user need to add new functionality to the standard components</li>
<li>3) You need to aggregate components to create a new component that has its own unique behavior.</li>
</ul>
<p><strong>When user need custom Renderer</strong></p>
<p>User need to ensure if the component class performs the below operations</p>
<ul>
<li>1) Encoding: Converting current local values of the component to display the in the response</li>
<li>2) Decoding: Where the incoming request parameters are converted to the component local values</li>
</ul>
<p>JSF supports two ways to handle Decoding and Encoding</p>
<ul>
<li>Direct implementation: Where the component class itself will implement decoding and encoding.</li>
<li>Delegated implementation: Where user have to implement decoding and encoding in a different renderer class.</li>
</ul>
<p>Using Delegated implementation user can associate custom components with the different renderers.</p>
<p><strong>Ingredients of a JSF UI Components </strong></p>
<p>The various ingredients that constitute a JSF UI component are as below </p>
<ul>
<li><strong>UIComponent Class:</strong> This is the Java class that represents the core behavior of the component. This class is derived from either UIComponentBase or directly from UIComponent. You can also extend from an existing base UIComponent class, such as UIInput.</li>
<li><strong>UIComponentTag Class:</strong> This is a JSP tag handler class that allows the UI component used in a JSP. It associates a separate Renderer class with a UIComponent class. And also implements setProperties method that stores the ValueExpression or MethodExpression object for each component property so that the component class can retrieve the expression object later.</li>
<li><strong>Tag Library Descriptor File:</strong> A standard J2EE JSP tag library descriptor (TLD) file that associates the tag handler class with a tag in a JSP page.</li>
<li><strong>Renderer Class:</strong> A class that contains code to render a UIComponent. It can also contain code for encoding and decoding.</li>
<li><strong>Associated Helper Classes: </strong>A collection of standard or custom helper classes such as Converter, Validator, and ActionListener.</li>
</ul>
<p style="text-align:justify;margin:6pt 0 6pt .25in;"><span style="font-size:10pt;"><span style="font-family:Arial;">To understand custom UI Components lets divide the concepts into three parts.</span></span></p>
<p style="text-indent:-.25in;text-align:justify;margin:6pt 0 6pt .5in;"><span style="font-size:10pt;"><span><span style="font-family:Arial;">1)</span><span style="font:7pt 'Times New Roman';">       </span></span></span><span style="font-size:10pt;"><span style="font-family:Arial;">Custom Tags</span></span></p>
<p style="text-indent:-.25in;text-align:justify;margin:6pt 0 6pt .5in;"><span style="font-size:10pt;"><span><span style="font-family:Arial;">2)</span><span style="font:7pt 'Times New Roman';">       </span></span></span><span style="font-size:10pt;"><span style="font-family:Arial;">Custom components using standard UI Components</span></span></p>
<p style="text-indent:-.25in;text-align:justify;margin:6pt 0 6pt .5in;"><span style="font-size:10pt;"><span><span style="font-family:Arial;">3)</span><span style="font:7pt 'Times New Roman';">       </span></span></span><span style="font-size:10pt;"><span style="font-family:Arial;">Custom components using Renderer classes</span></span> </p>
<p style="padding-left:30px;"><strong>Requirement for Custom Tags, Custom Components and  </strong><strong>Renderers</strong></p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="163" valign="top">Custom Item</td>
<td width="84" valign="top">Component class</td>
<td width="84" valign="top">Component tag class</td>
<td width="84" valign="top">Renderer Class</td>
<td width="97" valign="top">Tag Lib Desc. (TLD)</td>
</tr>
<tr>
<td width="163" valign="top">Custom Tag</td>
<td width="84" valign="top">
<blockquote><p>Y</p></blockquote>
</td>
<td width="84" valign="top">
<blockquote><p>Y</p></blockquote>
</td>
<td width="84" valign="top">
<blockquote><p>x</p></blockquote>
</td>
<td width="97" valign="top">
<blockquote><p>Y</p></blockquote>
</td>
</tr>
<tr>
<td width="163" valign="top">Custom Component / Direct Implementation</td>
<td width="84" valign="top">
<blockquote><p>Y</p></blockquote>
</td>
<td width="84" valign="top">
<blockquote><p>Y</p></blockquote>
</td>
<td width="84" valign="top">
<blockquote><p>x</p></blockquote>
</td>
<td width="97" valign="top">
<blockquote><p>Y</p></blockquote>
</td>
</tr>
<tr>
<td width="163" valign="top">Renderer / Delegated Implementation</td>
<td width="84" valign="top">
<blockquote><p>Y</p></blockquote>
</td>
<td width="84" valign="top">
<blockquote><p>Y</p></blockquote>
</td>
<td width="84" valign="top">
<blockquote><p>Y</p></blockquote>
</td>
<td width="97" valign="top">
<blockquote><p>Y</p></blockquote>
</td>
</tr>
</tbody>
</table>
<p> </p>
<p><strong> </strong></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/roopakneevan.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/roopakneevan.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/roopakneevan.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/roopakneevan.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/roopakneevan.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/roopakneevan.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/roopakneevan.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/roopakneevan.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/roopakneevan.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/roopakneevan.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=roopakneevan.wordpress.com&blog=5504801&post=11&subd=roopakneevan&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://roopakneevan.wordpress.com/2008/12/26/jsf-tips-when-to-customize-ui-component/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>
	</channel>
</rss>