<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7108448873880428735</id><updated>2012-02-16T17:36:40.604-08:00</updated><category term='websphere portal server'/><category term='Java'/><category term='Ant'/><category term='Eclipse'/><title type='text'>mathzprasad</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mathzprasad.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://mathzprasad.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Mathangi Guruprasad</name><uri>http://www.blogger.com/profile/05937795802012211368</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_YjkzlJWJBi8/R3KoEiCYX6I/AAAAAAAAAog/wV8McnhdAmM/S220/IMG_3832.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7108448873880428735.post-8818965377223046293</id><published>2010-01-25T06:30:00.000-08:00</published><updated>2010-01-25T06:20:20.544-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='websphere portal server'/><title type='text'>8. Simple portlet - folder structure in RAD</title><content type='html'>I created an empty portlet and enable JSTL for the portlet.&lt;br /&gt;RAD creates all the basic files required for the portlet.&lt;br /&gt;&lt;br /&gt;This is the RAD folder structure for an empty portlet. This is how a portlet is shown in 'Enterprise Explorer' window.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://mathzprasad.wordpress.com/files/2009/09/slide1.jpg"&gt;&lt;img src="http://mathzprasad.wordpress.com/files/2009/09/slide1.jpg" alt="Slide1" title="Slide1" width="700" height="600" class="aligncenter size-full wp-image-158" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The navigator shows the exact folder structure on the file system. &lt;br /&gt;&lt;br /&gt;&lt;a href="http://mathzprasad.wordpress.com/files/2009/09/slide2.jpg"&gt;&lt;img src="http://mathzprasad.wordpress.com/files/2009/09/slide2.jpg" alt="Slide2" title="Slide2" width="700" height="720" class="aligncenter size-full wp-image-159" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7108448873880428735-8818965377223046293?l=mathzprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathzprasad.blogspot.com/feeds/8818965377223046293/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mathzprasad.blogspot.com/2010/01/8-simple-portlet-folder-structure-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/8818965377223046293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/8818965377223046293'/><link rel='alternate' type='text/html' href='http://mathzprasad.blogspot.com/2010/01/8-simple-portlet-folder-structure-in.html' title='8. Simple portlet - folder structure in RAD'/><author><name>Mathangi Guruprasad</name><uri>http://www.blogger.com/profile/05937795802012211368</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_YjkzlJWJBi8/R3KoEiCYX6I/AAAAAAAAAog/wV8McnhdAmM/S220/IMG_3832.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7108448873880428735.post-8280435198146896303</id><published>2010-01-25T06:27:00.001-08:00</published><updated>2010-01-25T06:33:19.890-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ant'/><title type='text'>ANT - Compiling code for a specific JRE.</title><content type='html'>If you want to build your application with a specific VM, there is a property "target" in the ant task "javac".&lt;br /&gt;&lt;br /&gt;This will let you generate class files for specific VM version (e.g., 1.1 or 1.2).  In particular, if you use JDK 1.4+ the generated classes will not be usable for a 1.1 Java VM unless you explicitly set this attribute to the value 1.1 (which is the default value for JDK 1.1 to 1.3).&lt;br /&gt;&lt;br /&gt;By default value this value is set to the JVM that is running Ant.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7108448873880428735-8280435198146896303?l=mathzprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathzprasad.blogspot.com/feeds/8280435198146896303/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mathzprasad.blogspot.com/2010/01/ant-compiling-code-for-specific-jre.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/8280435198146896303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/8280435198146896303'/><link rel='alternate' type='text/html' href='http://mathzprasad.blogspot.com/2010/01/ant-compiling-code-for-specific-jre.html' title='ANT - Compiling code for a specific JRE.'/><author><name>Mathangi Guruprasad</name><uri>http://www.blogger.com/profile/05937795802012211368</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_YjkzlJWJBi8/R3KoEiCYX6I/AAAAAAAAAog/wV8McnhdAmM/S220/IMG_3832.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7108448873880428735.post-6309269428361808595</id><published>2010-01-25T06:17:00.001-08:00</published><updated>2010-01-25T06:17:33.870-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='websphere portal server'/><title type='text'>7. Portlet LifeCycle</title><content type='html'>Every portlet class should extend javax.portlet.GenericPortlet. Every Portlet executes certain methods that constitutes the lifecycle of a portlet.&lt;br /&gt;&lt;br /&gt;Every portlet, (similar to Servlets) &lt;br /&gt;1. gets intialilzed through init() method.&lt;br /&gt;2. serves the requests through renderRequest() and processAction() methods&lt;br /&gt;3. reliquishes the resources and ends its life through the destroy() method.&lt;br /&gt;&lt;br /&gt;Whenever an action event is triggered in the portlet, the processAction() method is called.&lt;br /&gt;This processAction() performs any task that should be executed for that event and passes the control to renderRequest() method. Only one portlet action is triggered each time.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The renderRequest() method is responsible for producing the markup that is based on the state and mode of the portlet.&lt;br /&gt;The portlet sets the MIME type on the response and generates the markup either by directly writing to the output stream or by including a servlet or JSP that generates the markup.&lt;br /&gt;&lt;br /&gt;Let us consider a portal that has three portlets, A,B and C. An action event can be triggered in any one of the three portlets. Let us say 'A' triggers an event.&lt;br /&gt;The whole portal page is rendered. &lt;br /&gt;&lt;br /&gt;Here is what happens.&lt;br /&gt;&lt;br /&gt;1.processAction() of portlet A is invoked and executed.&lt;br /&gt;2.Once processAction() of portlet A is completed, render process starts.The renderRequest() methods of each portlet is called.&lt;br /&gt;3.The final portal page is rendered to the user.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://mathzprasad.wordpress.com/files/2009/09/lifecycle1.jpg"&gt;&lt;img src="http://mathzprasad.wordpress.com/files/2009/09/lifecycle1.jpg" alt="lifecycle" title="lifecycle" width="600" height="561" class="aligncenter size-full wp-image-153" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Next: &lt;a href="http://mathzprasad.wordpress.com/2009/09/03/8-simple-portlet-folder-structure-in-rad/"&gt;Simple portlet folder structure in RAD&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7108448873880428735-6309269428361808595?l=mathzprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathzprasad.blogspot.com/feeds/6309269428361808595/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mathzprasad.blogspot.com/2010/01/7-portlet-lifecycle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/6309269428361808595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/6309269428361808595'/><link rel='alternate' type='text/html' href='http://mathzprasad.blogspot.com/2010/01/7-portlet-lifecycle.html' title='7. Portlet LifeCycle'/><author><name>Mathangi Guruprasad</name><uri>http://www.blogger.com/profile/05937795802012211368</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_YjkzlJWJBi8/R3KoEiCYX6I/AAAAAAAAAog/wV8McnhdAmM/S220/IMG_3832.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7108448873880428735.post-7160014744374931394</id><published>2010-01-25T06:16:00.002-08:00</published><updated>2010-01-25T06:17:04.413-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='websphere portal server'/><title type='text'>6. Websphere portal application terminology</title><content type='html'>&lt;strong&gt;Portlets &lt;/strong&gt;&lt;br /&gt;Portlets are Java technology based web components that process requests and generate dynamic content. Portal is just an application that displays some page content.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Portlet Application&lt;/strong&gt;&lt;br /&gt;One or more related portlets packaged together. All portlets packaged together share the same context and resources.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Page&lt;/strong&gt;&lt;br /&gt;A page is a place holder for one or more portlets&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Layout&lt;/strong&gt;&lt;br /&gt;This is the way portlets are arranged in a page. This basically defines the number of content areas in a page.&lt;br /&gt;Each portal page is subdivided into one or more content areas. Each content area can contain one or more portlets.The portal administrator or a user who has authority to manage a page can control whether others who have authority to edit the page can move, edit or delete the content areas and the portlets on the page.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Themes&lt;/strong&gt;&lt;br /&gt;Themes represent the overall look and feel of the portal, including colors, images&lt;br /&gt;and fonts.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Skins&lt;/strong&gt;&lt;br /&gt;Skin refers to the appearance an individual portlet. Each portlet can have its own skin.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;State &lt;/strong&gt;&lt;br /&gt;The portlets can be in maximized,minimized or normal state. This is the state of the window in which the portlet output will be displayed.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Mode&lt;/strong&gt; &lt;br /&gt;For the current request, the task and the content the portlet generates is defined by the mode.&lt;br /&gt;When the content is displayed to the user, the portlet is in view mode. In this mode, the portlet just renders the markup for the page.The edit mode gets input from the user and the Help mode is used to show a help screen. A portlet can also have other custom optional modes.&lt;br /&gt;&lt;br /&gt;Next: &lt;a href="http://mathzprasad.wordpress.com/2009/09/03/7-portlet-lifecycle/"&gt;Portlet Lifecycle&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7108448873880428735-7160014744374931394?l=mathzprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathzprasad.blogspot.com/feeds/7160014744374931394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mathzprasad.blogspot.com/2010/01/6-websphere-portal-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/7160014744374931394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/7160014744374931394'/><link rel='alternate' type='text/html' href='http://mathzprasad.blogspot.com/2010/01/6-websphere-portal-application.html' title='6. Websphere portal application terminology'/><author><name>Mathangi Guruprasad</name><uri>http://www.blogger.com/profile/05937795802012211368</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_YjkzlJWJBi8/R3KoEiCYX6I/AAAAAAAAAog/wV8McnhdAmM/S220/IMG_3832.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7108448873880428735.post-5556527325856363437</id><published>2010-01-25T06:16:00.001-08:00</published><updated>2010-01-25T06:16:27.476-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='websphere portal server'/><title type='text'>5. WPS folder structure</title><content type='html'>&lt;strong&gt;Where can I locate the deployed application in WPS folder?&lt;/strong&gt;&lt;br /&gt;After deploying the Lesson_4 portlet, I got interested to know where it is exactly placed in the websphere folder structure.&lt;br /&gt;&lt;br /&gt;D:/IBM/Websphere is my installation directory&lt;br /&gt;There are three folders in this directory - Appserver,PortalServer,wp_profile.&lt;br /&gt;Under “installedApps\” folder of this profile, you will find many EAR files deployed.&lt;br /&gt;&lt;br /&gt;The files in the wp_profile directory are writable, whereas the files in the PortalServer directory contains files that are private to the portal server. These are read only.&lt;br /&gt;&lt;br /&gt;The folder "installedapps" under wp_profile contains the files we deploy using the managemnet console.&lt;br /&gt;In this folder, there is another folder with the node name(rocky is my node). Under rocky, we can find "PA_Lesson_4.ear", the Lesson_4 portlet we just deployed.&lt;br /&gt;&lt;br /&gt;The important folders and their use is shown in the picture.&lt;br /&gt;&lt;a href="http://mathzprasad.wordpress.com/files/2009/08/wps_folders.jpg"&gt;&lt;img class="alignnone size-full wp-image-138" title="WPS Folders" src="http://mathzprasad.wordpress.com/files/2009/08/wps_folders.jpg" alt="WPS Folders" width="650" height="650" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Next: &lt;a href="http://mathzprasad.wordpress.com/2009/09/02/websphere-portal-application-terminology/"&gt;&lt;br /&gt;Websphere portal application termminology&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7108448873880428735-5556527325856363437?l=mathzprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathzprasad.blogspot.com/feeds/5556527325856363437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mathzprasad.blogspot.com/2010/01/5-wps-folder-structure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/5556527325856363437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/5556527325856363437'/><link rel='alternate' type='text/html' href='http://mathzprasad.blogspot.com/2010/01/5-wps-folder-structure.html' title='5. WPS folder structure'/><author><name>Mathangi Guruprasad</name><uri>http://www.blogger.com/profile/05937795802012211368</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_YjkzlJWJBi8/R3KoEiCYX6I/AAAAAAAAAog/wV8McnhdAmM/S220/IMG_3832.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7108448873880428735.post-1533153531072120536</id><published>2010-01-25T06:14:00.002-08:00</published><updated>2010-01-25T06:15:22.284-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='websphere portal server'/><title type='text'>4. Creating a simple Portlet using RAD</title><content type='html'>Portlets are the core of webSphere Portal. Portles are individual applications that can be developed,deployed and managed independently.&lt;br /&gt;Portlets have multiple states and diiferent modes. They can trigger events.&lt;br /&gt;Portlets run inside a portlet container and can be depolyed or configured without stopping the server.&lt;br /&gt;&lt;br /&gt;Portlets can run in different modes. When the portlet is intially displayed to the user, it is in the view mode.&lt;br /&gt;When the user enters some data, it is in edit mode.Each portlet can be displayed in different states - normal,minimized (where the title bar alone is displayed),maximized (where the portal takes the whole page replacing the view of other portlets.&lt;br /&gt;&lt;br /&gt;In RAD using the Portal Project, we can create a simple portlet and deploy it.&lt;br /&gt;&lt;a href="http://mathzprasad.wordpress.com/files/2009/08/wps_rad_less41.ppt"&gt;&lt;img class="alignnone size-full wp-image-126" title="images" src="http://mathzprasad.wordpress.com/files/2009/08/images.jpg" alt="images" width="15" height="15" /&gt;Simple portlet using RAD.&lt;/a&gt;&lt;br /&gt;This presentation demonstrates how to create a basic portlet and deploy it in WPS.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Next: &lt;a href="http://mathzprasad.wordpress.com/2009/08/28/5-wps-folder-structure/"&gt;WPS folder structure&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7108448873880428735-1533153531072120536?l=mathzprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathzprasad.blogspot.com/feeds/1533153531072120536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mathzprasad.blogspot.com/2010/01/4-creating-simple-portlet-using-rad.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/1533153531072120536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/1533153531072120536'/><link rel='alternate' type='text/html' href='http://mathzprasad.blogspot.com/2010/01/4-creating-simple-portlet-using-rad.html' title='4. Creating a simple Portlet using RAD'/><author><name>Mathangi Guruprasad</name><uri>http://www.blogger.com/profile/05937795802012211368</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_YjkzlJWJBi8/R3KoEiCYX6I/AAAAAAAAAog/wV8McnhdAmM/S220/IMG_3832.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7108448873880428735.post-7421701291365163477</id><published>2010-01-25T06:14:00.001-08:00</published><updated>2010-01-25T06:14:43.068-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='websphere portal server'/><title type='text'>3. Configuring RAD with WebSphere Portal</title><content type='html'>&lt;strong&gt;How to configure RAD to use the WPS portal server?&lt;/strong&gt;&lt;br /&gt;1.Run RAD.&lt;br /&gt;2.In the 'File --&amp;gt; New' Menu, select 'Server'&lt;br /&gt;Click Next&lt;br /&gt;&lt;img class="aligncenter size-full wp-image-28" title="newServer" src="http://mathzprasad.wordpress.com/files/2009/08/newserver.jpg" alt="2" width="525" height="500" /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;3.Select Webspeher portal server 6.1 and define the server by entering the host name.&lt;br /&gt;Click Next.&lt;br /&gt;&lt;img class="aligncenter size-full wp-image-28" title="defineServer" src="http://mathzprasad.wordpress.com/files/2009/08/defineserver.jpg" alt="2" width="525" height="713" /&gt;&lt;br /&gt;&lt;br /&gt;4.Enter the websphere settings.&lt;br /&gt;Check the security enabled on this server, if there is any user name/password you have to provide to deploy the applications.&lt;br /&gt;Then 'Test Connection'.&lt;br /&gt;&lt;img src="http://mathzprasad.wordpress.com/files/2009/08/wpssettings1.jpg" alt="WPSSettings" title="WPSSettings" width="675" height="576" class="aligncenter size-full wp-image-105" /&gt;&lt;br /&gt;&lt;br /&gt;5.If the connection is successful, a message is shown.&lt;br /&gt;Click Next.&lt;br /&gt;&lt;br /&gt;&lt;img class="aligncenter size-full wp-image-28" title="testConnection" src="http://mathzprasad.wordpress.com/files/2009/08/testconnection.jpg" alt="2" width="675" height="532" /&gt;&lt;br /&gt;&lt;br /&gt;6.In the 'Window--&amp;gt;show View' menu, select the 'Servers' window.&lt;br /&gt;&lt;br /&gt;&lt;img class="aligncenter size-full wp-image-28" title="serverWindow" src="http://mathzprasad.wordpress.com/files/2009/08/serverwindow.jpg" alt="2" width="675" height="460" /&gt;&lt;br /&gt;&lt;br /&gt;This will list the portal server we just configured and its status.&lt;br /&gt;&lt;br /&gt;Next: &lt;a href="http://mathzprasad.wordpress.com/2009/08/27/4-creating-a-simple-portlet-using-rad/"&gt;Creating a simple portlet using RAD&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7108448873880428735-7421701291365163477?l=mathzprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathzprasad.blogspot.com/feeds/7421701291365163477/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mathzprasad.blogspot.com/2010/01/3-configuring-rad-with-websphere-portal.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/7421701291365163477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/7421701291365163477'/><link rel='alternate' type='text/html' href='http://mathzprasad.blogspot.com/2010/01/3-configuring-rad-with-websphere-portal.html' title='3. Configuring RAD with WebSphere Portal'/><author><name>Mathangi Guruprasad</name><uri>http://www.blogger.com/profile/05937795802012211368</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_YjkzlJWJBi8/R3KoEiCYX6I/AAAAAAAAAog/wV8McnhdAmM/S220/IMG_3832.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7108448873880428735.post-2959679852368619549</id><published>2010-01-25T06:13:00.000-08:00</published><updated>2010-01-25T06:14:09.917-08:00</updated><title type='text'>2. Install, Setup and Configuration of a WPS 6.1 Developer Environment</title><content type='html'>For learning WPS 6.1, the step would be to set up the dev environment.&lt;br /&gt;For developing portlets Rational Application Developer can be used. Also Websphere Portlet Factory can be used.&lt;br /&gt;&lt;br /&gt;For certification, we have the following topics to learn.&lt;br /&gt;Compile, packaging, and deploying portal artifacts using Rational Application Developer&lt;br /&gt;Configuring Rational Application Developer for remote testing and debugging with WebSphere Portal&lt;br /&gt;Create portlets in Rational Application Developer and WebSphere Portlet Factory&lt;br /&gt;Creating Portal projects in Rational Application Developer&lt;br /&gt;&lt;br /&gt;So I installed RAD. It takes around 3GB in my machine.&lt;br /&gt;WPS 6.1 is also installed. This took another 3GB.&lt;br /&gt;Both of them comfortably running in a 4GB Vista machine. &lt;br /&gt;This is my dev environment.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How to run WPS 6.1?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Use cmd prompt and navigate to the \AppServer\bin directory.&lt;br /&gt;&lt;br /&gt;Following shows the list of options for StartServer.bat&lt;br /&gt;D:\IBM\WebSphere\AppServer\bin&amp;gt;startServer.bat&lt;br /&gt;Usage: startServer  [options]&lt;br /&gt;        options: -nowait&lt;br /&gt;                 -quiet&lt;br /&gt;                 -logfile &lt;br /&gt;                 -replacelog&lt;br /&gt;                 -trace&lt;br /&gt;                 -script [] [-background]&lt;br /&gt;                 -timeout &lt;br /&gt;                 -statusport &lt;br /&gt;                 -profileName &lt;br /&gt;                 -recovery&lt;br /&gt;                 -help&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Run startServer.bat &lt;br /&gt;D:\IBM\WebSphere\AppServer\bin&amp;gt;startServer.bat &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;D:\IBM\WebSphere\AppServer\bin&amp;gt;startServer.bat WebSphere_Portal -trace&lt;br /&gt;ADMU0116I: Tool information is being logged in file&lt;br /&gt;           D:\IBM\WebSphere\wp_profile\logs\WebSphere_Portal\startServer.log&lt;br /&gt;ADMU0128I: Starting tool with the wp_profile profile&lt;br /&gt;ADMU3100I: Reading configuration for server: WebSphere_Portal&lt;br /&gt;ADMU3200I: Server launched. Waiting for initialization status.&lt;br /&gt;ADMU3000I: Server WebSphere_Portal open for e-business; process id is 5836&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How will I know that the server is running?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;While installing, I had configured a host, rocky3, which listens to the default port of the WPS 10040.&lt;br /&gt;&lt;br /&gt;Open a browser and use the following url.&lt;br /&gt;&lt;br /&gt;http://:10040/wps/myportal&lt;br /&gt;&lt;br /&gt;This will open a page, telling us the server is working.&lt;br /&gt;&lt;img src="http://mathzprasad.wordpress.com/files/2009/08/loginscreen2.jpg" title="loginScreen" width="573" height="540" class="alignleftsize-full wp-image-83" /&gt;&lt;br /&gt;&lt;strong&gt;How to stop the server?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Following shows the list of options for stopServer.bat&lt;br /&gt;&lt;br /&gt;D:\IBM\WebSphere\AppServer\bin&amp;gt;stopServer.bat&lt;br /&gt;Usage: stopServer  [options]&lt;br /&gt;        options: -nowait&lt;br /&gt;                 -quiet&lt;br /&gt;                 -logfile &lt;br /&gt;                 -replacelog&lt;br /&gt;                 -trace&lt;br /&gt;                 -timeout &lt;br /&gt;                 -statusport &lt;br /&gt;                 -conntype &lt;br /&gt;                 -port &lt;br /&gt;                 -username &lt;br /&gt;                 -password &lt;br /&gt;                 -profileName &lt;br /&gt;                 -help&lt;br /&gt;&lt;br /&gt;Run the stopServer.bat&lt;br /&gt;D:\IBM\WebSphere\AppServer\bin&amp;gt;stopServer.bat WebSphere_Portal &lt;br /&gt;ADMU0116I: Tool information is being logged in file&lt;br /&gt;           D:\IBM\WebSphere\wp_profile\logs\WebSphere_Portal\stopServer.log&lt;br /&gt;ADMU0128I: Starting tool with the wp_profile profile&lt;br /&gt;ADMU3100I: Reading configuration for server: WebSphere_Portal&lt;br /&gt;ADMU3201I: Server stop request issued. Waiting for stop status.&lt;br /&gt;ADMU4000I: Server WebSphere_Portal stop completed.&lt;br /&gt;D:\IBM\WebSphere\AppServer\bin&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Next: &lt;a href="http://mathzprasad.wordpress.com/2009/08/25/configuring-rad-with-websphere-portal/?"&gt;Configuring RAD with Websphere Portal &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7108448873880428735-2959679852368619549?l=mathzprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathzprasad.blogspot.com/feeds/2959679852368619549/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mathzprasad.blogspot.com/2010/01/2-install-setup-and-configuration-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/2959679852368619549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/2959679852368619549'/><link rel='alternate' type='text/html' href='http://mathzprasad.blogspot.com/2010/01/2-install-setup-and-configuration-of.html' title='2. Install, Setup and Configuration of a WPS 6.1 Developer Environment'/><author><name>Mathangi Guruprasad</name><uri>http://www.blogger.com/profile/05937795802012211368</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_YjkzlJWJBi8/R3KoEiCYX6I/AAAAAAAAAog/wV8McnhdAmM/S220/IMG_3832.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7108448873880428735.post-840468849675380852</id><published>2010-01-25T06:12:00.000-08:00</published><updated>2010-01-25T06:13:35.639-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='websphere portal server'/><title type='text'>1. Introduction to WPS 6.1</title><content type='html'>&lt;strong&gt;What is a Portal?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;A portal is a web based application that –commonly- provides personalization, single&lt;br /&gt;5 sign on, content aggregation from different sources and hosts the presentation layer of&lt;br /&gt;Information Systems. Aggregation is the action of integrating content from different&lt;br /&gt;sources within a web page. A portal may have sophisticated personalization features to&lt;br /&gt;provide customized content to users. Portal pages may have different set of portlets&lt;br /&gt;creating content for different users.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is a Portlet?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;A portlet is a Java technology based web component, managed by a portlet container, that&lt;br /&gt;processes requests and generates dynamic content. Portlets are used by portals as&lt;br /&gt;pluggable user interface components that provide a presentation layer to Information&lt;br /&gt;Systems.&lt;br /&gt;&lt;br /&gt;When I started learning about portal and portlets, all I know is, a portal would look something like igoogle.&lt;br /&gt;igoogle allows us to have different applications on our home page.&lt;br /&gt;Mine looks something like this.&lt;br /&gt;&lt;img src="http://mathzprasad.wordpress.com/files/2009/08/igoogle2.jpg?w=1024" alt="My iGoogle Page" title="igoogle" width="625" height="461" class="size-large wp-image-50" /&gt;&lt;br /&gt;I have added different applications like gmail,calendar,news,weather forecast, which i use frequently.&lt;br /&gt;Portal lets me personalize my page.&lt;br /&gt;&lt;br /&gt;This post is about my websphere portal server 6.1 learning experience.&lt;br /&gt;&lt;strong&gt;What is new in WPS 6.1?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;JSR 286 complaint.&lt;/strong&gt;&lt;br /&gt;First feature of JSR 286 is the portlet events, in which portlets trigger events which are relayed to interested portlets forming a publish subscribe communication model. The event phase of this Inter Portlet Communication does not allow any user interaction. WPS 6.1 extends this feature in which the information propagateed can be controlled by the user. This is called click-to-action. JSR 286 also permits complex java objects to be sent and receive as event payloads.&lt;br /&gt;&lt;br /&gt;For more information: &lt;br /&gt;&lt;a href="http://www.ibm.com/developerworks/websphere/library/techarticles/0809_hepper/0809_hepper.html"&gt;http://www.ibm.com/developerworks/websphere/library/techarticles/0809_hepper/0809_hepper.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Supports WSRP 2.0 (Web Services for Remote Portlets)&lt;/strong&gt;&lt;br /&gt; &lt;br /&gt;JSR 286 defined how local portlets interact with a Java-based portal; WSRP 2.0 defines how remote portlets interact with a portal that supports SOAP-based Web services.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Web 2.0 capabilities and client side agggregation&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Desktop like experience is provided&lt;br /&gt;Client side appregation populates only necessary parts of a web page. This results in faster rendering of the page and reduced server side processing.&lt;br /&gt;Ref: &lt;a href="http://oreilly.com/web2/archive/what-is-web-20.html"&gt;http://oreilly.com/web2/archive/what-is-web-20.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Livetext&lt;/strong&gt;&lt;br /&gt; Livetext provides a means of end user controlled data transfer between portlet components.&lt;br /&gt;When the user clicks on a source element, the portal displays a context menu listing targets that match the selected source. When a menu item is selected, the portal invokes the corresponding target passing it the source data.&lt;br /&gt;ref : &lt;a href="http://publib.boulder.ibm.com/infocenter/wpexpdoc/v6r1/index.jsp?topic=/com.ibm.wp.exp.doc_v6101/dev/w2_smtg_refrmt.html"&gt;http://publib.boulder.ibm.com/infocenter/wpexpdoc/v6r1/index.jsp?topic=/com.ibm.wp.exp.doc_v6101/dev/w2_smtg_refrmt.html &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;WCM&lt;/strong&gt;&lt;br /&gt;Lotus Web Content Management software allows content to be&lt;br /&gt;Authored, acquired (referenced in external systems) or both.&lt;br /&gt;Managed through library services (versioning, workflow and so on).&lt;br /&gt;Secured programmatically to help ensure proper access.&lt;br /&gt;Deployed to various applications (stand-alone Web sites and portals).&lt;br /&gt;Deployed to various environments (for example, development, staging and production).&lt;br /&gt;Presented (rendered) appropriately to each user via multiple presentation templates and personalization.&lt;br /&gt;&lt;br /&gt;Ref: &lt;a href="ftp://ftp.software.ibm.com/software/lotus/lotusweb/workplace/LOW10771-USEN-01.pdf"&gt;ftp://ftp.software.ibm.com/software/lotus/lotusweb/workplace/LOW10771-USEN-01.pdf&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Next: &lt;a href="http://mathzprasad.wordpress.com/2009/08/25/2-install-setup-and-configuration-of-a-wps-6-1-developer-environment/"&gt;Install-setup-and-configuration-of-a-wps-6-1-developer-environment&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7108448873880428735-840468849675380852?l=mathzprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathzprasad.blogspot.com/feeds/840468849675380852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mathzprasad.blogspot.com/2010/01/1-introduction-to-wps-61.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/840468849675380852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/840468849675380852'/><link rel='alternate' type='text/html' href='http://mathzprasad.blogspot.com/2010/01/1-introduction-to-wps-61.html' title='1. Introduction to WPS 6.1'/><author><name>Mathangi Guruprasad</name><uri>http://www.blogger.com/profile/05937795802012211368</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_YjkzlJWJBi8/R3KoEiCYX6I/AAAAAAAAAog/wV8McnhdAmM/S220/IMG_3832.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7108448873880428735.post-147354917439999217</id><published>2009-10-29T08:27:00.000-07:00</published><updated>2009-10-29T08:42:54.429-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ant'/><title type='text'>Ant and Log4j</title><content type='html'>Using ant script I compiled a application. This app uses log4j for logging.&lt;br /&gt;&lt;br /&gt;The IDE used was eclipse. So, in the start I created jar files using, eclipse "Export" --&gt; "jar" functionality.&lt;br /&gt;&lt;br /&gt;Later I created an ant script.&lt;br /&gt;&lt;br /&gt;When the jar is run, the log file showed unusual output. The file number and line number were not printed.&lt;br /&gt;Instead it displayed ?:?&lt;br /&gt;&lt;br /&gt;This did not happen, when the jar was built with eclipse - export.&lt;br /&gt;&lt;br /&gt;solution:&lt;br /&gt;The build.xml had a javac task.&lt;br /&gt;For enabling the display of line number and the file name, the javac task should have an attribute debug="on".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7108448873880428735-147354917439999217?l=mathzprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathzprasad.blogspot.com/feeds/147354917439999217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mathzprasad.blogspot.com/2009/10/ant-and-log4j.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/147354917439999217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/147354917439999217'/><link rel='alternate' type='text/html' href='http://mathzprasad.blogspot.com/2009/10/ant-and-log4j.html' title='Ant and Log4j'/><author><name>Mathangi Guruprasad</name><uri>http://www.blogger.com/profile/05937795802012211368</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_YjkzlJWJBi8/R3KoEiCYX6I/AAAAAAAAAog/wV8McnhdAmM/S220/IMG_3832.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7108448873880428735.post-6563594056983431446</id><published>2009-10-09T13:29:00.000-07:00</published><updated>2009-10-09T13:43:45.588-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ant'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='Eclipse'/><title type='text'>Eclipse and Ant - Setting JAVA_HOME</title><content type='html'>I tried to create an ant script and run it in eclipse.&lt;br /&gt;&lt;br /&gt;I got "Unable to find a javac compiler;&lt;br /&gt;com.sun.tools.javac.Main is not on the classpath.&lt;br /&gt;Perhaps JAVA_HOME does not point to the JDK"&lt;br /&gt;&lt;br /&gt;I was searching where the VM is specified in eclipse. If the VM is not specified in the command line, eclipse searches the OS path. When we install JREs, this path changes and my eclipse was pointing to a JRE folder.&lt;br /&gt;&lt;br /&gt;Ant needs a jvm to run.&lt;br /&gt;&lt;br /&gt;For this create a shortcut and append the following in the target field.&lt;br /&gt;&lt;br /&gt;-vm ${JVM_HOME}\bin\javaw&lt;br /&gt;&lt;br /&gt;To create a Windows shortcut to an installed Eclipse:&lt;br /&gt;&lt;br /&gt;Navigate to eclipse.exe in Windows Explorer and use Create Shortcut on the content menu. &lt;br /&gt;Select the shortcut and edit its Properties. In the Target: field append the command line arguments. &lt;br /&gt;&lt;br /&gt;This shortcut launches Eclipse with the jvm you defined.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_YjkzlJWJBi8/Ss-gO1YZkkI/AAAAAAAAFYs/oJy_NBMZSUY/s1600-h/vm.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 227px; height: 320px;" src="http://2.bp.blogspot.com/_YjkzlJWJBi8/Ss-gO1YZkkI/AAAAAAAAFYs/oJy_NBMZSUY/s320/vm.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5390703455693804098" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7108448873880428735-6563594056983431446?l=mathzprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathzprasad.blogspot.com/feeds/6563594056983431446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mathzprasad.blogspot.com/2009/10/eclipse-and-ant-setting-javahome.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/6563594056983431446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/6563594056983431446'/><link rel='alternate' type='text/html' href='http://mathzprasad.blogspot.com/2009/10/eclipse-and-ant-setting-javahome.html' title='Eclipse and Ant - Setting JAVA_HOME'/><author><name>Mathangi Guruprasad</name><uri>http://www.blogger.com/profile/05937795802012211368</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_YjkzlJWJBi8/R3KoEiCYX6I/AAAAAAAAAog/wV8McnhdAmM/S220/IMG_3832.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_YjkzlJWJBi8/Ss-gO1YZkkI/AAAAAAAAFYs/oJy_NBMZSUY/s72-c/vm.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7108448873880428735.post-9071536810211272268</id><published>2009-10-06T13:37:00.000-07:00</published><updated>2009-10-06T13:38:47.206-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Delete directory</title><content type='html'>Following code deletes all the files in the given directory/folder.&lt;br /&gt;&lt;br /&gt; package files;&lt;br /&gt;&lt;br /&gt;import java.io.File;&lt;br /&gt;&lt;br /&gt;public class DirDelete {&lt;br /&gt; public static void main(String[] args) {&lt;br /&gt;  deleteDir(new File ("C:\\sample\\dir1"));&lt;br /&gt; }&lt;br /&gt; public static boolean deleteDir(File dir) {&lt;br /&gt;&lt;br /&gt;  boolean success = true;&lt;br /&gt;  if (dir.isDirectory())&lt;br /&gt;  {&lt;br /&gt;   String[] children = dir.list();&lt;br /&gt;   for (int i=0; i&amp;lt;children.length; i++) {&lt;br /&gt;    try {&lt;br /&gt;     File f = new File(dir, children[i]);&lt;br /&gt;     if (f.isDirectory()){&lt;br /&gt;      deleteDir(f);&lt;br /&gt;     }&lt;br /&gt;     f.delete();&lt;br /&gt;     dir.delete();&lt;br /&gt;    } catch (Exception e) {&lt;br /&gt;     success = false;&lt;br /&gt;     e.printStackTrace();&lt;br /&gt;    }&lt;br /&gt;   }&lt;br /&gt;  }&lt;br /&gt;  return success;       &lt;br /&gt; }&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7108448873880428735-9071536810211272268?l=mathzprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathzprasad.blogspot.com/feeds/9071536810211272268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mathzprasad.blogspot.com/2009/10/delete-directory.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/9071536810211272268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/9071536810211272268'/><link rel='alternate' type='text/html' href='http://mathzprasad.blogspot.com/2009/10/delete-directory.html' title='Delete directory'/><author><name>Mathangi Guruprasad</name><uri>http://www.blogger.com/profile/05937795802012211368</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_YjkzlJWJBi8/R3KoEiCYX6I/AAAAAAAAAog/wV8McnhdAmM/S220/IMG_3832.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7108448873880428735.post-304928462066111507</id><published>2009-10-06T13:34:00.001-07:00</published><updated>2009-10-06T13:36:26.452-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>DateFormatter in Java</title><content type='html'>This is a simple date formatter in java.&lt;br /&gt;&lt;br /&gt;import java.text.DateFormat;&lt;br /&gt;import java.text.ParseException;&lt;br /&gt;import java.text.SimpleDateFormat;&lt;br /&gt;import java.util.Date;&lt;br /&gt;&lt;br /&gt;public class ParseDate {&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt; String a = "Thu Jul 16 06:15:31 IST 2009";&lt;br /&gt; String dateAsStr = "";&lt;br /&gt; DateFormat df = new SimpleDateFormat("EEE MMM d HH:mm:ss z yyyy");&lt;br /&gt; DateFormat outFormat = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss a");&lt;br /&gt; df.setLenient(true);&lt;br /&gt; &lt;br /&gt; Date dt = null;&lt;br /&gt; try&lt;br /&gt; {&lt;br /&gt;  dt = df.parse(a);          &lt;br /&gt;  dateAsStr = outFormat.format(dt);&lt;br /&gt;  &lt;br /&gt; } catch (ParseException e)&lt;br /&gt; {&lt;br /&gt;  e.printStackTrace();&lt;br /&gt; }&lt;br /&gt; System.out.println("dt "+ dateAsStr);&lt;br /&gt;}&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7108448873880428735-304928462066111507?l=mathzprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathzprasad.blogspot.com/feeds/304928462066111507/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mathzprasad.blogspot.com/2009/10/dateformatter-in-java_06.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/304928462066111507'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/304928462066111507'/><link rel='alternate' type='text/html' href='http://mathzprasad.blogspot.com/2009/10/dateformatter-in-java_06.html' title='DateFormatter in Java'/><author><name>Mathangi Guruprasad</name><uri>http://www.blogger.com/profile/05937795802012211368</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_YjkzlJWJBi8/R3KoEiCYX6I/AAAAAAAAAog/wV8McnhdAmM/S220/IMG_3832.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7108448873880428735.post-7432551266810364739</id><published>2009-10-06T13:34:00.000-07:00</published><updated>2009-10-06T13:36:26.149-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>DateFormatter in Java</title><content type='html'>This is a simple date formatter in java.&lt;br /&gt;&lt;br /&gt;import java.text.DateFormat;&lt;br /&gt;import java.text.ParseException;&lt;br /&gt;import java.text.SimpleDateFormat;&lt;br /&gt;import java.util.Date;&lt;br /&gt;&lt;br /&gt;public class ParseDate {&lt;br /&gt;public static void main(String[] args) {&lt;br /&gt; String a = "Thu Jul 16 06:15:31 IST 2009";&lt;br /&gt; String dateAsStr = "";&lt;br /&gt; DateFormat df = new SimpleDateFormat("EEE MMM d HH:mm:ss z yyyy");&lt;br /&gt; DateFormat outFormat = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss a");&lt;br /&gt; df.setLenient(true);&lt;br /&gt; &lt;br /&gt; Date dt = null;&lt;br /&gt; try&lt;br /&gt; {&lt;br /&gt;  dt = df.parse(a);          &lt;br /&gt;  dateAsStr = outFormat.format(dt);&lt;br /&gt;  &lt;br /&gt; } catch (ParseException e)&lt;br /&gt; {&lt;br /&gt;  e.printStackTrace();&lt;br /&gt; }&lt;br /&gt; System.out.println("dt "+ dateAsStr);&lt;br /&gt;}&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7108448873880428735-7432551266810364739?l=mathzprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathzprasad.blogspot.com/feeds/7432551266810364739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mathzprasad.blogspot.com/2009/10/dateformatter-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/7432551266810364739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/7432551266810364739'/><link rel='alternate' type='text/html' href='http://mathzprasad.blogspot.com/2009/10/dateformatter-in-java.html' title='DateFormatter in Java'/><author><name>Mathangi Guruprasad</name><uri>http://www.blogger.com/profile/05937795802012211368</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_YjkzlJWJBi8/R3KoEiCYX6I/AAAAAAAAAog/wV8McnhdAmM/S220/IMG_3832.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7108448873880428735.post-5340733756881033244</id><published>2009-10-06T13:33:00.001-07:00</published><updated>2009-10-06T13:34:02.919-07:00</updated><title type='text'>Strange characters in eclipse editor</title><content type='html'>While typing in eclipse, suddenly some strange characters started appearing,&lt;br /&gt;If I type"/", I get é.&lt;br /&gt;&lt;br /&gt;I tried for a while and restarted eclipse. It started working fine.&lt;br /&gt;&lt;br /&gt;Then 'google' gave me an answer for this strange behaviour.&lt;br /&gt;Eclipse toggles between different modes when you press "Alt + Shift". Clicking on 'Alt'+'Shift' again, I was able to proceed typing using normal letters.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7108448873880428735-5340733756881033244?l=mathzprasad.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mathzprasad.blogspot.com/feeds/5340733756881033244/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mathzprasad.blogspot.com/2009/10/strange-characters-in-eclipse-editor_06.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/5340733756881033244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7108448873880428735/posts/default/5340733756881033244'/><link rel='alternate' type='text/html' href='http://mathzprasad.blogspot.com/2009/10/strange-characters-in-eclipse-editor_06.html' title='Strange characters in eclipse editor'/><author><name>Mathangi Guruprasad</name><uri>http://www.blogger.com/profile/05937795802012211368</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp2.blogger.com/_YjkzlJWJBi8/R3KoEiCYX6I/AAAAAAAAAog/wV8McnhdAmM/S220/IMG_3832.JPG'/></author><thr:total>0</thr:total></entry></feed>
