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

<channel>
	<title>Great Technical Skills</title>
	<atom:link href="http://harryworld.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://harryworld.wordpress.com</link>
	<description>Harry's Learning on Computing and Life</description>
	<lastBuildDate>Mon, 31 Mar 2008 02:36:51 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='harryworld.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/b13503c1f70c613faba2d0e37f3bcac5?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Great Technical Skills</title>
		<link>http://harryworld.wordpress.com</link>
	</image>
			<item>
		<title>My latest SEO site</title>
		<link>http://harryworld.wordpress.com/2008/03/31/my-latest-seo-site/</link>
		<comments>http://harryworld.wordpress.com/2008/03/31/my-latest-seo-site/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 02:36:51 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://harryworld.wordpress.com/2008/03/31/my-latest-seo-site/</guid>
		<description><![CDATA[This site is currently run through the SEO and being indexed to the search engines.
http://WomenPedia.hk
The weired case is that Google put it into its index for a day and remove it. I am not sure what&#8217;s going on.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harryworld.wordpress.com&blog=307931&post=87&subd=harryworld&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This site is currently run through the SEO and being indexed to the search engines.</p>
<p><a href="http://WomenPedia.hk/home/">http://WomenPedia.hk</a></p>
<p>The weired case is that Google put it into its index for a day and remove it. I am not sure what&#8217;s going on.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/harryworld.wordpress.com/87/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/harryworld.wordpress.com/87/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/harryworld.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/harryworld.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/harryworld.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/harryworld.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/harryworld.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/harryworld.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/harryworld.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/harryworld.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/harryworld.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/harryworld.wordpress.com/87/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harryworld.wordpress.com&blog=307931&post=87&subd=harryworld&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://harryworld.wordpress.com/2008/03/31/my-latest-seo-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d7819d02a9362c7525835ce0cfd61b9?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Harry</media:title>
		</media:content>
	</item>
		<item>
		<title>Maven 2: Make the application management better and easier</title>
		<link>http://harryworld.wordpress.com/2007/10/04/maven-2-make-the-application-management-better-and-easier/</link>
		<comments>http://harryworld.wordpress.com/2007/10/04/maven-2-make-the-application-management-better-and-easier/#comments</comments>
		<pubDate>Thu, 04 Oct 2007 02:44:55 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[JAVA]]></category>

		<guid isPermaLink="false">http://harryworld.wordpress.com/2007/10/04/maven-2-make-the-application-management-better-and-easier/</guid>
		<description><![CDATA[I remembered I first know about the name &#8220;Maven&#8221; in my graduate job two years ago. At that time, the version is still Maven 1, which is very different from the current version, in terms of architecture, management flows and many other constraints. Also, what I thought about Maven is just a dummy thing since [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harryworld.wordpress.com&blog=307931&post=82&subd=harryworld&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://harryworld.files.wordpress.com/2007/10/maven_3.jpg" title="maven_3.jpg"></a>I remembered I first know about the name &#8220;Maven&#8221; in my graduate job two years ago. At that time, the version is still Maven 1, which is very different from the current version, in terms of architecture, management flows and many other constraints. Also, what I thought about Maven is just a dummy thing since we used it to do one task only, which is to copy the necessary jar files from &#8220;somewhere&#8221; to the my project folder. That&#8217;s all.</p>
<p>Now, Maven 2 is out for some time already, and because one open-source project that I participated in uses this to build the project. It interests me to take a try. Before anything, I just search for the plugin on Eclipse, which ultimately I want to put all my development stuff to. There are two plugins currently supported according to the Maven site (<a href="http://maven.apache.org/eclipse-plugin.html" target="_blank">http://maven.apache.org/eclipse-plugin.html</a>). I just tried the first one, M2. It is a very simple tool which helps you to create the basic and core pom.xml file, importing those dependencies inside by searching a jar database.</p>
<p>Next, of course I need to setup the Maven 2 libraries and a local repository by installing the <a href="http://maven.apache.org/download.html" target="_blank">Maven program</a>. This is simple and I will skip. Maven 2 has a clear infrastructure that everyone should follow, this not only easy to set everything up, but also enables a good management model. Whenever a Maven user views your project, he will be able to understand the structure of your project.</p>
<p>To setup the project, you should put your class files, webapp files and resources etc. in appropriate <a href="http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html" target="_blank">folder structure</a>. Whenever you run the <em>mvn command</em>, it will go to those pre-defined folder to retrieve the contents and do the required goals.</p>
<p>Besides, for those who used to use <a href="http://www.eclipsetotale.com/tomcatPlugin.html" target="_blank">Tomcat Plugin</a> in Eclipse to run the hot code, you may find the new structure not suitable. For me, I used to put things <em>WEB-INF</em> folder under the root, with all the necessary web application structure set inside. The source could reside in <em>WEB-INF/classes</em> folder, or put somewhere like <em>src</em>. The only difference is the source folder in Java Build Path. After that, in the properties of the project, tick the &#8220;Is a Tomcat Project&#8221; box. Then, the project is included in the tomcat instance.</p>
<p>This works because you can control the project structure as you want. However, Maven 2 is the tool which wants to comes up a general file structure among all Maven 2 projects. Thus, conflicts happen, we cannot use tomcat plugin simply after switching to Maven 2. We need some tricks.</p>
<p>Figure 1</p>
<p><a href="http://harryworld.files.wordpress.com/2007/10/maven_1.jpg" title="maven_1.jpg"><img src="http://harryworld.files.wordpress.com/2007/10/maven_1.jpg" alt="maven_1.jpg" /></a></p>
<p>Figure 2</p>
<p><a href="http://harryworld.files.wordpress.com/2007/10/maven_2.jpg" title="maven_2.jpg"><img src="http://harryworld.files.wordpress.com/2007/10/maven_2.jpg" alt="maven_2.jpg" /></a></p>
<p><strong>Maven 2 with Tomcat Plugin</strong></p>
<p>In order to work, we can do the followings after creating the Maven 2 project.</p>
<ol>
<li>In Figure 3, change the source folder to the new Maven 2 compatible source folders, including usual classes and test classes (if available)</li>
<li>Change the Default output folder to {your-project}/target/{warName}/WEB-INF/classes</li>
<li>In Figure 4, change the Subdirectory to set as application root to /target/{warName}</li>
<li>(Optional)</li>
</ol>
<p>Why I did those steps? You know, <em>target</em> is the folder that Maven 2 put the compiled classes and resources by default before it package the war file. What I did is to send all the compiled things to one place and let Tomcat to read those. By doing this, you can still modify your hot code and run on-the-fly, instead of packaging the war file and copy to the container each time even you add a variable to a class.</p>
<p>Defect</p>
<ul>
<li>One main defect for this approach is that files lie in <em>src/main/webapp</em> cannot be reflected upon editing, since they are not automatically replicated to the <em>target</em> folder.</li>
</ul>
<p>Solution</p>
<ul>
<li>Firstly, I will put all the concurrently modifying JSP files into <em>src/main/java</em> as well, these files will be &#8220;compiled&#8221; and put to the <em>classes</em> folder. With the use of struts in my projects, I redirect the requests to JSP within <em>classes</em>. (This also protects your JSP files from being accessed outside)</li>
<li>Secondly, for the remaining files like javascript, styles, images, etc. I will reside them in <em>src/main/webapp</em>. Each time I changed, I need to run <em>mvn package</em> to let them replicated to the <em>target</em> folder. This action will not bother Tomcat. That means to some extent, it is still play on-the-fly.</li>
</ul>
<p>Figure 3</p>
<p><a href="http://harryworld.files.wordpress.com/2007/10/maven_3.jpg" title="maven_3.jpg"><img src="http://harryworld.files.wordpress.com/2007/10/maven_3.jpg" alt="maven_3.jpg" /></a></p>
<p>Figure 4</p>
<p><a href="http://harryworld.files.wordpress.com/2007/10/maven_4.jpg" title="maven_4.jpg"><img src="http://harryworld.files.wordpress.com/2007/10/maven_4.jpg" alt="maven_4.jpg" /></a></p>
<p><em>References: </em></p>
<p><a href="http://spatula.net/blog/2007/04/how-to-make-eclipse-tomcat-maven-2-and.html" target="_blank">http://spatula.net/blog/2007/04/how-to-make-eclipse-tomcat-maven-2-and.html</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/harryworld.wordpress.com/82/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/harryworld.wordpress.com/82/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/harryworld.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/harryworld.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/harryworld.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/harryworld.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/harryworld.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/harryworld.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/harryworld.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/harryworld.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/harryworld.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/harryworld.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harryworld.wordpress.com&blog=307931&post=82&subd=harryworld&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://harryworld.wordpress.com/2007/10/04/maven-2-make-the-application-management-better-and-easier/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d7819d02a9362c7525835ce0cfd61b9?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Harry</media:title>
		</media:content>

		<media:content url="http://harryworld.files.wordpress.com/2007/10/maven_1.jpg" medium="image">
			<media:title type="html">maven_1.jpg</media:title>
		</media:content>

		<media:content url="http://harryworld.files.wordpress.com/2007/10/maven_2.jpg" medium="image">
			<media:title type="html">maven_2.jpg</media:title>
		</media:content>

		<media:content url="http://harryworld.files.wordpress.com/2007/10/maven_3.jpg" medium="image">
			<media:title type="html">maven_3.jpg</media:title>
		</media:content>

		<media:content url="http://harryworld.files.wordpress.com/2007/10/maven_4.jpg" medium="image">
			<media:title type="html">maven_4.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>JPA 101 Java Persistence Explained</title>
		<link>http://harryworld.wordpress.com/2007/03/07/jpa-101-java-persistence-explained/</link>
		<comments>http://harryworld.wordpress.com/2007/03/07/jpa-101-java-persistence-explained/#comments</comments>
		<pubDate>Wed, 07 Mar 2007 06:31:19 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
		
		<guid isPermaLink="false">http://harryworld.wordpress.com/2007/03/07/jpa-101-java-persistence-explained/</guid>
		<description><![CDATA[Just found a book introduction from TheServerSide.com
This book explains the concept of JPA, with some useful knowledge on the persistence standard, JPA Annotations, Entity Manager and JPA Query Language (also known as EJB-QL), etc. There are examples, and a simple Maven 2 application with MySQL Database, and Hibernate as the persistence provider will be build [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harryworld.wordpress.com&blog=307931&post=80&subd=harryworld&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Just found a book introduction from TheServerSide.com</p>
<p>This book explains the concept of JPA, with some useful knowledge on the persistence standard, JPA Annotations, Entity Manager and JPA Query Language (also known as EJB-QL), etc. There are examples, and a simple Maven 2 application with MySQL Database, and Hibernate as the persistence provider will be build after reading through the book. I hope this will be useful for my development using JPA.</p>
<p>Post on TheServerSide<br />
<a href="http://www.theserverside.com/tt/articles/article.tss?l=JPA101_Chapter&amp;asrc=EM_NLN_1083916&amp;uid=5980469" target="_blank">JPA101 Chapter</a><br />
Author: Chris Maki&#8217;s Blog<br />
<a href="http://jroller.com/page/cmaki" target="_blank">http://jroller.com/page/cmaki</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/harryworld.wordpress.com/80/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/harryworld.wordpress.com/80/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/harryworld.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/harryworld.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/harryworld.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/harryworld.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/harryworld.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/harryworld.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/harryworld.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/harryworld.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/harryworld.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/harryworld.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harryworld.wordpress.com&blog=307931&post=80&subd=harryworld&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://harryworld.wordpress.com/2007/03/07/jpa-101-java-persistence-explained/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d7819d02a9362c7525835ce0cfd61b9?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Harry</media:title>
		</media:content>
	</item>
		<item>
		<title>Import Excel data into MySQL</title>
		<link>http://harryworld.wordpress.com/2007/03/05/import-excel-data-into-mysql/</link>
		<comments>http://harryworld.wordpress.com/2007/03/05/import-excel-data-into-mysql/#comments</comments>
		<pubDate>Mon, 05 Mar 2007 06:15:55 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[Computing]]></category>

		<guid isPermaLink="false">http://harryworld.wordpress.com/2007/03/05/import-excel-data-into-mysql/</guid>
		<description><![CDATA[I want to import data in an Excel file into MySQL table. MySQL tools like MySQL Query Browser does not provide such function. There are sharewares on the web which provide this function. Instead, you can use function that already provided by MySQL, easy and quick solution.
First, you need to export the data to csv [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harryworld.wordpress.com&blog=307931&post=79&subd=harryworld&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I want to import data in an Excel file into MySQL table. MySQL tools like MySQL Query Browser does not provide such function. There are sharewares on the web which provide this function. Instead, you can use function that already provided by MySQL, easy and quick solution.</p>
<p>First, you need to export the data to csv file. Remove any csv headers from the file. After that, run the following script in MySQL Console:</p>
<blockquote>
<pre><code>load data local infile 'uniq.csv' into table tblUniq
fields terminated by ','
enclosed by '"'
lines terminated by '\r\n'
(uniqName, uniqCity, uniqComments)</code></pre>
</blockquote>
<p>This script loads the file uniq.csv from the local file directory, and imports to table tblUniq. It tokenized the field by terminator, and enclosed all fields with specified character.</p>
<p>In using this script, you need to take care of the special characters in the fields. When exporting csv, if one of the fields got a comma, this field will be enclosed by &#8221; as well. It will cause conflict with the above script. So, to solve this, put your csv file into a Text editor and do some customization before using the script. For example, use &#8220;|&#8221; instead of &#8220;,&#8221; for the terminator, etc.</p>
<p>Reference:</p>
<p><a href="http://www.thejackol.com/2005/02/28/import-excelcsv-into-mysql/#comment-50169" target="_blank">http://www.thejackol.com/2005/02/28/import-excelcsv-into-mysql/#comment-50169</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/harryworld.wordpress.com/79/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/harryworld.wordpress.com/79/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/harryworld.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/harryworld.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/harryworld.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/harryworld.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/harryworld.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/harryworld.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/harryworld.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/harryworld.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/harryworld.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/harryworld.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harryworld.wordpress.com&blog=307931&post=79&subd=harryworld&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://harryworld.wordpress.com/2007/03/05/import-excel-data-into-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d7819d02a9362c7525835ce0cfd61b9?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Harry</media:title>
		</media:content>
	</item>
		<item>
		<title>Install CA-signed Certificate</title>
		<link>http://harryworld.wordpress.com/2007/02/28/install-ca-signed-certificate/</link>
		<comments>http://harryworld.wordpress.com/2007/02/28/install-ca-signed-certificate/#comments</comments>
		<pubDate>Wed, 28 Feb 2007 08:11:42 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[Computing]]></category>

		<guid isPermaLink="false">http://harryworld.wordpress.com/2007/02/28/install-ca-signed-certificate/</guid>
		<description><![CDATA[These days I have a very good experience on installing a CA-signed certificate to our Faculty server. I found that it is much more complicated than a self-signed certificate that I used before. There are lots of formats, types and others things that arouse my concerns during the installation. Let&#8217;s walk through some of these.
Before [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harryworld.wordpress.com&blog=307931&post=78&subd=harryworld&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>These days I have a very good experience on installing a CA-signed certificate to our Faculty server. I found that it is much more complicated than a self-signed certificate that I used before. There are lots of formats, types and others things that arouse my concerns during the installation. Let&#8217;s walk through some of these.</p>
<p>Before my work, the Faculty of mine bought a certificate from a CA named GeoTrust (which also refers to Equifax). The certificate from this CA has already been installed in more than 90% browsers nowadays, so it is quite a common one compared with those like Verisign and Thawte. That certificate bought is used on one Apache HTTP Server, and my work is to install it to Apache Tomcat on the same machine.</p>
<p>For the usage in Apache HTTP Server, there are two files, which are named like mycert.crt and mykey.key. These two files are the public key and private key respectively. I don&#8217;t know what format they are, but I can&#8217;t use either of them as the keystore provided to tomcat. Tomcat will throw javax.net.ssl.SSLException and saying that: No available certificate or key crresponds to the SSL cipher suites which are enabled.</p>
<p>After that, I sent an email to the support and asked for help. The guy there provide me a way to go, which is to convert the certificate to the format that Tomcat can use. The procedure is like this:</p>
<p>1. Run the following command to create a keystore named &#8220;mycert.p12&#8243; with an alias &#8220;tomcat&#8221; inside (The alias must be &#8220;tomcat&#8221;, as it is recognized by Apache Tomcat)</p>
<blockquote><p><font color="#0000ff" face="Arial" size="2">openssl pkcs12 -export -in mycert.crt  -inkey mykey.key -out mycert.p12 -name tomcat -CAfile GeoTrustRootCA.cer -caname root -chain</font></p>
<p><font size="2"><font face="Arial"><font color="#0000ff">Where GeoTrustRootCA.cer&#8217; is the GeoTrust Root CA available for download here: <a href="http://www.geocerts.com/support/roots.php" title="http://www.geocerts.com/support/roots.php">http://www.geocerts.com/support/roots.php</a></font></font></font><font color="#0000ff" face="Arial" size="2"> , &#8216;mycert.crt&#8217; is your current ssl certificate, &#8216;mykey.key&#8217; is your current  private key.</font></p></blockquote>
<p>For the GeoTrust Root CA, either Base-64 and DER format can be used. There is no difference after all the works.</p>
<p>2. After running the command, it will ask you for the password, typed in &#8220;changeit&#8221;. Oh, why &#8220;changeit&#8221;? Actually, the password is up to you, but it is used by Tomcat to access this keystore. If you used other password, you have to explicitly provided in the Tomcat configuration, which we will talk in Step 4.</p>
<p>3. The keystore named &#8220;mycert.p12&#8243; is created, it is a X.509 certificate with PKCS#12 format. The format is different from the self-signed certificate created by &#8220;keytool&#8221;, which is JKS (Java KeyStore)</p>
<p>4. Configure the Tomcat server to switch on secure connection as usual with some additional settings as below:</p>
<blockquote><p><font color="#0000ff" face="Arial" size="2">You then have to specify Tomcat that the  keystore is in pkcs12 format by inserting keystoreType=&#8221;pkcs12&#8243; in the ssl  configuration, also the keystore location pointing to where mycert.p12 is located.</font></p></blockquote>
<p>After configuring this, the SSL should be ready using this CA-signed certificate.</p>
<p><i>Remarks:</i></p>
<p><i>There are still some questions that I didn&#8217;t solve, which are all related to the command used in Step 1. Some of the options like &#8220;-caname&#8221; and &#8220;-chain&#8221; are still unknown to me. Perhaps, someone can give me an answer.</i></p>
<p>Reference:</p>
<p><a href="http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html" target="_blank">http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html</a><br />
<a href="http://www.geocerts.com/support/install/install_tomcat.php" target="_blank">http://www.geocerts.com/support/install/install_tomcat.php</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/harryworld.wordpress.com/78/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/harryworld.wordpress.com/78/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/harryworld.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/harryworld.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/harryworld.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/harryworld.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/harryworld.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/harryworld.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/harryworld.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/harryworld.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/harryworld.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/harryworld.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harryworld.wordpress.com&blog=307931&post=78&subd=harryworld&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://harryworld.wordpress.com/2007/02/28/install-ca-signed-certificate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d7819d02a9362c7525835ce0cfd61b9?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Harry</media:title>
		</media:content>
	</item>
		<item>
		<title>Changes in XML Schema for web.xml</title>
		<link>http://harryworld.wordpress.com/2007/02/15/changes-in-xml-schema-for-webxml/</link>
		<comments>http://harryworld.wordpress.com/2007/02/15/changes-in-xml-schema-for-webxml/#comments</comments>
		<pubDate>Thu, 15 Feb 2007 07:17:58 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
		
		<guid isPermaLink="false">http://harryworld.wordpress.com/2007/02/15/changes-in-xml-schema-for-webxml/</guid>
		<description><![CDATA[One of the major change for this 2.4 version of web.xml is the ordering of tags. As the use of XML Schema provides the flexibility on the ordering of tags, you can put the tag in any ordering as you like.
Besides this, one another change is the use of tag library. Starting from 2.4, we [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harryworld.wordpress.com&blog=307931&post=77&subd=harryworld&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>One of the major change for this 2.4 version of web.xml is the ordering of tags. As the use of XML Schema provides the flexibility on the ordering of tags, you can put the tag in any ordering as you like.</p>
<p>Besides this, one another change is the use of tag library. Starting from 2.4, we have to surround all &lt;taglib&gt; with a new tag &lt;jsp-config&gt;, as required by the mechanism of XML Schema, like the following:</p>
<blockquote><p>&lt;web-app xmlns=&#8221;http://java.sun.com/xml/ns/j2ee&#8221;<br />
xmlns:xsi=&#8221;http://www.w3.org/2001/XMLSchema-instance&#8221;<br />
xsi:schemaLocation=&#8221;http://java.sun.com/xml/ns/j2ee<br />
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd&#8221;<br />
version=&#8221;2.4&#8243;&gt;</p>
<blockquote><p>&lt;description&gt;StrutsTest&lt;/description&gt;</p></blockquote>
<blockquote><p>&lt;jsp-config&gt;</p></blockquote>
<blockquote>
<blockquote><p>&lt;taglib&gt;<br />
&lt;taglib-uri&gt;http://jakarta.apache.org/tomcat/debug-taglib&lt;/taglib-uri&gt;<br />
&lt;taglib-location&gt;/WEB-INF/jsp/debug-taglib.tld&lt;/taglib-location&gt;<br />
&lt;/taglib&gt;</p></blockquote>
</blockquote>
<blockquote><p>&lt;/jsp-config&gt;</p></blockquote>
<p>&lt;/web-app&gt;</p></blockquote>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/harryworld.wordpress.com/77/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/harryworld.wordpress.com/77/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/harryworld.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/harryworld.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/harryworld.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/harryworld.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/harryworld.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/harryworld.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/harryworld.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/harryworld.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/harryworld.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/harryworld.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harryworld.wordpress.com&blog=307931&post=77&subd=harryworld&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://harryworld.wordpress.com/2007/02/15/changes-in-xml-schema-for-webxml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d7819d02a9362c7525835ce0cfd61b9?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Harry</media:title>
		</media:content>
	</item>
		<item>
		<title>Learning EJB-QL</title>
		<link>http://harryworld.wordpress.com/2007/02/14/learning-ejb-ql/</link>
		<comments>http://harryworld.wordpress.com/2007/02/14/learning-ejb-ql/#comments</comments>
		<pubDate>Wed, 14 Feb 2007 06:12:53 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
		
		<guid isPermaLink="false">http://harryworld.wordpress.com/2007/02/14/learning-ejb-ql/</guid>
		<description><![CDATA[Seems that there is still not much resource on Java Persistence, which is included in EJB3. If I want to learn more about EJB-QL, the only way is to look at the resources of EJB2.1. The articles may not be updated, but most of the contents still apply.
However, I found one EJB-QL that is in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harryworld.wordpress.com&blog=307931&post=76&subd=harryworld&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Seems that there is still not much resource on Java Persistence, which is included in EJB3. If I want to learn more about EJB-QL, the only way is to look at the resources of EJB2.1. The articles may not be updated, but most of the contents still apply.</p>
<p>However, I found one EJB-QL that is in the spec. seems not supported by most of the vendors, which is OFFSET and LIMIT. I found some articles on people asking Sun about the issue, but no one answers. Then I do a search on Google, and only found Resin which supports it.</p>
<p>These keywords are used together to limit the number of entity instances returned in a list, especially useful for entity storing up to ten thousand records. Your memory size must be a main issue by then. Actually, it is just similar to the ROWNUM functions provided by Oracle, but don&#8217;t know why so few vendors implement such a useful function.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/harryworld.wordpress.com/76/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/harryworld.wordpress.com/76/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/harryworld.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/harryworld.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/harryworld.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/harryworld.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/harryworld.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/harryworld.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/harryworld.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/harryworld.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/harryworld.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/harryworld.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harryworld.wordpress.com&blog=307931&post=76&subd=harryworld&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://harryworld.wordpress.com/2007/02/14/learning-ejb-ql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d7819d02a9362c7525835ce0cfd61b9?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Harry</media:title>
		</media:content>
	</item>
		<item>
		<title>MySQL problem again</title>
		<link>http://harryworld.wordpress.com/2007/02/06/mysql-problem-again/</link>
		<comments>http://harryworld.wordpress.com/2007/02/06/mysql-problem-again/#comments</comments>
		<pubDate>Tue, 06 Feb 2007 02:09:53 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
		
		<guid isPermaLink="false">http://harryworld.wordpress.com/2007/02/06/mysql-problem-again/</guid>
		<description><![CDATA[When I am thinking using autoReconnect will resolve the disconnection problem, a new error comes to me.
java.net.SocketException
MESSAGE: Software caused connection abort: recv failed
This error appears in occasional case, but also after a long hours of idle. I used Java Persistence to connect mysql. Today morning, when I was back to office. My application seems fine [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harryworld.wordpress.com&blog=307931&post=75&subd=harryworld&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When I am thinking using autoReconnect will resolve the disconnection problem, a new error comes to me.</p>
<blockquote><p>java.net.SocketException<br />
MESSAGE: Software caused connection abort: recv failed</p></blockquote>
<p>This error appears in occasional case, but also after a long hours of idle. I used Java Persistence to connect mysql. Today morning, when I was back to office. My application seems fine when doing the querying functionalities. However, when I used persist() and merge() operations which updated the DB, this error occurred.</p>
<p>Someone said this also the same problem as previous, which MySQL disconnects the connections after idle for 8 hours, but I am amazing that the error only throw for updating operations. Is it mechanism for Java Persistence, since it can store part of DB details in memory, so it didn&#8217;t actually query the database?</p>
<p><i>Reference:<br />
<a href="http://forums.mysql.com/read.php?39,55337,95721#msg-95721" target="_blank">http://forums.mysql.com/read.php?39,55337,95721#msg-95721</a><br />
</i></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/harryworld.wordpress.com/75/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/harryworld.wordpress.com/75/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/harryworld.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/harryworld.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/harryworld.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/harryworld.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/harryworld.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/harryworld.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/harryworld.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/harryworld.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/harryworld.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/harryworld.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harryworld.wordpress.com&blog=307931&post=75&subd=harryworld&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://harryworld.wordpress.com/2007/02/06/mysql-problem-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d7819d02a9362c7525835ce0cfd61b9?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Harry</media:title>
		</media:content>
	</item>
		<item>
		<title>Exception: socket write error</title>
		<link>http://harryworld.wordpress.com/2007/02/05/exception-socket-write-error/</link>
		<comments>http://harryworld.wordpress.com/2007/02/05/exception-socket-write-error/#comments</comments>
		<pubDate>Mon, 05 Feb 2007 01:41:14 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
		
		<guid isPermaLink="false">http://harryworld.wordpress.com/2007/02/05/exception-socket-write-error/</guid>
		<description><![CDATA[These days, this exception always occur in my new developing application using persistence, especially on the morning when I came back to office. At the beginning, I think it may be due to the use of Java Persistence. However, when I do a search on Google, at the top of the list, I got this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harryworld.wordpress.com&blog=307931&post=74&subd=harryworld&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>These days, this exception always occur in my new developing application using persistence, especially on the morning when I came back to office. At the beginning, I think it may be due to the use of Java Persistence. However, when I do a search on Google, at the top of the list, I got this post:</p>
<p><a href="http://www.yannicafe.info/wp/2006/11/25/53.html" target="_blank">http://www.yannicafe.info/wp/2006/11/25/53.html</a></p>
<p>This post describes the case in detail. It is due to the mechanism of MySQL, where this DB will disconnect all the active connections after 8 hours if there is no activity. After that, if your application try to work on some activities, the above exception is caused.</p>
<p>Normally, the exception should be caught in the application, and direct to a reconnect logic. However, the persistence provider (Oracle TopLink) that I am using does not provide auto reconnect function. So, I need to change the connection URL to the following:</p>
<blockquote><p>jdbc:mysql://localhost:3306/test?autoReconnect=true</p></blockquote>
<p>This allow the application to auto reconnect in case MySQL disconnects all the connections. Nevertheless, the bad thing is that  this is not recommended by MySQL community and this parameter may even be removed from future versions of MySQL.</p>
<p><i>Reference:<br />
<a href="http://forums.java.net/jive/thread.jspa?messageID=189962" target="_blank">http://forums.java.net/jive/thread.jspa?messageID=189962</a> </i></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/harryworld.wordpress.com/74/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/harryworld.wordpress.com/74/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/harryworld.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/harryworld.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/harryworld.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/harryworld.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/harryworld.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/harryworld.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/harryworld.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/harryworld.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/harryworld.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/harryworld.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harryworld.wordpress.com&blog=307931&post=74&subd=harryworld&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://harryworld.wordpress.com/2007/02/05/exception-socket-write-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d7819d02a9362c7525835ce0cfd61b9?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Harry</media:title>
		</media:content>
	</item>
		<item>
		<title>Tricky things on using Dojo with Internet Explorer</title>
		<link>http://harryworld.wordpress.com/2007/01/31/tricky-things-on-using-dojo-with-internet-explorer/</link>
		<comments>http://harryworld.wordpress.com/2007/01/31/tricky-things-on-using-dojo-with-internet-explorer/#comments</comments>
		<pubDate>Wed, 31 Jan 2007 07:11:44 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[AJAX]]></category>

		<guid isPermaLink="false">http://harryworld.wordpress.com/2007/01/31/tricky-things-on-using-dojo-with-internet-explorer/</guid>
		<description><![CDATA[In using Dojo, I tried to return an XML String from the server side, and parsed it in the javascript. This is the code portion for making the AJAX call:
retrieveUserDetail = function(id) {
// Use dojo.io.bind() for remoting
dojo.io.bind({
// URL -  destination you want to send your request
url: &#8220;validate?id=&#8221; + escape(data.Id),
// Callback function that will be invoked [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harryworld.wordpress.com&blog=307931&post=73&subd=harryworld&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In using Dojo, I tried to return an XML String from the server side, and parsed it in the javascript. This is the code portion for making the AJAX call:</p>
<blockquote><p>retrieveUserDetail = function(id) {<br />
// Use dojo.io.bind() for remoting<br />
dojo.io.bind({<br />
// URL -  destination you want to send your request<br />
url: &#8220;validate?id=&#8221; + escape(data.Id),</p>
<p>// Callback function that will be invoked asynchronously<br />
load: function(type, data, evt){ processRetrieval(data);},</p>
<p>// Error handler function that will be invoked in case of an error<br />
error: function(type, error){ alert(&#8220;error&#8221;); },</p>
<p>// Backward and forward button handling<br />
backButton: function() { alert(&#8220;back button pressed&#8221;); },<br />
forwardButton: function() { alert(&#8220;forward button pressed&#8221;);},</p>
<p>// Type of data you want to receive<br />
mimetype: &#8220;text/xml&#8221;<br />
});<br />
}</p>
<p>processRetrieval = function(data) {<br />
var message = data.getElementsByTagName(&#8220;loginName&#8221;)[0].childNodes[0].nodeValue;<br />
var userId = dojo.byId(&#8220;fUserId&#8221;);<br />
userId.value = message;<br />
userId.disabled = &#8220;true&#8221;;<br />
}</p></blockquote>
<p>As specified, I used mimetype in the dojo.io.bind() function. This works in Firefox perfectly, but in Internet Explorer, it does not work. IE will recognize the responding result as plain text. As a result, you have to explicitly declared in the server side telling that the result is in XML format. For me, I am developing Java Web Application, so I used this in the servlet:</p>
<blockquote><p>response.setContentType(&#8220;text/xml&#8221;);</p></blockquote>
<p>By doing this, IE will recognize the result as XML document.</p>
<p><i>Reference:<br />
<a href="http://dojotoolkit.org/pipermail/dojo-checkins/2007-January/015183.html " target="_blank">http://dojotoolkit.org/pipermail/dojo-checkins/2007-January/015183.html</a> </i></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/harryworld.wordpress.com/73/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/harryworld.wordpress.com/73/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/harryworld.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/harryworld.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/harryworld.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/harryworld.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/harryworld.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/harryworld.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/harryworld.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/harryworld.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/harryworld.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/harryworld.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=harryworld.wordpress.com&blog=307931&post=73&subd=harryworld&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://harryworld.wordpress.com/2007/01/31/tricky-things-on-using-dojo-with-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7d7819d02a9362c7525835ce0cfd61b9?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Harry</media:title>
		</media:content>
	</item>
	</channel>
</rss>