<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;AkcNRnk4fSp7ImA9WxNUF00.&quot;"><id>tag:blogger.com,1999:blog-2859304543308190020</id><updated>2009-11-09T00:51:37.735+05:30</updated><title>Java,Java,Java......</title><subtitle type="html">JAVA EVERYWHERE</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://javachamp.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://javachamp.blogspot.com/" /><link rel="hub" href="http://pubsubhubbub.appspot.com/" /><author><name>Vinod Kumar Kashyap</name><uri>http://www.blogger.com/profile/04741524013101585935</uri><email>noreply@blogger.com</email></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by/2.0/" /><link rel="self" href="http://feeds.feedburner.com/javachamp" type="application/atom+xml" /><feedburner:emailServiceId>javachamp</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/javachamp" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.plusmo.com/add?url=http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare href="http://my.feedlounge.com/external/subscribe?url=http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp" src="http://static.feedlounge.com/buttons/subscribe_0.gif">Subscribe with FeedLounge</feedburner:feedFlare><feedburner:feedFlare href="http://www.thefreedictionary.com/_/hp/AddRSS.aspx?http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp" src="http://img.tfd.com/hp/addToTheFreeDictionary.gif">Subscribe with The Free Dictionary</feedburner:feedFlare><feedburner:feedFlare href="http://www.bitty.com/manual/?contenttype=rssfeed&amp;contentvalue=http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp" src="http://www.bitty.com/img/bittychicklet_91x17.gif">Subscribe with Bitty Browser</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare href="http://www.yourminis.com/subscribe.aspx?u=http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp" src="http://www.yourminis.com/images/addtoyourminisbadge.gif">Subscribe with Yourminis.com</feedburner:feedFlare><feedburner:feedFlare href="http://download.attensa.com/app/get_attensa.html?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp" src="http://www.attensa.com/blogs/attensa/WindowsLiveWriter/BadgeredintoBadges_10C02/attensa_feed_button5.gif">Subscribe with Attensa for Outlook</feedburner:feedFlare><feedburner:feedFlare href="http://www.webwag.com/wwgthis.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp" src="http://www.webwag.com/images/wwgthis.gif">Subscribe with Webwag</feedburner:feedFlare><feedburner:feedFlare href="http://hub.netomat.net/account/account.autoSubscribe.jspa?urls=http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp" src="http://www.netomat.net/blogger/images/icon_netomat_feedbutton.gif">Subscribe with netomat Hub</feedburner:feedFlare><feedburner:feedFlare href="http://www.dailyrotation.com/index.php?feed=http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp" src="http://www.dailyrotation.com/rss-dr2.gif">Subscribe with Daily Rotation</feedburner:feedFlare><feedburner:feedFlare href="http://www.podcastready.com/oneclick_bookmark.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp" src="http://www.podcastready.com/images/podcastready_button.gif">Subscribe with Podcast Ready</feedburner:feedFlare><feedburner:feedFlare href="http://www.flurry.com/pushRssFeed.do?r=fb&amp;url=http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp" src="http://www.flurry.com/images/flurry_rss_logo2.gif">Subscribe with Flurry</feedburner:feedFlare><feedburner:feedFlare href="https://intouch.particls.com/download/?mode=2&amp;feed=http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp" src="https://intouch.particls.com/resources/buttons/it-button2.gif">Subscribe with Particls</feedburner:feedFlare><feedburner:feedFlare href="http://www.addtoany.com/?linkname=Java%2CJava%2CJava......&amp;linkurl=http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp&amp;type=feed" src="http://www.addtoany.com/addfr-b.gif">Add to Any Feed Reader</feedburner:feedFlare><feedburner:feedFlare href="http://www.fwicki.com/users/default.aspx?addfeed=http%3A%2F%2Ffeeds.feedburner.com%2Fjavachamp" src="http://www.fwicki.com/images/ui/fwicki_clicklet.png">Subscribe with fwicki</feedburner:feedFlare><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><entry gd:etag="W/&quot;DUYAQns_eip7ImA9WxNQF0s.&quot;"><id>tag:blogger.com,1999:blog-2859304543308190020.post-1877207687025030475</id><published>2009-08-31T09:38:00.003+05:30</published><updated>2009-09-24T10:09:03.542+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-24T10:09:03.542+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="java" /><category scheme="http://www.blogger.com/atom/ns#" term="indic" /><title>IndicThreads.com Conference On Java</title><content type="html">&lt;a href="http://i323.photobucket.com/albums/nn464/vinodkashyap/indicthreads-java-125-501.gif" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5375976467707311138" src="http://4.bp.blogspot.com/_df6HEbcpsBM/SptOHT6NtCI/AAAAAAAAB-c/brx-t2t7gAI/s320/250-250-1r-150x150.gif" style="float: right; height: 150px; margin-bottom: 10px; margin-left: 10px; margin-right: 0px; margin-top: 0px; width: 150px;" /&gt;&lt;/a&gt;&lt;br /&gt;
IndicThreads.com Conference On Java is going to held on 11th and 12th Dec '09 at Pune, India.&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;This is very intersting event especially for java passioniors and lovers. You can join the conference by visiting the website &lt;a href="http://j09.indicthreads.com/"&gt;http://j09.indicthreads.com/&lt;/a&gt; or clicking on the logo on the right side of this page displaying the event like this. &lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;I hope you will enjoy the event and the future of java and many other intersting technologies. I love to be there.&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2859304543308190020-1877207687025030475?l=javachamp.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/javachamp/~4/PX89xRwEG8A" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://javachamp.blogspot.com/feeds/1877207687025030475/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://javachamp.blogspot.com/2009/08/indicthreadscom-conference-on-java.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/1877207687025030475?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/1877207687025030475?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/javachamp/~3/PX89xRwEG8A/indicthreadscom-conference-on-java.html" title="IndicThreads.com Conference On Java" /><author><name>Vinod Kumar Kashyap</name><uri>http://www.blogger.com/profile/04741524013101585935</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="15107186906936325442" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_df6HEbcpsBM/SptOHT6NtCI/AAAAAAAAB-c/brx-t2t7gAI/s72-c/250-250-1r-150x150.gif" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://javachamp.blogspot.com/2009/08/indicthreadscom-conference-on-java.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkACSHs6cCp7ImA9WxJaGEU.&quot;"><id>tag:blogger.com,1999:blog-2859304543308190020.post-7577303770847429039</id><published>2009-08-10T12:49:00.000+05:30</published><updated>2009-08-10T12:49:29.518+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-08-10T12:49:29.518+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="weblogic portal example" /><title>Weblogic Portal Example</title><content type="html">&lt;span style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;div&gt;Here I am going to make a simple example of Weblogic Portal.&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Minimum requirements:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Weblogic Portals&lt;/li&gt;
&lt;li&gt;Weblogic Workshop&lt;/li&gt;
&lt;li&gt;Weblogic Server&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;Basically when you download weblogic portals then you will have all the necessary things already installed. It can be downloaded from &lt;a href="http://www.oracle.com/technology/software/products/ias/bea_main.html"&gt;http://www.oracle.com/technology/software/products/ias/bea_main.html&lt;/a&gt;&lt;/div&gt;&lt;div&gt;You have to download &lt;b&gt;Oracle WebLogic Portal 10.3&lt;/b&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;Step 1: Setting up the Weblogic Workshop&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Open Weblogic Workshop from &lt;i&gt;Programs -&amp;gt; Oracle Weblogic -&amp;gt; Workshop for Weblogic&lt;/i&gt;.&lt;/li&gt;
&lt;li&gt;Change the perspective to Portal i.e. &lt;i&gt;Window -&amp;gt; Open Perspective -&amp;gt; Others -&amp;gt; Portal&lt;/i&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step 2: Create sample application&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Create new Portal EAR project from &lt;i&gt;File -&amp;gt; New -&amp;gt; Portal EAR Project&lt;/i&gt;.&lt;/li&gt;
&lt;li&gt;Name it sampleEAR.&lt;/li&gt;
&lt;li&gt;Click next and proceeds with default setting.&lt;/li&gt;
&lt;li&gt;Create new PortalWEB project from &lt;i&gt;File -&amp;gt; New -&amp;gt; Portal Web Project&lt;/i&gt;.&lt;/li&gt;
&lt;li&gt;Name it sampleWEB.&lt;/li&gt;
&lt;li&gt;Associate it with sampleEAR by clicking on checkbox if it is not selected and proceeds without any change.&lt;/li&gt;
&lt;li&gt;Now select the WebContent, right click and select &lt;i&gt;New -&amp;gt; Portal&lt;/i&gt;.&lt;/li&gt;
&lt;li&gt;Name it myportal and proceeds.&lt;/li&gt;
&lt;li&gt;You will see default portal in the workshop.&lt;/li&gt;
&lt;li&gt;Create a jsp e.g. myjsp and then right click on it and click on Generate Portlet.&lt;/li&gt;
&lt;li&gt;This will create a myjsp.portlet in application.&lt;/li&gt;
&lt;li&gt;You can drag it from the Design Panel to the Portal.&lt;/li&gt;
&lt;li&gt;Let’s create another portal which will access the url of the other website.&lt;/li&gt;
&lt;li&gt;Right click on WebContent select&lt;i&gt; New -&amp;gt; Portlet&lt;/i&gt;.&lt;/li&gt;
&lt;li&gt;Name it myportlet and click next.&lt;/li&gt;
&lt;li&gt;Select Browser (URL) Portlet.&lt;/li&gt;
&lt;li&gt;On next screen in the Content URL input box type &lt;a href="http://www.google.com./"&gt;http://www.google.com.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Check the checkboxes :&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;Has TitleBar&lt;/li&gt;
&lt;li&gt;Minimizable&lt;/li&gt;
&lt;li&gt;Maximizable&lt;/li&gt;
&lt;li&gt;Floatable&lt;/li&gt;
&lt;li&gt;Deletable&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;Click next&lt;/li&gt;
&lt;li&gt;Drag the portlet onto the portal.&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;Step 3: Deploy on server&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Right click on the sampleWEB and select &lt;i&gt;Run As -&amp;gt; Run on Server&lt;/i&gt;.&lt;/li&gt;
&lt;li&gt;It will open the server window.&lt;/li&gt;
&lt;li&gt;Select the Oracle Weblogic server from the dialog box and Click next.&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;These are the minimum steps to build a sample portal.&lt;/div&gt;&lt;div&gt;You can access the application by: &lt;a href="http://localhost:7001/sampleWEB"&gt;http://localhost:7001/sampleWEB&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Enjoy the sample..&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2859304543308190020-7577303770847429039?l=javachamp.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/javachamp/~4/a7bXEOQETjo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://javachamp.blogspot.com/feeds/7577303770847429039/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://javachamp.blogspot.com/2009/08/weblogic-portal-example.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/7577303770847429039?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/7577303770847429039?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/javachamp/~3/a7bXEOQETjo/weblogic-portal-example.html" title="Weblogic Portal Example" /><author><name>Vinod Kumar Kashyap</name><uri>http://www.blogger.com/profile/04741524013101585935</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="15107186906936325442" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://javachamp.blogspot.com/2009/08/weblogic-portal-example.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A08HQnk8eSp7ImA9WxJUFkk.&quot;"><id>tag:blogger.com,1999:blog-2859304543308190020.post-8269016462967546407</id><published>2009-07-15T14:53:00.001+05:30</published><updated>2009-07-15T14:53:53.771+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-15T14:53:53.771+05:30</app:edited><title>Java + You</title><content type="html">&lt;object id="flashObj" width="300" height="225" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,47,0"&gt;&lt;param name="movie" value="http://c.brightcove.com/services/viewer/federated_f9/1640183659?isVid=1&amp;publisherID=1460825906" /&gt;&lt;param name="bgcolor" value="#FFFFFF" /&gt;&lt;param name="flashVars" value="videoId=1656454262&amp;playerID=1640183659&amp;domain=embed&amp;" /&gt;&lt;param name="base" value="http://admin.brightcove.com" /&gt;&lt;param name="seamlesstabbing" value="false" /&gt;&lt;param name="allowFullScreen" value="true" /&gt;&lt;param name="swLiveConnect" value="true" /&gt;&lt;param name="allowScriptAccess" value="always" /&gt;&lt;embed src="http://c.brightcove.com/services/viewer/federated_f9/1640183659?isVid=1&amp;publisherID=1460825906" bgcolor="#FFFFFF" flashVars="videoId=1656454262&amp;playerID=1640183659&amp;domain=embed&amp;" base="http://admin.brightcove.com" name="flashObj" width="300" height="225" seamlesstabbing="false" type="application/x-shockwave-flash" allowFullScreen="true" swLiveConnect="true" allowScriptAccess="always" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2859304543308190020-8269016462967546407?l=javachamp.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/javachamp/~4/d9LtxPuuNZA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://javachamp.blogspot.com/feeds/8269016462967546407/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://javachamp.blogspot.com/2009/07/java-you.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/8269016462967546407?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/8269016462967546407?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/javachamp/~3/d9LtxPuuNZA/java-you.html" title="Java + You" /><author><name>Vinod Kumar Kashyap</name><uri>http://www.blogger.com/profile/04741524013101585935</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="15107186906936325442" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://javachamp.blogspot.com/2009/07/java-you.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0QDQX84fyp7ImA9WxdUGE8.&quot;"><id>tag:blogger.com,1999:blog-2859304543308190020.post-1436614249854900351</id><published>2008-08-04T09:10:00.000+05:30</published><updated>2008-08-04T09:12:50.137+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-08-04T09:12:50.137+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="java" /><title>"Java Is Dead, Long Live Java!" – The Future of Java</title><content type="html">&lt;blockquote&gt;&lt;a href="http://java.sys-con.com/node/169595"&gt;"Java Is Dead, Long Live Java!" – The Future of Java&lt;/a&gt;&lt;br /&gt;
— 'Because of its prominence,' writes Bryan Taylor, 'Java gets a lot of attention and with it much criticism, some of it valid.' What many may not realize, Taylor notes, is that some big breakthroughs have arrived and that the Java development landscape is solving important problems. In this column he takes a view of where Java is going to go in the next year or two as these ideas gain traction.&lt;/blockquote&gt;&lt;br /&gt;
Trackback URL :&amp;nbsp; &lt;a href="http://java.sys-con.com/node/169595/trackback"&gt;Click Here&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2859304543308190020-1436614249854900351?l=javachamp.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/javachamp/~4/C1N1wgeTMGM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://javachamp.blogspot.com/feeds/1436614249854900351/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://javachamp.blogspot.com/2008/08/java-is-dead-long-live-java-future-of.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/1436614249854900351?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/1436614249854900351?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/javachamp/~3/C1N1wgeTMGM/java-is-dead-long-live-java-future-of.html" title="&quot;Java Is Dead, Long Live Java!&quot; – The Future of Java" /><author><name>Vinod Kumar Kashyap</name><uri>http://www.blogger.com/profile/04741524013101585935</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="15107186906936325442" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://javachamp.blogspot.com/2008/08/java-is-dead-long-live-java-future-of.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUcBQ38yeyp7ImA9WxdWFUU.&quot;"><id>tag:blogger.com,1999:blog-2859304543308190020.post-885160693226533937</id><published>2008-07-09T11:26:00.001+05:30</published><updated>2008-07-09T11:27:32.193+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-09T11:27:32.193+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="struts2" /><title>Struts 2.1.2 Released</title><content type="html">Yesterday when I was on Google searching for something I found that Apache had released the latest Struts 2 version which is &lt;b&gt;Struts 2.1.2&lt;/b&gt;, and promoted to "Beta" on 26 March 2008&lt;br /&gt;
&lt;br /&gt;
You can download it from &lt;a href="http://struts.apache.org/download.cgi#struts212" linkindex="10"&gt;Struts Download Page&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2859304543308190020-885160693226533937?l=javachamp.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/javachamp/~4/p7QMVLmoFZA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://javachamp.blogspot.com/feeds/885160693226533937/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://javachamp.blogspot.com/2008/07/struts-212-releases.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/885160693226533937?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/885160693226533937?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/javachamp/~3/p7QMVLmoFZA/struts-212-releases.html" title="Struts 2.1.2 Released" /><author><name>Vinod Kumar Kashyap</name><uri>http://www.blogger.com/profile/04741524013101585935</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="15107186906936325442" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://javachamp.blogspot.com/2008/07/struts-212-releases.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0QERHs-eyp7ImA9WxJRGU0.&quot;"><id>tag:blogger.com,1999:blog-2859304543308190020.post-8892213957245694927</id><published>2008-07-07T09:02:00.007+05:30</published><updated>2009-05-21T16:58:25.553+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-05-21T16:58:25.553+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="struts2 hello world example" /><category scheme="http://www.blogger.com/atom/ns#" term="struts2" /><title>Struts 2 Hello World Example</title><content type="html">I had seen many new deveopers struggling against struts2 hello world example. So I decided to write a small example.&lt;br /&gt;Below are the required libraries to run this example which are easily availabel&lt;br /&gt;&lt;br /&gt;&lt;em&gt;struts2-core-2.0.11&lt;/em&gt;&lt;br /&gt;&lt;em&gt;xwork-2.0.4&lt;/em&gt;&lt;br /&gt;&lt;em&gt;commons-logging-1.0.4&lt;/em&gt;&lt;br /&gt;&lt;em&gt;commons-logging-api-1.1&lt;/em&gt;&lt;br /&gt;&lt;em&gt;freemarker-2.3.8&lt;/em&gt;&lt;br /&gt;&lt;em&gt;ognl-2.6.11&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;The structure of the applictaion which I am following is (Eclipse IDE)&lt;br /&gt;&lt;strong&gt;Struts2Demo&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;#124;---src&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;#124; &amp;#124;----org&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;#124; &amp;#124; &amp;#124;----vinod&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;#124; &amp;#124; &amp;#124; &amp;#124;----action&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;#124; &amp;#124; &amp;#124; &amp;#124; &amp;#124;----HelloWorld।java &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;#124;---struts.xml&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;#124;---WebContent&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;#124; &amp;#124;---jsp&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;#124; &amp;#124;---HelloWorld।jsp &lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;#124;---index.jsp&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;#124;---WEB-INF&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;#124; &amp;#124;---lib&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&amp;#124; &amp;#124;---web.xml&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;It is true that different IDE's use different structure, but at last when war is build they follow same structure.&lt;br /&gt;Lets start...&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;HelloWorld.java&lt;/strong&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;package org.vinod.action;&lt;br /&gt;&lt;br /&gt;import com.opensymphony.xwork2.ActionSupport;&lt;br /&gt;&lt;br /&gt;public class HelloWorld extends ActionSupport{&lt;br /&gt;&lt;br /&gt;String greetings = null;&lt;br /&gt;&lt;br /&gt;public String execute() throws Exception {&lt;br /&gt;setGreetings("Hello World");&lt;br /&gt;return SUCCESS;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* @return the greetings&lt;br /&gt;*/&lt;br /&gt;public String getGreetings() {&lt;br /&gt;return greetings;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* @param greetings the greetings to set&lt;br /&gt;*/&lt;br /&gt;public void setGreetings(String greetings) {&lt;br /&gt;this.greetings = greetings;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;/blockquote&gt;&lt;strong&gt;HelloWorld.jsp&lt;/strong&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&amp;lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"&lt;br /&gt;pageEncoding="ISO-8859-1"%&amp;gt;&lt;br /&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&amp;gt;&lt;br /&gt;&amp;lt;%@ taglib prefix="s" uri="/struts-tags" %&amp;gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;Struts 2 Example&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;s:property value="greetings"/&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/blockquote&gt;&lt;strong&gt;index.jsp&lt;/strong&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&amp;lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"&lt;br /&gt;pageEncoding="ISO-8859-1"%&amp;gt;&lt;br /&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&amp;gt;&lt;br /&gt;&amp;lt;%@ taglib prefix="s" uri="/struts-tags" %&amp;gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;Struts 2 Example&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;s:action name="HelloWorldAction" executeResult="true"&amp;gt;&amp;lt;/s:action&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/blockquote&gt;&lt;strong&gt;struts.xml&lt;/strong&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&amp;lt;!DOCTYPE struts PUBLIC&lt;br /&gt;"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"&lt;br /&gt;"http://struts.apache.org/dtds/struts-2.0.dtd"&amp;gt;&lt;br /&gt;&amp;lt;struts&amp;gt;&lt;br /&gt;&amp;lt;package name="hello" extends="struts-default"&amp;gt;&lt;br /&gt;&amp;lt;action name="HelloWorldAction"&lt;br /&gt;class="org.vinod.action.HelloWorld"&amp;gt;&lt;br /&gt;&amp;lt;result&amp;gt;/jsp/HelloWorld.jsp&amp;lt;/result&amp;gt;&lt;br /&gt;&amp;lt;/action&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/package&amp;gt;&lt;br /&gt;&amp;lt;/struts&amp;gt;&lt;/blockquote&gt;&lt;strong&gt;web.xml&lt;/strong&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;br /&gt;&amp;lt;web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"&amp;gt;&lt;br /&gt;&amp;lt;filter&amp;gt;&lt;br /&gt;&amp;lt;filter-name&amp;gt;struts2&amp;lt;/filter-name&amp;gt;&lt;br /&gt;&amp;lt;filter-class&amp;gt;org.apache.struts2.dispatcher.FilterDispatcher&amp;lt;/filter-class&amp;gt;&lt;br /&gt;&amp;lt;/filter&amp;gt;&lt;br /&gt;&amp;lt;filter-mapping&amp;gt;&lt;br /&gt;&amp;lt;filter-name&amp;gt;struts2&amp;lt;/filter-name&amp;gt;&lt;br /&gt;&amp;lt;url-pattern&amp;gt;/*&amp;lt;/url-pattern&amp;gt;&lt;br /&gt;&amp;lt;/filter-mapping&amp;gt;&lt;br /&gt;&amp;lt;welcome-file-list&amp;gt;&lt;br /&gt;&amp;lt;welcome-file&amp;gt;index.jsp&amp;lt;/welcome-file&amp;gt;&lt;br /&gt;&amp;lt;/welcome-file-list&amp;gt;&lt;br /&gt;&amp;lt;/web-app&amp;gt;&lt;/blockquote&gt;Enjoy the struts2(most popular java framework today)&lt;br /&gt;&lt;br /&gt;I had also written some more examples and some solutions of struts which can be easily found at&lt;br /&gt;&lt;a href="http://javachamp.blogspot.com/2008/06/struts-2-ajax-drop-down-example.html"&gt;Struts 2 ajax drop down example&lt;/a&gt;&lt;br /&gt;&lt;a href="http://javachamp.blogspot.com/2008/06/changing-default-style-of-tag_12.html"&gt;Struts 2 change &amp;lt;actionerror /&amp;gt; &amp;lt;actionmessage /&amp;gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://javachamp.blogspot.com/2008/06/session-check-interceptor-there-must-be.html"&gt;Struts 2 Session Check Interceptor&lt;/a&gt;&lt;br /&gt;&lt;a href="http://javachamp.blogspot.com/2008/06/struts2-2.html"&gt;About Struts 2&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2859304543308190020-8892213957245694927?l=javachamp.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/javachamp/~4/9yt937HnQgU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://javachamp.blogspot.com/feeds/8892213957245694927/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://javachamp.blogspot.com/2008/07/struts-2-hello-world-example.html#comment-form" title="39 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/8892213957245694927?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/8892213957245694927?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/javachamp/~3/9yt937HnQgU/struts-2-hello-world-example.html" title="Struts 2 Hello World Example" /><author><name>Vinod Kumar Kashyap</name><uri>http://www.blogger.com/profile/04741524013101585935</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="15107186906936325442" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">39</thr:total><feedburner:origLink>http://javachamp.blogspot.com/2008/07/struts-2-hello-world-example.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEcASHg7fCp7ImA9WxdWFkU.&quot;"><id>tag:blogger.com,1999:blog-2859304543308190020.post-8450718843489190210</id><published>2008-07-04T10:11:00.008+05:30</published><updated>2008-07-10T14:57:29.604+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-10T14:57:29.604+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="java code name" /><category scheme="http://www.blogger.com/atom/ns#" term="java" /><title>Java Code Names</title><content type="html">&lt;div style="border: medium none ;"&gt;Yesterday I was crawling web and found some intersting things about java. Firstly when java was release its name is Oak. After some time the creator of java found the name &lt;strong&gt;Java&lt;/strong&gt;.&lt;/div&gt;&lt;div style="border: medium none ;"&gt;I found some of the intersting things like the code names of the reeases of the java which I am going to describe below.&lt;/div&gt;&lt;div style="border: medium none ;"&gt;&lt;/div&gt;&lt;div style="border: medium none ;"&gt;&lt;/div&gt;&lt;div style="border: medium none ;"&gt;&lt;strong&gt;VERSION CODE NAME RELEASE DATE&lt;/strong&gt; &lt;/div&gt;&lt;div style="border: medium none ;"&gt;&lt;/div&gt;&lt;table style="width: 603px; height: 1369px;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;Version&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;Description of Code Name&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;Code Name&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;&lt;span style="color: rgb(0, 0, 0);font-size:85%;" &gt;Date of Release&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;JDK 1.1.4&lt;/td&gt;&lt;td&gt;&lt;a href="http://bp1.blogger.com/_df6HEbcpsBM/SG2c-b8FOrI/AAAAAAAAA1M/26HY68Syhik/s1600-h/sparkler.jpg" imageanchor="1" style="border: 0px none ; clear: left; float: left; margin-bottom: 1em; margin-right: 1em; background-color: transparent;"&gt;&lt;img ja="true" src="http://bp1.blogger.com/_df6HEbcpsBM/SG2c-b8FOrI/AAAAAAAAA1M/afWtNcAy-MM/s320-R/sparkler.jpg" style="border: 0px none ; width: 81px; height: 61px;" height="61" width="81" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;em&gt;Sparkler&lt;/em&gt;&lt;/td&gt;&lt;td&gt;Sept 12, 1997 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;JDK 1.1.5&lt;/td&gt;&lt;td&gt;&lt;a href="http://bp3.blogger.com/_df6HEbcpsBM/SG2dIjAi5wI/AAAAAAAAA1U/elXo2TlhBRE/s1600-h/pumpkin.jpg" imageanchor="1" style="border: 0px none ; clear: left; float: left; margin-bottom: 1em; margin-right: 1em; background-color: transparent;"&gt;&lt;img ja="true" src="http://bp3.blogger.com/_df6HEbcpsBM/SG2dIjAi5wI/AAAAAAAAA1U/2YruFqBTURA/s320-R/pumpkin.jpg" style="border: 0px none ; width: 72px; height: 70px;" height="70" width="72" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;em&gt;Pumpkin&lt;/em&gt;&lt;/td&gt;&lt;td&gt;Dec 3, 1997 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;JDK 1.1.6&lt;/td&gt;&lt;td&gt;A female character in Bible&lt;/td&gt;&lt;td&gt;&lt;em&gt;Abigail&lt;/em&gt;&lt;/td&gt;&lt;td&gt;April 24, 1998 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;JDK 1.1.7&lt;/td&gt;&lt;td&gt;Roman cognomen used by several politicians&lt;/td&gt;&lt;td&gt;&lt;em&gt;Brutus&lt;/em&gt;&lt;/td&gt;&lt;td&gt;Sept 28, 1998 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;JDK 1.1.8&lt;/td&gt;&lt;td&gt;Name of a person/Football club&lt;/td&gt;&lt;td&gt;&lt;em&gt;Chelsea &lt;/em&gt;&lt;/td&gt;&lt;td&gt;April 8, 1999 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;J2SE 1.2&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Playground&lt;/td&gt;&lt;td&gt;&lt;em&gt;Playground&lt;/em&gt; &lt;/td&gt;&lt;td&gt;Dec 4, 1998 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;J2SE 1.2.1&lt;/td&gt;&lt;td&gt;
&lt;/td&gt;&lt;td&gt;(none) &lt;/td&gt;&lt;td&gt;March 30, 1999 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;J2SE 1.2.2&lt;/td&gt;&lt;td&gt;&lt;a href="http://bp2.blogger.com/_df6HEbcpsBM/SG2flMeH2_I/AAAAAAAAA1c/52DkHA-GiYI/s1600-h/cricket.jpg" imageanchor="1" style="border: 0px none ; clear: left; float: left; margin-bottom: 1em; margin-right: 1em; background-color: transparent;"&gt;&lt;img ja="true" src="http://bp2.blogger.com/_df6HEbcpsBM/SG2flMeH2_I/AAAAAAAAA1c/jfs_7q69nis/s320-R/cricket.jpg" style="border: 0px none ; width: 48px; height: 62px;" height="62" width="48" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;em&gt;Cricket&lt;/em&gt;&lt;/td&gt;&lt;td&gt;July 8, 1999 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;J2SE 1.3&lt;/td&gt;&lt;td&gt;&lt;a href="http://bp0.blogger.com/_df6HEbcpsBM/SG2f6E6Za4I/AAAAAAAAA1k/BBXbWZIHqq4/s1600-h/kestrel.jpg" imageanchor="1" style="border: 0px none ; clear: left; float: left; margin-bottom: 1em; width: 82px; margin-right: 1em; height: 93px; background-color: transparent;"&gt;&lt;img ja="true" src="http://bp0.blogger.com/_df6HEbcpsBM/SG2f6E6Za4I/AAAAAAAAA1k/OCZJ0DmKECU/s320-R/kestrel.jpg" style="border: 0px none ; width: 67px; height: 84px;" height="84" width="67" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;em&gt;Kestrel&lt;/em&gt; &lt;/td&gt;&lt;td&gt;May 8, 2000 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;J2SE 1.3.1&lt;/td&gt;&lt;td&gt;&lt;a href="http://bp0.blogger.com/_df6HEbcpsBM/SG2gMVQA78I/AAAAAAAAA1s/VhSR2kfu7ko/s1600-h/ladybird.jpg" imageanchor="1" style="border: 0px none ; clear: left; float: left; margin-bottom: 1em; margin-right: 1em; background-color: transparent;"&gt;&lt;img ja="true" src="http://bp0.blogger.com/_df6HEbcpsBM/SG2gMVQA78I/AAAAAAAAA1s/s3cbH7GfKco/s320-R/ladybird.jpg" style="border: 0px none ;" height="70" width="88" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;em&gt;Ladybird&lt;/em&gt; &lt;/td&gt;&lt;td&gt;May 17, 2001 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;J2SE 1.4.0&lt;/td&gt;&lt;td&gt;&lt;a href="http://bp3.blogger.com/_df6HEbcpsBM/SG2gkh0SehI/AAAAAAAAA10/rzzxa-TyN60/s1600-h/merlin.jpg" imageanchor="1" style="border: 0px none ; clear: left; float: left; margin-bottom: 1em; margin-right: 1em; background-color: transparent;"&gt;&lt;img ja="true" src="http://bp3.blogger.com/_df6HEbcpsBM/SG2gkh0SehI/AAAAAAAAA10/CVAte-MA9aE/s320-R/merlin.jpg" style="border: 0px none ;" height="89" width="82" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;em&gt;Merlin&lt;/em&gt;&lt;/td&gt;&lt;td&gt;Feb 13, 2002 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;J2SE 1.4.1&lt;/td&gt;&lt;td&gt;&lt;a href="http://bp1.blogger.com/_df6HEbcpsBM/SG2g2lCsN3I/AAAAAAAAA18/SkCWme19ygM/s1600-h/hopper.jpg" imageanchor="1" style="border: 0px none ; clear: left; float: left; margin-bottom: 1em; margin-right: 1em; background-color: transparent;"&gt;&lt;img ja="true" src="http://bp1.blogger.com/_df6HEbcpsBM/SG2g2lCsN3I/AAAAAAAAA18/synFKPUM67Y/s320-R/hopper.jpg" style="border: 0px none ;" height="60" width="77" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;em&gt;Hopper&lt;/em&gt;&lt;/td&gt;&lt;td&gt;Sept 16, 2002&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;J2SE 1.4.2&lt;/td&gt;&lt;td&gt;&lt;a href="http://bp3.blogger.com/_df6HEbcpsBM/SG2hS2yxCoI/AAAAAAAAA2E/AxoJShGC6jA/s1600-h/mantis.jpg" imageanchor="1" style="border: 0px none ; clear: left; float: left; margin-bottom: 1em; margin-right: 1em; background-color: transparent;"&gt;&lt;img ja="true" src="http://bp3.blogger.com/_df6HEbcpsBM/SG2hS2yxCoI/AAAAAAAAA2E/SdgKiX6B8O0/s320-R/mantis.jpg" style="border: 0px none ;" height="76" width="76" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;em&gt;Mantis&lt;/em&gt;&lt;/td&gt;&lt;td&gt;June 26, 2003 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;J2SE 5.0 (1.5.0)&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;a href="http://bp1.blogger.com/_df6HEbcpsBM/SG2hcQn1XJI/AAAAAAAAA2M/DP0Js1NZMlk/s1600-h/tiger.jpg" imageanchor="1" style="border: 0px none ; clear: left; float: left; margin-bottom: 1em; margin-right: 1em; background-color: transparent;"&gt;&lt;img ja="true" src="http://bp1.blogger.com/_df6HEbcpsBM/SG2hcQn1XJI/AAAAAAAAA2M/uffkl8YGStk/s320-R/tiger.jpg" style="border: 0px none ;" height="95" width="78" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;em&gt;Tiger&lt;/em&gt;&lt;/td&gt;&lt;td&gt;Sept 29, 2004 &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Java SE 6&lt;/td&gt;&lt;td&gt;&lt;a href="http://bp0.blogger.com/_df6HEbcpsBM/SHW3qvBXAFI/AAAAAAAAA2s/Z7woZweAx3c/s1600-h/mustang.jpg" imageanchor="1" style="border: 0px none ; margin-left: 1em; margin-right: 1em; background-color: transparent;"&gt;&lt;img ja="true" src="http://bp0.blogger.com/_df6HEbcpsBM/SHW3qvBXAFI/AAAAAAAAA2s/zDtUvML2iDw/s320-R/mustang.jpg" style="border: 0px none ;" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;em&gt;Mustang&lt;/em&gt;&lt;/td&gt;&lt;td&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Java SE 7
&lt;/td&gt;&lt;td&gt;&lt;a href="http://bp1.blogger.com/_df6HEbcpsBM/SG2hyW7Fb8I/AAAAAAAAA2c/ujsl9ej6ZJ4/s1600-h/dolphin.jpg" imageanchor="1" style="border: 0px none ; clear: left; float: left; margin-bottom: 1em; margin-right: 1em; background-color: transparent;"&gt;&lt;img ja="true" src="http://bp1.blogger.com/_df6HEbcpsBM/SG2hyW7Fb8I/AAAAAAAAA2c/1qmfAIDfo0I/s320-R/dolphin.jpg" style="border: 0px none ;" height="60" width="91" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;em&gt;Dolphin&lt;/em&gt;&lt;/td&gt;&lt;td&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div style="border: medium none ;"&gt;You can these names on the &lt;a href="http://java.sun.com/j2se/codenames.html"&gt;sun&lt;/a&gt; website.&lt;/div&gt;&lt;div style="border: medium none ;"&gt;&lt;/div&gt;&lt;div style="border: medium none ;"&gt;&lt;/div&gt;&lt;div style="border: medium none ;"&gt;Here is the brief history of java. Some of you wanted to know that how many packages are there in java when it is officially released well here are the some facts.&lt;/div&gt;&lt;div style="border: medium none ;"&gt;&lt;/div&gt;&lt;div style="border: medium none ;"&gt;&lt;/div&gt;&lt;div style="border: medium none ;"&gt;&lt;/div&gt;&lt;div style="border: medium none ;"&gt;&lt;/div&gt;&lt;div style="border: medium none ;"&gt;&lt;strong&gt;Java 1.0&lt;/strong&gt; - &lt;em&gt;212 classes in 8 packages&lt;/em&gt;&lt;/div&gt;&lt;div style="border: medium none ;"&gt;&lt;strong&gt;Java 1.1&lt;/strong&gt; - &lt;em&gt;503 classes in 23 packages&lt;/em&gt;&lt;/div&gt;&lt;div style="border: medium none ;"&gt;&lt;strong&gt;Java 1.2/2.0&lt;/strong&gt; - &lt;em&gt;1,520 classes in 59 packages&lt;/em&gt;&lt;/div&gt;&lt;div style="border: medium none ;"&gt;&lt;strong&gt;Java 1.3&lt;/strong&gt; -&lt;em&gt; 1842 classes in 76 packages&lt;/em&gt;&lt;/div&gt;&lt;div style="border: medium none ;"&gt;&lt;strong&gt;Java1.4&lt;/strong&gt; - &lt;em&gt;2991 classes in 135 packages&lt;/em&gt;&lt;/div&gt;&lt;div style="border: medium none ;"&gt;&lt;strong&gt;Java 5.0&lt;/strong&gt; - &lt;em&gt;3562 classes in 166 packages&lt;/em&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2859304543308190020-8450718843489190210?l=javachamp.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/javachamp/~4/xQiGaF-huxc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://javachamp.blogspot.com/feeds/8450718843489190210/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://javachamp.blogspot.com/2008/07/java-code-names_04.html#comment-form" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/8450718843489190210?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/8450718843489190210?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/javachamp/~3/xQiGaF-huxc/java-code-names_04.html" title="Java Code Names" /><author><name>Vinod Kumar Kashyap</name><uri>http://www.blogger.com/profile/04741524013101585935</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="15107186906936325442" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://bp1.blogger.com/_df6HEbcpsBM/SG2c-b8FOrI/AAAAAAAAA1M/afWtNcAy-MM/s72-Rc/sparkler.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total><feedburner:origLink>http://javachamp.blogspot.com/2008/07/java-code-names_04.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0AMQHY5eSp7ImA9WxdQE08.&quot;"><id>tag:blogger.com,1999:blog-2859304543308190020.post-4615141786565979445</id><published>2008-06-13T09:23:00.002+05:30</published><updated>2008-06-13T09:33:01.821+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-06-13T09:33:01.821+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="struts2" /><category scheme="http://www.blogger.com/atom/ns#" term="Spring" /><category scheme="http://www.blogger.com/atom/ns#" term="Hibernate" /><title>Deadly Combination</title><content type="html">Yes, Deadly combination!! It doesn't means that there would some super stars of the film who would go the devil place and finish him. No No !!&lt;br /&gt;&lt;br /&gt;I am talking about the deadly combination used in the development of the web sites. I am talking about the tools used for the Java development. Any guesses so far....&lt;br /&gt;&lt;br /&gt;Yes, they are &lt;strong&gt;Struts2&lt;/strong&gt;, &lt;strong&gt;Spring&lt;/strong&gt;, and &lt;strong&gt;Hibernate&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;I am currently working all these tools. I am amazed to see the power of all the three technologies and how they makes the life of a developer like me, so easy.&lt;br /&gt;All of three would make your project a huge success.&lt;br /&gt;&lt;br /&gt;Now talking about &lt;strong&gt;Struts2&lt;/strong&gt;... It is great framework with the inbuilt Ajax tags that would help many developers. Many new features of the struts2 are marvelous.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Hibernate&lt;/strong&gt;... I already told in my last post about this. Hibernate would provide you a greater facility for your data persistence. its in built architecture that is fully object oriented which makes it a powerful tool. And yes, not to forget about the &lt;em&gt;HQL (Hibernate Query Language)&lt;/em&gt;.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Spring&lt;/strong&gt;... Again a master piece framework which lets you to do handle hibernate and specially the &lt;em&gt;IOC (Inversion of Control)&lt;/em&gt; that lets programmers to walk to the higher level. Spring have many in built functionalities that help in various ways. One of them is scheduling of tasks. Before this you have to do manually write lots of code but now with a fewer code you can achieve greater flexibility. &lt;br /&gt;&lt;br /&gt;So enjoy working with the &lt;strong&gt;deadly combination &lt;/strong&gt;......&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2859304543308190020-4615141786565979445?l=javachamp.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/javachamp/~4/a5RPc4KC4l8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://javachamp.blogspot.com/feeds/4615141786565979445/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://javachamp.blogspot.com/2008/06/deadly-combination.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/4615141786565979445?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/4615141786565979445?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/javachamp/~3/a5RPc4KC4l8/deadly-combination.html" title="Deadly Combination" /><author><name>Vinod Kumar Kashyap</name><uri>http://www.blogger.com/profile/04741524013101585935</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="15107186906936325442" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://javachamp.blogspot.com/2008/06/deadly-combination.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CU4MRn87eip7ImA9WxdQEkk.&quot;"><id>tag:blogger.com,1999:blog-2859304543308190020.post-5496114645619383785</id><published>2008-06-12T09:42:00.000+05:30</published><updated>2008-06-12T09:43:07.102+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-06-12T09:43:07.102+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Hibernate" /><title>Hibernate Rocks</title><content type="html">After few days working on hibernate I found it very interesting and useful tool for the developers. It allows to handle code more efficiently while working on the database part.&lt;br /&gt;Since I am new to it I don't know all the features of the hibernate, but yes the features that I had used are tremendous and the code is more reliable and efficient.&lt;br /&gt;All the connection management is handled by it. And specially the mapping files which allows us to connect to the database&lt;br /&gt;i enjoyed working with it and hopes it will provide more features in the future.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2859304543308190020-5496114645619383785?l=javachamp.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/javachamp/~4/7zee9OOkwRk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://javachamp.blogspot.com/feeds/5496114645619383785/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://javachamp.blogspot.com/2008/06/hibernate-rocks_12.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/5496114645619383785?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/5496114645619383785?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/javachamp/~3/7zee9OOkwRk/hibernate-rocks_12.html" title="Hibernate Rocks" /><author><name>Vinod Kumar Kashyap</name><uri>http://www.blogger.com/profile/04741524013101585935</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="15107186906936325442" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://javachamp.blogspot.com/2008/06/hibernate-rocks_12.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A04CQXszcSp7ImA9WxdQE08.&quot;"><id>tag:blogger.com,1999:blog-2859304543308190020.post-1790180478044970003</id><published>2008-06-12T09:41:00.005+05:30</published><updated>2008-06-13T09:36:00.589+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-06-13T09:36:00.589+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="action message" /><category scheme="http://www.blogger.com/atom/ns#" term="struts2" /><category scheme="http://www.blogger.com/atom/ns#" term="action error" /><title>Changing default style of &lt;s:actionerror/&gt; / &lt;s:actionmessage/&gt; tag</title><content type="html">In struts 2 when you put &amp;lt;s:actionerror /&gt; tag it displays the errors in the following way:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;ul&gt;&lt;br /&gt;&amp;lt;li&gt;error 1&amp;lt;/li&gt;&lt;br /&gt;&amp;lt;li&gt;error 2&amp;lt;/li&gt;&lt;br /&gt;&amp;lt;/ul&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;But sometimes it seems to be very ugly when displaying the dot (.) in the action errors or action messages&lt;br /&gt;&lt;br /&gt;Below is a normal code that displays the tags in your customized way.&lt;br /&gt;You can specify your own css for this&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;s:if test="hasActionErrors()"&gt;&lt;br /&gt;&amp;lt;s:iterator value="actionErrors"&gt;&lt;br /&gt;&amp;lt;span class="errorMessage"&gt;&amp;lt;s:property escape="false" /&gt;&lt;br /&gt;&amp;lt;/span&gt;&lt;br /&gt;&amp;lt;/s:iterator&gt;&lt;br /&gt;&amp;lt;/s:if&gt;&lt;/blockquote&gt;Alternatively you can change the file in the "/template/simple/actionerror.ftl” and put it in the /web-directory/struts/simple if using simple theme&lt;br /&gt;&lt;br /&gt;Similar for &amp;lt;s:actionmessage /&gt; tag.&lt;br /&gt;&lt;br /&gt;Enjoy Struts&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2859304543308190020-1790180478044970003?l=javachamp.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/javachamp/~4/q2pI6_IoPbA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://javachamp.blogspot.com/feeds/1790180478044970003/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://javachamp.blogspot.com/2008/06/changing-default-style-of-tag_12.html#comment-form" title="11 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/1790180478044970003?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/1790180478044970003?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/javachamp/~3/q2pI6_IoPbA/changing-default-style-of-tag_12.html" title="Changing default style of &amp;lt;s:actionerror/&gt; / &amp;lt;s:actionmessage/&gt; tag" /><author><name>Vinod Kumar Kashyap</name><uri>http://www.blogger.com/profile/04741524013101585935</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="15107186906936325442" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">11</thr:total><feedburner:origLink>http://javachamp.blogspot.com/2008/06/changing-default-style-of-tag_12.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkYMSXs_fip7ImA9WxdQEkk.&quot;"><id>tag:blogger.com,1999:blog-2859304543308190020.post-1352778091049762771</id><published>2008-06-12T09:38:00.003+05:30</published><updated>2008-06-12T09:46:28.546+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-06-12T09:46:28.546+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="interceptor" /><category scheme="http://www.blogger.com/atom/ns#" term="session check" /><category scheme="http://www.blogger.com/atom/ns#" term="struts2" /><title>Session Check Interceptor</title><content type="html">There must be some way to check that the current session is valid or invalid. This can be done using interceptors in struts in a very easy way.&lt;br /&gt;Here I am giving an example how to resolve this.&lt;br /&gt;&lt;br /&gt;First of all we will make an interceptor named SessionCheck.java.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;package com.demo.interceptors;&lt;br /&gt;&lt;br /&gt;import java.util.Collections;&lt;br /&gt;import java.util.Map;&lt;br /&gt;&lt;br /&gt;import com.opensymphony.xwork2.ActionContext;&lt;br /&gt;import com.opensymphony.xwork2.ActionInvocation;&lt;br /&gt;import com.opensymphony.xwork2.ActionProxy;&lt;br /&gt;import com.opensymphony.xwork2.config.entities.ResultConfig;&lt;br /&gt;import com.opensymphony.xwork2.interceptor.Interceptor;&lt;br /&gt;&lt;br /&gt;public class SessionCheck implements Interceptor {&lt;br /&gt;&lt;br /&gt;public void init() {&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void destroy() {&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public String intercept(ActionInvocation invocation) throws Exception {&lt;br /&gt;ActionProxy proxy;&lt;br /&gt;proxy = invocation.getProxy();&lt;br /&gt;Map session = ActionContext.getContext().getSession();&lt;br /&gt;Map results = proxy.getConfig().getResults();&lt;br /&gt;/*&lt;br /&gt;* We are checking that the user&lt;br /&gt;* that is set at login time is null or not&lt;br /&gt;*/&lt;br /&gt;if (session.get("user") != null) {&lt;br /&gt;&lt;br /&gt;return invocation.invoke();&lt;br /&gt;} else {&lt;br /&gt;/* Here we are passing the result to an&lt;br /&gt;* invalid page by specifying its location&lt;br /&gt;*/&lt;br /&gt;ResultConfig rc = new ResultConfig("invalid",&lt;br /&gt;"org.apache.struts2.views.freemarker.FreemarkerResult",&lt;br /&gt;Collections.singletonMap("location",&lt;br /&gt;"/com/demo/interceptors/invalid.jsp"));&lt;br /&gt;results.put("invalid", rc);&lt;br /&gt;&lt;br /&gt;return "invalid";&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;}&lt;/blockquote&gt;&lt;br /&gt;Now in struts.xml put the following code&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;br /&gt;&amp;lt;!DOCTYPE struts PUBLIC&lt;br /&gt;"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"&lt;br /&gt;"http://struts.apache.org/dtds/struts-2.0.dtd"&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;struts&gt;&lt;br /&gt;-----&lt;br /&gt;---&lt;br /&gt;&lt;br /&gt;&amp;lt;interceptors&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;interceptor name="SessionCheck"&lt;br /&gt;class="com.demo.interceptors.SessionCheck" /&gt;&lt;br /&gt;&amp;lt;/interceptors&gt;&lt;br /&gt;&amp;lt;!—- We are using this because we want it to apply for each and every action --&gt;&lt;br /&gt;&amp;lt;default-interceptor-ref name="SessionCheck"/&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;---&lt;br /&gt;---&lt;br /&gt;&amp;lt;/struts&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2859304543308190020-1352778091049762771?l=javachamp.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/javachamp/~4/WuT8P9lgDhA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://javachamp.blogspot.com/feeds/1352778091049762771/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://javachamp.blogspot.com/2008/06/session-check-interceptor-there-must-be.html#comment-form" title="6 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/1352778091049762771?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/1352778091049762771?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/javachamp/~3/WuT8P9lgDhA/session-check-interceptor-there-must-be.html" title="Session Check Interceptor" /><author><name>Vinod Kumar Kashyap</name><uri>http://www.blogger.com/profile/04741524013101585935</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="15107186906936325442" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">6</thr:total><feedburner:origLink>http://javachamp.blogspot.com/2008/06/session-check-interceptor-there-must-be.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEQMQnY9fSp7ImA9WxdWF0k.&quot;"><id>tag:blogger.com,1999:blog-2859304543308190020.post-7436361465416668549</id><published>2008-06-12T09:31:00.006+05:30</published><updated>2008-07-11T08:49:43.865+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-07-11T08:49:43.865+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="struts2" /><category scheme="http://www.blogger.com/atom/ns#" term="ajax" /><category scheme="http://www.blogger.com/atom/ns#" term="ajax dropdown" /><title>Struts 2 Ajax drop down Example</title><content type="html">Struts 2 has emerged as boon for developers. But the documentation available is very small. So I had decided to give a brief demonstration of the ajax used in struts 2.&lt;br /&gt;&lt;br /&gt;In this example when u select from one drop down the other will populate accordingly. You can use it as it is or play with it. Enjoy !!&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Index.jsp&lt;/strong&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;%@ taglib prefix="s" uri="/struts-tags" %&gt;&lt;br /&gt;&amp;lt;s:action name="ListingAction" executeResult="true"&gt;&amp;lt;/s:action&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;strong&gt;Listing.jsp&lt;/strong&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;%@ taglib prefix="s" uri="/struts-tags"%&gt;&lt;br /&gt;&amp;lt;html&gt;&lt;br /&gt;&amp;lt;head&gt;&lt;br /&gt;&amp;lt;s:head theme="ajax" /&gt;&lt;br /&gt;&amp;lt;title&gt;Listing&amp;lt;/title&gt;&lt;br /&gt;&amp;lt;/head&gt;&lt;br /&gt;&amp;lt;script&gt;&lt;br /&gt;function show_details() {&lt;br /&gt;dojo.event.topic.publish("show_detail");&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&gt;&lt;br /&gt;&amp;lt;body&gt;&lt;br /&gt;&amp;lt;s:form id="frm_demo" name="frm_demo" theme="simple"&gt;&lt;br /&gt;&amp;lt;table border="0"&gt;&lt;br /&gt;&amp;lt;tr&gt;&lt;br /&gt;&amp;lt;td&gt;&amp;lt;s:select list="lstList1" name="lst"&lt;br /&gt;onchange="javascript:show_details();return false;" &gt;&amp;lt;/s:select&gt;&lt;br /&gt;&amp;lt;/td&gt;&lt;br /&gt;&amp;lt;td&gt;&amp;lt;s:url id="d_url" action="DetailAction" /&gt; &amp;lt;s:div showLoadingText="false"&lt;br /&gt;id="details" href="%{d_url}" theme="ajax"&lt;br /&gt;listenTopics="show_detail" formId="frm_demo"&gt;&lt;br /&gt;&amp;lt;/s:div&gt;&amp;lt;/td&gt;&lt;br /&gt;&amp;lt;/tr&gt;&lt;br /&gt;&amp;lt;/table&gt;&lt;br /&gt;&amp;lt;/s:form&gt;&lt;br /&gt;&amp;lt;/body&gt;&lt;br /&gt;&amp;lt;/html&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;strong&gt;Detail.jsp&lt;/strong&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;%@ taglib prefix="s" uri="/struts-tags"%&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;s:if test="lstList != null"&gt;&lt;br /&gt;&amp;lt;s:select list="lstList"&gt;&amp;lt;/s:select&gt;&lt;br /&gt;&amp;lt;/s:if&gt; &lt;/blockquote&gt;&lt;br /&gt;&lt;strong&gt;DetailAction.java&lt;/strong&gt;&lt;br /&gt;&lt;blockquote&gt;package ajaxdemo.action;&lt;br /&gt;&lt;br /&gt;import java.util.ArrayList;&lt;br /&gt;import java.util.List;&lt;br /&gt;&lt;br /&gt;import com.opensymphony.xwork2.ActionSupport;&lt;br /&gt;&lt;br /&gt;public class DetailAction extends ActionSupport {&lt;br /&gt;private String lst;&lt;br /&gt;private List lstList = null;&lt;br /&gt;private List lstList2 = null;&lt;br /&gt;&lt;br /&gt;public String execute() throws Exception {&lt;br /&gt;&lt;br /&gt;if (getLst() != null &amp;amp;&amp;amp; !getLst().equals("")) {&lt;br /&gt;populateDetail(getLst());&lt;br /&gt;return SUCCESS;&lt;br /&gt;} else {&lt;br /&gt;return SUCCESS;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;private void populateDetail(String id) {&lt;br /&gt;lstList = new ArrayList();&lt;br /&gt;if (id.equalsIgnoreCase("Fruits")) {&lt;br /&gt;lstList.add("Apple");&lt;br /&gt;lstList.add("PineApple");&lt;br /&gt;lstList.add("Mango");&lt;br /&gt;lstList.add("Banana");&lt;br /&gt;lstList.add("Grapes");&lt;br /&gt;} else if (id.equalsIgnoreCase("Places")) {&lt;br /&gt;lstList.add("New York");&lt;br /&gt;lstList.add("Sydney");&lt;br /&gt;lstList.add("California");&lt;br /&gt;lstList.add("Switzerland");&lt;br /&gt;lstList.add("Paris");&lt;br /&gt;} else {&lt;br /&gt;lstList.add("Other 1");&lt;br /&gt;lstList.add("Other 2");&lt;br /&gt;lstList.add("Other 3");&lt;br /&gt;lstList.add("Other 4");&lt;br /&gt;lstList.add("Other 5");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public List getLstList() {&lt;br /&gt;return lstList;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void setLstList(List lstList) {&lt;br /&gt;this.lstList = lstList;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public String getLst() {&lt;br /&gt;return lst;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void setLst(String lst) {&lt;br /&gt;this.lst= lst;&lt;br /&gt;}&lt;br /&gt;}&lt;/blockquote&gt;&lt;br /&gt;&lt;strong&gt;DetailListing.java&lt;/strong&gt;&lt;br /&gt;&lt;blockquote&gt;package ajaxdemo.action;&lt;br /&gt;&lt;br /&gt;import com.opensymphony.xwork2.ActionSupport;&lt;br /&gt;import java.util.ArrayList;&lt;br /&gt;import java.util.List;&lt;br /&gt;&lt;br /&gt;public class ListingAction extends ActionSupport {&lt;br /&gt;private List lstList1 = null;&lt;br /&gt;&lt;br /&gt;public String execute() throws Exception {&lt;br /&gt;populateDetail();&lt;br /&gt;return SUCCESS;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;private void populateDetail() {&lt;br /&gt;lstList1 = new ArrayList();&lt;br /&gt;lstList1.add("Fruits");&lt;br /&gt;lstList1.add("Places");&lt;br /&gt;lstList1.add("Others");&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public List getLstList1() {&lt;br /&gt;return lstList1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void setLstList1(List lstList1) {&lt;br /&gt;this.lstList1 = lstList1;&lt;br /&gt;}&lt;br /&gt;}&lt;/blockquote&gt;&lt;br /&gt;&lt;strong&gt;Struts.xml&lt;/strong&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;!DOCTYPE struts PUBLIC&lt;br /&gt;"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"&lt;br /&gt;"http://struts.apache.org/dtds/struts-2.0.dtd"&gt;&lt;br /&gt;&amp;lt;struts&gt;&lt;br /&gt;&amp;lt;package name="demo" extends="struts-default"&gt;&lt;br /&gt;&amp;lt;action name="ListingAction" class="ajaxdemo.action. ListingAction"&gt;&lt;br /&gt;&amp;lt;result&gt;/listing.jsp&amp;lt;/result&gt;&lt;br /&gt;&amp;lt;/action&gt;&lt;br /&gt;&amp;lt;action name="DetailAction" class="ajaxdemo.action. DetailAction"&gt;&lt;br /&gt;&amp;lt;result&gt;/detail.jsp&amp;lt;/result&gt;&lt;br /&gt;&amp;lt;/action&gt;&lt;br /&gt;&amp;lt;/package&gt;&lt;br /&gt;&amp;lt;/struts&gt; &lt;/blockquote&gt;&lt;br /&gt;&lt;strong&gt;web.xml &lt;/strong&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;br /&gt;&amp;lt;web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"&gt;&lt;br /&gt;&amp;lt;filter&gt;&lt;br /&gt;&amp;lt;filter-name&gt;struts2&amp;lt;/filter-name&gt;&lt;br /&gt;&amp;lt;filter-class&gt;org.apache.struts2.dispatcher.FilterDispatcher&amp;lt;/filter-class&gt;&lt;br /&gt;&amp;lt;/filter&gt;&lt;br /&gt;&amp;lt;filter-mapping&gt;&lt;br /&gt;&amp;lt;filter-name&gt;struts2&amp;lt;/filter-name&gt;&lt;br /&gt;&amp;lt;url-pattern&gt;/*&amp;lt;/url-pattern&gt;&lt;br /&gt;&amp;lt;/filter-mapping&gt;&lt;br /&gt;&amp;lt;welcome-file-list&gt;&lt;br /&gt;&amp;lt;welcome-file&gt;index.jsp&amp;lt;/welcome-file&gt;&lt;br /&gt;&amp;lt;/welcome-file-list&gt;&lt;br /&gt;&amp;lt;/web-app&gt; &lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2859304543308190020-7436361465416668549?l=javachamp.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/javachamp/~4/f0qihaPbKGY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://javachamp.blogspot.com/feeds/7436361465416668549/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://javachamp.blogspot.com/2008/06/struts-2-ajax-drop-down-example.html#comment-form" title="32 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/7436361465416668549?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/7436361465416668549?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/javachamp/~3/f0qihaPbKGY/struts-2-ajax-drop-down-example.html" title="Struts 2 Ajax drop down Example" /><author><name>Vinod Kumar Kashyap</name><uri>http://www.blogger.com/profile/04741524013101585935</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="15107186906936325442" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">32</thr:total><feedburner:origLink>http://javachamp.blogspot.com/2008/06/struts-2-ajax-drop-down-example.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUUARns4fCp7ImA9WxdQEkk.&quot;"><id>tag:blogger.com,1999:blog-2859304543308190020.post-1359724531104803669</id><published>2008-06-12T09:29:00.001+05:30</published><updated>2008-06-12T09:30:47.534+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-06-12T09:30:47.534+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ldap" /><title>Simple LDAP Authentication</title><content type="html">This is a simple example through which we will connect to the LDAP Server and authenticate user.&lt;br /&gt;I have used ApacheDS Server as a LDAP Server.&lt;br /&gt;&lt;br /&gt;Install ApacheDS server and run it.&lt;br /&gt;Following is a servlet used. make login.html and use as it&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Login.java&lt;/strong&gt;&lt;br /&gt;&lt;blockquote&gt;import java.io.IOException;&lt;br /&gt;import javax.servlet.RequestDispatcher;&lt;br /&gt;import javax.servlet.ServletException;&lt;br /&gt;import javax.servlet.http.HttpServletRequest;&lt;br /&gt;import javax.servlet.http.HttpServletResponse;&lt;br /&gt;import javax.naming.*;&lt;br /&gt;import javax.naming.directory.*;&lt;br /&gt;import java.util.Hashtable;&lt;br /&gt;&lt;br /&gt;public class Login extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {&lt;br /&gt;&lt;br /&gt;public Login() {&lt;br /&gt;super();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {&lt;br /&gt;&lt;br /&gt;final String SUCCESS = "Success.html";&lt;br /&gt;final String FAILURE = "Failure.html";&lt;br /&gt;String strUrl = "login.html";&lt;br /&gt;String username = request.getParameter("username");&lt;br /&gt;String password = request.getParameter("password");&lt;br /&gt;&lt;br /&gt;Hashtable env = new Hashtable(11);&lt;br /&gt;&lt;br /&gt;boolean b = false;&lt;br /&gt;&lt;br /&gt;env.put(Context.INITIAL_CONTEXT_FACTORY,&lt;br /&gt;"com.sun.jndi.ldap.LdapCtxFactory");&lt;br /&gt;env.put(Context.PROVIDER_URL, "ldap://localhost:10389");&lt;br /&gt;env.put(Context.SECURITY_AUTHENTICATION, "simple");&lt;br /&gt;env.put(Context.SECURITY_PRINCIPAL, "uid="+ username +",ou=system");&lt;br /&gt;env.put(Context.SECURITY_CREDENTIALS, password);&lt;br /&gt;&lt;br /&gt;try {&lt;br /&gt;// Create initial context&lt;br /&gt;DirContext ctx = new InitialDirContext(env);&lt;br /&gt;&lt;br /&gt;// Close the context when we're done&lt;br /&gt;b = true;&lt;br /&gt;ctx.close();&lt;br /&gt;&lt;br /&gt;} catch (NamingException e) {&lt;br /&gt;b = false;&lt;br /&gt;}finally{&lt;br /&gt;if(b){&lt;br /&gt;System.out.print("Success");&lt;br /&gt;strUrl = SUCCESS;&lt;br /&gt;}else{&lt;br /&gt;System.out.print("Failure");&lt;br /&gt;strUrl = FAILURE;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;RequestDispatcher rd = request.getRequestDispatcher(strUrl);&lt;br /&gt;rd.forward(request, response);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {&lt;br /&gt;processRequest(request,response);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {&lt;br /&gt;processRequest(request,response);&lt;br /&gt;} &lt;br /&gt;}&lt;/blockquote&gt;Enjoy LDAP!! :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2859304543308190020-1359724531104803669?l=javachamp.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/javachamp/~4/2tgn-YLuAiM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://javachamp.blogspot.com/feeds/1359724531104803669/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://javachamp.blogspot.com/2008/06/simple-ldap-authentication.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/1359724531104803669?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/1359724531104803669?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/javachamp/~3/2tgn-YLuAiM/simple-ldap-authentication.html" title="Simple LDAP Authentication" /><author><name>Vinod Kumar Kashyap</name><uri>http://www.blogger.com/profile/04741524013101585935</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="15107186906936325442" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://javachamp.blogspot.com/2008/06/simple-ldap-authentication.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUYHQHszcCp7ImA9WxdQEkk.&quot;"><id>tag:blogger.com,1999:blog-2859304543308190020.post-1820732021765787687</id><published>2008-06-12T09:26:00.001+05:30</published><updated>2008-06-12T09:28:51.588+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-06-12T09:28:51.588+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="performance" /><category scheme="http://www.blogger.com/atom/ns#" term="java" /><title>Performance Increase</title><content type="html">Many of us passes through the same situation of having a low performance of our application. But if you follow some of the tips and tricks below you will soon realize the increase in the performance.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Collections&lt;/strong&gt;&lt;br /&gt;Always assign size to ArrayLists and other collections. Ex:&lt;br /&gt;&lt;blockquote&gt;Collection c = new ArrayList(10);&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Strings&lt;/strong&gt;&lt;br /&gt;Always use&lt;br /&gt;&lt;blockquote&gt;String abc = "I love Java";instead of&lt;br /&gt;String abc = new String("I love Java");&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;JDBC&lt;/strong&gt;&lt;br /&gt;Always close these statements after use:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Class.forName("oracle.jdbc.driver.OracleDriver");&lt;br /&gt;Connection conn = DriverManager.getConnection("databaseUrl","username","password");&lt;br /&gt;Statement stmt = conn.createStatement();&lt;br /&gt;String strSql = "select * from abc";&lt;br /&gt;ResultSet rs = stmt.executeQuery("strSql");// close these&lt;br /&gt;stmt.close();&lt;br /&gt;rs.close();&lt;br /&gt;conn.close();&lt;br /&gt;strSql=null;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Use only the required columns in select query:&lt;br /&gt;&lt;blockquote&gt;Select FIRSTNAME,LASTNAME from PERSON;&lt;/blockquote&gt;&lt;br /&gt;instead of&lt;br /&gt;&lt;blockquote&gt;Select * from Person;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;JSP&lt;/strong&gt;&lt;br /&gt;Use session object as compared to hidden values, url rewriting and cookies&lt;br /&gt;&lt;br /&gt;Use &lt;blockquote&gt;System.out.print()&lt;/blockquote&gt; instead of &lt;blockquote&gt;System.out.println();&lt;/blockquote&gt;wherever necessary&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2859304543308190020-1820732021765787687?l=javachamp.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/javachamp/~4/y-i9WsyEqhQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://javachamp.blogspot.com/feeds/1820732021765787687/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://javachamp.blogspot.com/2008/06/performance-increase.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/1820732021765787687?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/1820732021765787687?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/javachamp/~3/y-i9WsyEqhQ/performance-increase.html" title="Performance Increase" /><author><name>Vinod Kumar Kashyap</name><uri>http://www.blogger.com/profile/04741524013101585935</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="15107186906936325442" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://javachamp.blogspot.com/2008/06/performance-increase.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE4CQ3o_fSp7ImA9WxdQEkk.&quot;"><id>tag:blogger.com,1999:blog-2859304543308190020.post-126831376260677341</id><published>2008-06-12T09:25:00.000+05:30</published><updated>2008-06-12T09:26:02.445+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-06-12T09:26:02.445+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="java" /><title>Everywhere Java</title><content type="html">Java is everywhere from your shoes to mars and from mobiles to big dream machines and from your favorite bike to space shuttles.&lt;br /&gt;&lt;br /&gt;You can't even escape Java if you are a programmer or a developer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2859304543308190020-126831376260677341?l=javachamp.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/javachamp/~4/U5iLl5-d4kQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://javachamp.blogspot.com/feeds/126831376260677341/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://javachamp.blogspot.com/2008/06/everywhere-java.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/126831376260677341?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/126831376260677341?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/javachamp/~3/U5iLl5-d4kQ/everywhere-java.html" title="Everywhere Java" /><author><name>Vinod Kumar Kashyap</name><uri>http://www.blogger.com/profile/04741524013101585935</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="15107186906936325442" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://javachamp.blogspot.com/2008/06/everywhere-java.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkcHQ3syeSp7ImA9WxdQE04.&quot;"><id>tag:blogger.com,1999:blog-2859304543308190020.post-6308125758831583192</id><published>2008-06-12T09:23:00.002+05:30</published><updated>2008-06-13T09:37:12.591+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-06-13T09:37:12.591+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="struts2" /><title>Struts2</title><content type="html">Struts 2 is a new framework for the java developers. It is a combination of Struts 1 + Webworks formally known as Struts Ti. It is available with the enhanced quality of code and helps developers to work in a more organized way.&lt;br /&gt;&lt;br /&gt;In built Ajax functionality is a boon for the developers. When I started working on the Struts 2. I felt that it may be very hard to learn but not actually. It is far easier then I thought. I haven’t work on other frameworks like Tapestry, Wicket, Spring etc. but I know what I am doing is good enough for me.&lt;br /&gt;&lt;br /&gt;All frameworks provide there own way of style of coding which are good in there respect.&lt;br /&gt;&lt;br /&gt;In built Interceptors provided a great functionality that helps in lots of situations. The one I like is a WaitAndExecute Interceptor. It is very helpful in situations when your action takes lots of time to execute. This interceptor displays a default page when your action is executing at background&lt;br /&gt;&lt;br /&gt;Lots of more features are there for developers like Ajax functionality, themes to be used on pages, Inversion of Control.&lt;br /&gt;&lt;br /&gt;I know that the documentation is little less but you know when a new technology grows it takes time. Struts 2 also one of them. The latest release of the Struts 2 is 2.0.11 which can be downloaded from &lt;a href="http://struts.apache.org/2.x/"&gt;Struts 2 home&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I had a &lt;a href="http://www.nabble.com/Struts-2-f30929.html"&gt;Struts 2 forum &lt;/a&gt;on the nabble.com which can help you answer all your queries related to the Struts 2. You are welcome to post queries&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2859304543308190020-6308125758831583192?l=javachamp.blogspot.com'/&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/javachamp/~4/U7djhbGnvio" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://javachamp.blogspot.com/feeds/6308125758831583192/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://javachamp.blogspot.com/2008/06/struts2-2.html#comment-form" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/6308125758831583192?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2859304543308190020/posts/default/6308125758831583192?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/javachamp/~3/U7djhbGnvio/struts2-2.html" title="Struts2" /><author><name>Vinod Kumar Kashyap</name><uri>http://www.blogger.com/profile/04741524013101585935</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="15107186906936325442" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">4</thr:total><feedburner:origLink>http://javachamp.blogspot.com/2008/06/struts2-2.html</feedburner:origLink></entry></feed>
