<?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>Ninad Gawad</title>
	<atom:link href="http://ninadgawad.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ninadgawad.wordpress.com</link>
	<description>Technology Discussion</description>
	<lastBuildDate>Tue, 24 Jan 2012 19:47:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ninadgawad.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Ninad Gawad</title>
		<link>http://ninadgawad.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ninadgawad.wordpress.com/osd.xml" title="Ninad Gawad" />
	<atom:link rel='hub' href='http://ninadgawad.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Error: unsupported encoding Cp037 for result set column SQLState:  22021 ErrorCode: -99999</title>
		<link>http://ninadgawad.wordpress.com/2012/01/24/error-unsupported-encoding-cp037-for-result-set-column-sqlstate-22021-errorcode-99999/</link>
		<comments>http://ninadgawad.wordpress.com/2012/01/24/error-unsupported-encoding-cp037-for-result-set-column-sqlstate-22021-errorcode-99999/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 19:46:58 +0000</pubDate>
		<dc:creator>ninadgawad</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[DB2]]></category>
		<category><![CDATA[JDBC Driver Type 4]]></category>
		<category><![CDATA[JDK]]></category>
		<category><![CDATA[JRE]]></category>
		<category><![CDATA[SQLState]]></category>

		<guid isPermaLink="false">http://ninadgawad.wordpress.com/?p=127</guid>
		<description><![CDATA[Problem: Error: unsupported encoding Cp037 for result set column SQLState: 22021 ErrorCode: -99999 Cause: Issue with JVM version installed on your machine. Mostly occurs because of multiple versions of java in the OS or when international version of jdk/jre is not installed. It is related to carsets.jar Solution: Delete the java.exe from C:\Windows\system32 (make a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninadgawad.wordpress.com&amp;blog=438640&amp;post=127&amp;subd=ninadgawad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Problem: </strong></p>
<p>Error: unsupported encoding Cp037 for result set column SQLState:  22021 ErrorCode: -99999</p>
<p><strong>Cause:</strong><br />
Issue with JVM version installed on your machine. Mostly occurs because of multiple versions of java in the OS or when international version of jdk/jre is not installed. It is related to carsets.jar</p>
<p><strong>Solution:</strong><br />
Delete the java.exe from C:\Windows\system32 (make a copy first)<br />
Make sure that JAVA_HOME is set correctly and JAVA_HOME/bin is added to PATH &amp; CLASSPATH. </p>
<p><strong>Note:</strong> Uninstall/Delete old version&#8217;s on JDK/JRE from you machine and make a fresh installation. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ninadgawad.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ninadgawad.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ninadgawad.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ninadgawad.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ninadgawad.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ninadgawad.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ninadgawad.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ninadgawad.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ninadgawad.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ninadgawad.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ninadgawad.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ninadgawad.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ninadgawad.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ninadgawad.wordpress.com/127/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninadgawad.wordpress.com&amp;blog=438640&amp;post=127&amp;subd=ninadgawad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ninadgawad.wordpress.com/2012/01/24/error-unsupported-encoding-cp037-for-result-set-column-sqlstate-22021-errorcode-99999/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07ab672830f8681c5cec0a66b041ea8f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ninadgawad</media:title>
		</media:content>
	</item>
		<item>
		<title>Cannot read project model from interpolating filter of serialized version.</title>
		<link>http://ninadgawad.wordpress.com/2012/01/23/maven-project-build-error-cannot-read-project-model-from-interpolating-filter-of-serialized-version/</link>
		<comments>http://ninadgawad.wordpress.com/2012/01/23/maven-project-build-error-cannot-read-project-model-from-interpolating-filter-of-serialized-version/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 20:03:17 +0000</pubDate>
		<dc:creator>ninadgawad</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[J2EE]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Build]]></category>

		<guid isPermaLink="false">http://ninadgawad.wordpress.com/?p=122</guid>
		<description><![CDATA[Problem: Error building POM (may not be this project&#8217;s POM). Project ID: com.dev.project POM Location: C:\dev&#38;test\ Reason: Cannot read project model from interpolating filter of serialized version. for project com. main at C:\dev&#38;test\ [INFO] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Cannot read project model from interpolating filter of serialized vers ion. for project com.dev.project at at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninadgawad.wordpress.com&amp;blog=438640&amp;post=122&amp;subd=ninadgawad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Problem: </strong><br />
Error building POM (may not be this project&#8217;s POM).<br />
Project ID: com.dev.project<br />
POM Location: C:\dev&amp;test\</p>
<p>Reason: Cannot read project model from interpolating filter of serialized version. for project com.<br />
main at C:\dev&amp;test\</p>
<p>[INFO] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
[INFO] Trace<br />
org.apache.maven.reactor.MavenExecutionException: Cannot read project model from interpolating filter of serialized vers<br />
ion. for project com.dev.project at<br />
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)<br />
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)<br />
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)<br />
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)<br />
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br />
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />
        at java.lang.reflect.Method.invoke(Method.java:585)<br />
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)<br />
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)<br />
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)<br />
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)<br />
Caused by: org.apache.maven.project.InvalidProjectModelException: Cannot read project model from interpolating filter of<br />
 serialized version. for project com.dev.project at<br />
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:882)<br />
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.ja<br />
va:506)<br />
        at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198)<br />
        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)<br />
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)<br />
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:534)<br />
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)<br />
        &#8230; 11 more<br />
Caused by: org.apache.maven.project.interpolation.ModelInterpolationException: Cannot read project model from interpolat<br />
ing filter of serialized version.<br />
        at org.apache.maven.project.interpolation.RegexBasedModelInterpolator.interpolate(RegexBasedModelInterpolator.ja<br />
va:114)<br />
        at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1016)</p>
<p>        at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:878)<br />
        &#8230; 17 more<br />
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: entity reference name can not contain character \&#8217;<br />
(position: START_TAG seen &#8230;C:\dev&amp;test\&#8230; @314:33)<br />
        at org.codehaus.plexus.util.xml.pull.MXParser.parseEntityRef(MXParser.java:2222)<br />
        at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1275)<br />
        at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1093)<br />
        at hidden.org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuilder.java:187)<br />
        at hidden.org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuilder.java:94)<br />
        at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parsePluginExecution(MavenXpp3Reader.java:3144)<br />
        at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parsePlugin(MavenXpp3Reader.java:2901)<br />
        at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseBuild(MavenXpp3Reader.java:753)<br />
        at org.apache.maven.model.io.xpp3.MavenXpp3Reader.parseModel(MavenXpp3Reader.java:2224)<br />
        at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:4422)<br />
        at org.apache.maven.model.io.xpp3.MavenXpp3Reader.read(MavenXpp3Reader.java:4433)<br />
        at org.apache.maven.project.interpolation.RegexBasedModelInterpolator.interpolate(RegexBasedModelInterpolator.ja<br />
va:105)<br />
        &#8230; 19 more</p>
<p><strong>Cause:</strong><br />
This is a standard error while making build in maven on Windows.<br />
It occurs when your path contain&#8217;s special characters like &#8216;&amp;&#8217;, &#8221; etc.<br />
Remove ampersand from the path and this should solve the problem. This is because mvn.bat cannot handle these characters in windows.</p>
<p><strong>Solution:</strong> Remove ampersand &#8220;&amp;&#8221; or special characters from path or username </p>
<p><strong>Example:</strong><br />
Path: D:\workspace\<strong>dev&amp;test</strong>\project1\mvn clean install   (Error)<br />
Rename the folder dev&amp;test to <strong>devtest</strong></p>
<p>Hope this Helps !</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ninadgawad.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ninadgawad.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ninadgawad.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ninadgawad.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ninadgawad.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ninadgawad.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ninadgawad.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ninadgawad.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ninadgawad.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ninadgawad.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ninadgawad.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ninadgawad.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ninadgawad.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ninadgawad.wordpress.com/122/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninadgawad.wordpress.com&amp;blog=438640&amp;post=122&amp;subd=ninadgawad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ninadgawad.wordpress.com/2012/01/23/maven-project-build-error-cannot-read-project-model-from-interpolating-filter-of-serialized-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07ab672830f8681c5cec0a66b041ea8f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ninadgawad</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting up SSL for Web Application</title>
		<link>http://ninadgawad.wordpress.com/2011/02/20/setting-up-ssl-for-web-application/</link>
		<comments>http://ninadgawad.wordpress.com/2011/02/20/setting-up-ssl-for-web-application/#comments</comments>
		<pubDate>Sun, 20 Feb 2011 19:42:25 +0000</pubDate>
		<dc:creator>ninadgawad</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web Apps]]></category>
		<category><![CDATA[J2EE]]></category>
		<category><![CDATA[Web Application]]></category>

		<guid isPermaLink="false">http://ninadgawad.wordpress.com/?p=47</guid>
		<description><![CDATA[Secure Socket Layer (SSL) protocol has been a standard across the internet for securing Web Applications. This trusted technology is quite simple to embed in your existing/new Web Applications. Here I will explain steps to implement SSL with &#8220;Apache&#8221; as Web Server and &#8220;JBoss/Tomcat&#8221; as Application Server. A Web Application generally has three servers; Web, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninadgawad.wordpress.com&amp;blog=438640&amp;post=47&amp;subd=ninadgawad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Secure Socket Layer (SSL) protocol has been a standard across the internet for securing Web Applications. This trusted technology is quite simple to embed in your existing/new Web Applications. Here I will explain steps to implement SSL with &#8220;Apache&#8221; as Web Server and &#8220;JBoss/Tomcat&#8221; as Application Server.</p>
<p>A Web Application generally has three servers; Web, Application and Database. Your first request hits the Web Server which will handle the SSL authentication and forward request to the App Server which will process the request and send the response back through the same route.</p>
<div id="attachment_66" class="wp-caption aligncenter" style="width: 285px"><a href="http://ninadgawad.files.wordpress.com/2008/11/webteir.gif"><img class="size-full wp-image-66" title="Web Application" src="http://ninadgawad.files.wordpress.com/2008/11/webteir.gif?w=460" alt="Web Application Server Layers"   /></a><p class="wp-caption-text">Web Application Server Layers</p></div>
<p>&#8230; to be added</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ninadgawad.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ninadgawad.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ninadgawad.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ninadgawad.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ninadgawad.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ninadgawad.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ninadgawad.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ninadgawad.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ninadgawad.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ninadgawad.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ninadgawad.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ninadgawad.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ninadgawad.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ninadgawad.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninadgawad.wordpress.com&amp;blog=438640&amp;post=47&amp;subd=ninadgawad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ninadgawad.wordpress.com/2011/02/20/setting-up-ssl-for-web-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07ab672830f8681c5cec0a66b041ea8f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ninadgawad</media:title>
		</media:content>

		<media:content url="http://ninadgawad.files.wordpress.com/2008/11/webteir.gif" medium="image">
			<media:title type="html">Web Application</media:title>
		</media:content>
	</item>
		<item>
		<title>DB2 &#8211; Insert or Update Single Quote</title>
		<link>http://ninadgawad.wordpress.com/2010/04/09/db2-insert-or-update-single-quote/</link>
		<comments>http://ninadgawad.wordpress.com/2010/04/09/db2-insert-or-update-single-quote/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 19:00:21 +0000</pubDate>
		<dc:creator>ninadgawad</dc:creator>
				<category><![CDATA[DB2]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[INSERT]]></category>
		<category><![CDATA[SINGLE QUOTE]]></category>
		<category><![CDATA[UPDATE]]></category>

		<guid isPermaLink="false">http://ninadgawad.wordpress.com/?p=120</guid>
		<description><![CDATA[DB2 Inserting Single Quote When you try to insert or update a Single Quote in DB2 (&#8216;) in DB2 you will get an error message : An unexpected token was found following &#8220;&#8221;. Expected tokens may include: &#8220;, WITH WHERE QUERYNO&#8221;. SQLSTATE=42601 Solution: This happens beacuse here ESCAPE sequence ( \) does not work with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninadgawad.wordpress.com&amp;blog=438640&amp;post=120&amp;subd=ninadgawad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>DB2 Inserting Single Quote</strong><br />
When you try to insert or update a Single Quote in DB2 (&#8216;) in DB2 you will get an error message :<br />
An unexpected token was found following &#8220;&#8221;. Expected tokens may include: &#8220;, WITH WHERE QUERYNO&#8221;. SQLSTATE=42601</p>
<p><strong>Solution:</strong><br />
This happens beacuse here ESCAPE sequence ( \) does not work with single quote ( &#8216; ).<br />
You can achieve this by prefixing the single quote which you intent to insert by an additional single quote (&#8216;).<br />
i.e: Add two single quotes (&#8221;) where ever you have to insert/update one single quote (&#8216;)</p>
<p><strong>Example:</strong><br />
<em><strong>Query with Error:</strong></em><br />
<em></em><br />
<strong>INSERT INTO TABLENAME VALUES (1, &#8216; D&#8217;Souza &#8216;, &#8216;Active &#8216;, CURRENT TIMESTAMP);</strong></p>
<p><em><strong>Use below Query :</strong></em></p>
<p><strong>INSERT INTO TABLENAME VALUES (1, &#8216; D&#8221;Souza &#8216;, &#8216;Active &#8216;, CURRENT TIMESTAMP);</strong><br />
<strong></strong><br />
The same holds true with update statements.<br />
Do comment if you have nquestions.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ninadgawad.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ninadgawad.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ninadgawad.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ninadgawad.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ninadgawad.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ninadgawad.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ninadgawad.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ninadgawad.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ninadgawad.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ninadgawad.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ninadgawad.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ninadgawad.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ninadgawad.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ninadgawad.wordpress.com/120/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninadgawad.wordpress.com&amp;blog=438640&amp;post=120&amp;subd=ninadgawad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ninadgawad.wordpress.com/2010/04/09/db2-insert-or-update-single-quote/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07ab672830f8681c5cec0a66b041ea8f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ninadgawad</media:title>
		</media:content>
	</item>
		<item>
		<title>How to get System Properties in JSP</title>
		<link>http://ninadgawad.wordpress.com/2009/07/17/how-to-get-system-properties-in-jsp/</link>
		<comments>http://ninadgawad.wordpress.com/2009/07/17/how-to-get-system-properties-in-jsp/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 22:46:55 +0000</pubDate>
		<dc:creator>ninadgawad</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ninadgawad.wordpress.com/?p=103</guid>
		<description><![CDATA[If you want to print the details of System Properties in JSP use the below code. Here we get the System Properties and loop over the Enumeration object to print it on the screen. Download File: getSystemProperties<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninadgawad.wordpress.com&amp;blog=438640&amp;post=103&amp;subd=ninadgawad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you want to print the details of System Properties in JSP use the below code.<br />
Here we get the System Properties and loop over the Enumeration object to print it on the screen.</p>
<p>Download File:</p>
<p><a href="http://ninadgawad.files.wordpress.com/2009/07/getsystemproperties1.doc">getSystemProperties</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ninadgawad.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ninadgawad.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ninadgawad.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ninadgawad.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ninadgawad.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ninadgawad.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ninadgawad.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ninadgawad.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ninadgawad.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ninadgawad.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ninadgawad.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ninadgawad.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ninadgawad.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ninadgawad.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninadgawad.wordpress.com&amp;blog=438640&amp;post=103&amp;subd=ninadgawad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ninadgawad.wordpress.com/2009/07/17/how-to-get-system-properties-in-jsp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07ab672830f8681c5cec0a66b041ea8f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ninadgawad</media:title>
		</media:content>
	</item>
		<item>
		<title>MySQL 5 Installation issue on Windows Vista</title>
		<link>http://ninadgawad.wordpress.com/2008/12/27/mysql-5-installation-issue-on-windows-vista/</link>
		<comments>http://ninadgawad.wordpress.com/2008/12/27/mysql-5-installation-issue-on-windows-vista/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 09:13:58 +0000</pubDate>
		<dc:creator>ninadgawad</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://ninadgawad.wordpress.com/?p=90</guid>
		<description><![CDATA[I was trying to install MySQL 5.0.24 on my friends new Laptop. We where stuck at this error &#8220;The application has failed to start because its side-by-side configuration is incorrect.Please see the application event log for more detail&#8221; when we ran the MySQLInstanceConfig.exe file. After a bit of googling we found the solution. Step1: Download [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninadgawad.wordpress.com&amp;blog=438640&amp;post=90&amp;subd=ninadgawad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was trying to install MySQL 5.0.24 on my friends new Laptop. We where stuck at this error &#8220;The application has failed to start because its side-by-side configuration is incorrect.Please see the application event log for more detail&#8221; when we ran the MySQLInstanceConfig.exe file. After a bit of googling we found the solution.</p>
<p><strong>Step1: </strong>Download the Resource Hacker tool from <a title="Resource Hacker" href="http://www.angusj.com/resourcehacker/" target="_blank">here</a>.</p>
<p><strong>Step2: </strong>Unzip the folder and execute the file &#8220;ResHacker.exe&#8221;. This open a window, Go to File &gt; Open and browse to the Path of your &#8220;MySQLInstanceConfig.exe&#8221; file inside &#8220;&lt;Drive&gt;:\MySQL\MySQL Server 5.1\MySQLInstanceConfig.exe&#8221;. This will load an assembly file, on your left navigational tree section click on folder 24 &gt; 1 &gt; 1003. This opens an XML configuration file.</p>
<p><strong>Step3:</strong> Edit this file by changing the privilege “<strong><span style="color:#ff0000;">asAdministrator</span></strong>” to “<strong><span style="color:#339966;">requireAdministrator</span></strong>”.  Click button on the top of window which states &#8220;Compile Script&#8221;. Now go to File &gt; Save as.  Save the File with name &#8220;MySQLInstanceConfig.exe&#8221; on the desktop.</p>
<p>Close the Resource Hacker tool, copy the &#8220;MySQLInstanceConfig.exe&#8221; file from desktop and overwrite it on the exisiting file in &#8220;&lt;Drive&gt;:\MySQL\MySQL Server 5.1\bin&#8221; folder.</p>
<p>Double click on the exe and the instance installation will begin.</p>
<p><strong>References:</strong></p>
<ul>
<li>http://www.weeklyworldwhatever.com/2008/02/21/cant-install-mysql-5051a-because-its-side-by-side-configuration-is-incorrect/#comment-50</li>
<li><a title="MySQL Vista Bug" href="http://bugs.mysql.com/bug.php?id=34559">MySQL 5.1 Vista Bug</a></li>
</ul>
<p><strong>Downloads:<br />
</strong></p>
<ul>
<li>Download MySQL from <a href="http://dev.mysql.com/downloads/mysql/5.1.html#downloads">here</a>.</li>
<li>Check Windows Vista <a href="http://www.microsoft.com/w&lt;/a&gt;indows/windows-vista/default.aspx">here</a>.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ninadgawad.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ninadgawad.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ninadgawad.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ninadgawad.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ninadgawad.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ninadgawad.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ninadgawad.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ninadgawad.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ninadgawad.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ninadgawad.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ninadgawad.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ninadgawad.wordpress.com/90/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ninadgawad.wordpress.com/90/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ninadgawad.wordpress.com/90/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninadgawad.wordpress.com&amp;blog=438640&amp;post=90&amp;subd=ninadgawad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ninadgawad.wordpress.com/2008/12/27/mysql-5-installation-issue-on-windows-vista/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07ab672830f8681c5cec0a66b041ea8f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ninadgawad</media:title>
		</media:content>
	</item>
		<item>
		<title>Enabling SSL for Apache 2</title>
		<link>http://ninadgawad.wordpress.com/2008/12/21/enabling-ssl-for-apache-2/</link>
		<comments>http://ninadgawad.wordpress.com/2008/12/21/enabling-ssl-for-apache-2/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 17:45:08 +0000</pubDate>
		<dc:creator>ninadgawad</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[Web Application]]></category>

		<guid isPermaLink="false">http://ninadgawad.wordpress.com/?p=70</guid>
		<description><![CDATA[Secure Socket layer (SSL) has been a standard protocol for providing security and data integrity for web based applications. This tutotrial will provide you with steps to SSL enable your Apache based Web Application using OpenSSL for windows based environment. Step1: Donwload/Install Apache Download Apache HTTP Server from here. Get the apache_2.2.11-win32-x86-openssl-0.9.8i.msi installer and install [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninadgawad.wordpress.com&amp;blog=438640&amp;post=70&amp;subd=ninadgawad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Secure Socket layer (SSL) has been a standard protocol for providing security and data integrity for web based applications. This tutotrial will provide you with steps to SSL enable your Apache based Web Application using <a href="http://www.openssl.org">OpenSSL</a> for windows based environment.</p>
<p><strong>Step1: Donwload/Install Apache</strong></p>
<ul>
<li>Download Apache HTTP Server from <a href="http://httpd.apache.org/download.cgi">here</a>. Get the <strong>apache_2.2.11-win32-x86-openssl-0.9.8i.msi </strong> installer and install the Apache Server.</li>
<li>Open the conf/httpd.conf file and check if the line &#8220;LoadModule ssl_module modules/mod_ssl.so&#8221; is commented or not. If commented then uncomment the line and check if the file &#8220;mod_ssl.so&#8221; is available in the &#8216;modules&#8217; folder, if not then you have downloaded the non ssl version of Apache please download the apache with openssl version and install it.</li>
<li>Create a file named &#8220;ssl.conf&#8221; in the &#8216;conf&#8217; folder which will hold all the ssl related configurations.Add the following line to &#8220;httpd.conf&#8221; file. &lt;IfModule mod_ssl.c&gt;<br />
Include conf/ssl.conf<br />
&lt;/IfModule&gt;</li>
</ul>
<p><strong>Step2: Add SSL Certificate</strong></p>
<ul>
<li>The second step is to add the SSL certifcate to the SSL configuration file, the certificate can be either self created or we can get them from Certifcate Authority, getting this from Trusted Certificate Authority is a better idea since this will not display warning to the users who connect to your application. Self signed SSL certificate can be used for demonstration purpose for small applications or in an intranet environment.</li>
<li>Go to the &#8216;bin&#8217; folder of the Apache and check if you have &#8220;openssl.exe&#8221; binary there, we will use this tool to create the self signed certificate.</li>
<li>Download the &#8220;openssl.conf&#8221; file from <a href="http://ninadgawad.files.wordpress.com/2008/12/opensslcnf.doc">here</a> and place it in the &#8216;bin&#8217; folder.(rename the opensslcnf.doc to openssl.cnf once downloaded)</li>
<li>Go to the command prompt where the have &#8220;openssl.exe&#8221; file.<br />
Run the following command to create a new certificate request:<br />
<strong>prompt&gt;openssl req -config openssl.cnf -new -out mycert.csr -keyout mycert.pem</strong><br />
You&#8217;ll be prompted to fill answers to many questions. Remember your PEM pass phrase which you have entered. Now we need to create a nonpassword protected key for Apache 2 by running the following command:<br />
<strong>prompt&gt;openssl rsa -in mycert.pem -out mycert.key </strong><br />
This will create a key file as earlier but one without password protection.To create this file just enter your pass phrase given earlier.<br />
Lastly we need to create the X.509 public certificate.<br />
Run the following command:<br />
<strong>prompt&gt;openssl x509 -in mycert.csr -out mycert.cert -req -signkey mycert.key -days 365</strong><br />
This create the self signed certificate which expires after 365 days.</li>
</ul>
<p><strong>Step3: Configure the &#8220;ssl.conf&#8221; file.</strong></p>
<ul>
<li>Create a folder &#8216;ssl&#8217; under &#8216;conf&#8217; folder to keep your SSL key and certificate files. Add the two files created in the previous step &#8220;mycert.key&#8221; and &#8220;mycert.cert&#8221; file inside this folder.</li>
<li>Open &#8220;ssl.conf&#8221; file and change the line DocumentRoot, ServerName and ServerAdmin as per your http.conf file. (Note: Its recommended to keep the SSL port as 443 since many firewalls block SSL on other ports).</li>
<li>Now change the lines <strong>SSLCertificateFile</strong> and  <strong>SSLCertificateKey</strong> to path where the key and cert files in &#8216;ssl&#8217; folder are kept. SSLCertificateFile conf/ssl/mycert.cert<br />
#SSLCertificateFile conf/ssl/server-dsa.crt#   Server Private Key:<br />
#   If the key is not combined with the certificate, use this<br />
#   directive to point at the key file.  Keep in mind that if<br />
#   you&#8217;ve both a RSA and a DSA private key you can configure<br />
#   both in parallel (to also allow the use of DSA ciphers, etc.)<br />
SSLCertificateKeyFile conf/ssl/mycert.key<br />
#SSLCertificateKeyFile conf/ssl.key/server-dsa.key</li>
<li>That&#8217;s all, just save the changes &amp; restart the Apache Server.</li>
<li>Open &#8220;https://localhost/&#8221; to test SSL.</li>
</ul>
<p>(Note: We have assumed that Apache is running on port 80 and SSL on port 443 you can configure for any other port)</p>
<p>If you already have the Certificate&#8217;s provided to you from Certificate Authority just skip step two and put these certificates inside the &#8216;ssl&#8217; folder and add there respective path in the &#8220;ssl.conf&#8221; file.</p>
<p>You just got your Apache SSL enabled.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ninadgawad.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ninadgawad.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ninadgawad.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ninadgawad.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ninadgawad.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ninadgawad.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ninadgawad.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ninadgawad.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ninadgawad.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ninadgawad.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ninadgawad.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ninadgawad.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ninadgawad.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ninadgawad.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninadgawad.wordpress.com&amp;blog=438640&amp;post=70&amp;subd=ninadgawad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ninadgawad.wordpress.com/2008/12/21/enabling-ssl-for-apache-2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07ab672830f8681c5cec0a66b041ea8f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ninadgawad</media:title>
		</media:content>
	</item>
		<item>
		<title>Character decoding Error while retriving parameters in Servlet.</title>
		<link>http://ninadgawad.wordpress.com/2008/08/21/character-decoding-error-while-retriving-parameters-in-servlet/</link>
		<comments>http://ninadgawad.wordpress.com/2008/08/21/character-decoding-error-while-retriving-parameters-in-servlet/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 06:27:39 +0000</pubDate>
		<dc:creator>ninadgawad</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Servlet]]></category>

		<guid isPermaLink="false">http://ninadgawad.wordpress.com/?p=60</guid>
		<description><![CDATA[Problem: WARNING: Parameters: Character decoding failed. Parameter skipped. java.io.CharConversionException: isHexDigit Cause: Generally we get this error when we try to add special characters like &#8220;%, @, $ .. etc&#8221; in the GET/POST request from Ajax Call. Since these characters are used to URL specific function like &#8220;&#38;&#8221; id used to differentiate various URL parameters. This [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninadgawad.wordpress.com&amp;blog=438640&amp;post=60&amp;subd=ninadgawad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p><strong></strong>WARNING: Parameters: Character decoding failed. Parameter skipped.<br />
java.io.CharConversionException: isHexDigit</p>
<p><strong>Cause:</strong></p>
<ul>
<li>Generally we get this error when we try to add special characters like &#8220;%, @, $ .. etc&#8221; in the GET/POST request from Ajax Call.</li>
<li>Since these characters are used to URL specific function like <strong>&#8220;&amp;&#8221;</strong> id used to differentiate various URL parameters. This generates a &#8220;null&#8221; value for the parameter you will try to retrieve in Servlet.</li>
</ul>
<p><strong>Solution:</strong></p>
<p>The simple way to get over this problem is to massage your Special Character String with &#8220;<strong>escape()</strong>&#8221; funtion in javascript.</p>
<p><strong>Example:</strong></p>
<p><strong><em>Before:</em></strong></p>
<p>var vUserEnteredData = document.formname.textbox.value ;  //  textbox = 100%</p>
<p>var parameters = &#8220;testId=A101&amp;percentageNeeded=&#8221; + vUserEnteredData;</p>
<p>// Some Ajax Code &#8230;..</p>
<p>request.setRequestHeader( &#8216;Content-Type&#8217;, &#8216;application/x-www-form-urlencoded; charset=UTF-8&#8242; );<br />
request.setRequestHeader(&#8220;Content-length&#8221;, parameters.length);<br />
request.setRequestHeader(&#8220;Connection&#8221;, &#8220;close&#8221;);<br />
request.send(parameters);</p>
<p>// Note: Here the &#8220;%&#8221; will cause java.io.CharConversionException: while retriving the percentageNeeded parameter in Servlet.</p>
<p><strong><em>After:</em></strong></p>
<p>var vUserEnteredData = document.formname.textbox.value ;  //  textbox = 100%</p>
<p>var parameters = &#8220;testId=A101&amp;percentageNeeded=&#8221; + <strong>escape(vUserEnteredData)</strong>;</p>
<p>// Some Ajax Code &#8230;..</p>
<p>request.setRequestHeader( &#8216;Content-Type&#8217;, &#8216;application/x-www-form-urlencoded; charset=UTF-8&#8242; );<br />
request.setRequestHeader(&#8220;Content-length&#8221;, parameters.length);<br />
request.setRequestHeader(&#8220;Connection&#8221;, &#8220;close&#8221;);<br />
request.send(parameters);</p>
<p><strong>Alternate Solution:</strong></p>
<ul>
<li>We can use Ajax Frameworks rather than manually making the Ajax Request like PrototypeJS, DWR etc.</li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ninadgawad.wordpress.com/60/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ninadgawad.wordpress.com/60/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ninadgawad.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ninadgawad.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ninadgawad.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ninadgawad.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ninadgawad.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ninadgawad.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ninadgawad.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ninadgawad.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ninadgawad.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ninadgawad.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ninadgawad.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ninadgawad.wordpress.com/60/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ninadgawad.wordpress.com/60/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ninadgawad.wordpress.com/60/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninadgawad.wordpress.com&amp;blog=438640&amp;post=60&amp;subd=ninadgawad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ninadgawad.wordpress.com/2008/08/21/character-decoding-error-while-retriving-parameters-in-servlet/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07ab672830f8681c5cec0a66b041ea8f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ninadgawad</media:title>
		</media:content>
	</item>
		<item>
		<title>Clone Javascript Objects</title>
		<link>http://ninadgawad.wordpress.com/2008/07/17/clone-javascript-objects/</link>
		<comments>http://ninadgawad.wordpress.com/2008/07/17/clone-javascript-objects/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 14:58:59 +0000</pubDate>
		<dc:creator>ninadgawad</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://ninadgawad.wordpress.com/?p=50</guid>
		<description><![CDATA[If you are required to create a backup of JavaScript Object use the clone() function rather than a for loop to individually copy the contents of one JavaScript Object into other Object. This will save a lot of time as well if in future the JavaScript Object is modified your are saved from the task [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninadgawad.wordpress.com&amp;blog=438640&amp;post=50&amp;subd=ninadgawad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you are required to create a backup of JavaScript Object use the clone() function rather than a for loop to individually copy the contents of one JavaScript Object into other Object. This will save a lot of time as well if in future the JavaScript Object is modified your are saved from the task of changing your for loop as well.</p>
<p>// Simple Java Script Object</p>
<p>function UserData (user_ID, user_Data_Preference, user_Theme_No){</p>
<p>this.user_ID = user_ID;</p>
<p>this.user_Data_Preference = user_Data_Preference;</p>
<p>this.user_Theme_No = user_Theme_No ;</p>
<p>}</p>
<p>Consider when the Web Page is loaded this object is populated dynamically and we display the user with respective theme and show data in his preferred form. (e.g. Km/Hr or miles/Hr).</p>
<p>Now you can create a duplicate copy of this JavaScript Object by using the clone() function.</p>
<p>Example:</p>
<p>var objUserDataOrg = new UserData(1, data_101, theme_aqua);</p>
<p>// To Create a duplicate copy</p>
<p>var objUserDataDuplicate = objUserDataOrg.clone();</p>
<p>This will be a new object hence changes in the Old Object will not be reflected in the new and vice-versa.</p>
<p><strong>Pros:</strong> This is especially useful when you are required to deal with Array of JavaScript Object rather than a single Object.</p>
<p><strong>Cons:</strong> All the attributes of the Object are copied into the new object in case you only want some them to be copied this may not work.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ninadgawad.wordpress.com/50/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ninadgawad.wordpress.com/50/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ninadgawad.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ninadgawad.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ninadgawad.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ninadgawad.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ninadgawad.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ninadgawad.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ninadgawad.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ninadgawad.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ninadgawad.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ninadgawad.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ninadgawad.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ninadgawad.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ninadgawad.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ninadgawad.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninadgawad.wordpress.com&amp;blog=438640&amp;post=50&amp;subd=ninadgawad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ninadgawad.wordpress.com/2008/07/17/clone-javascript-objects/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07ab672830f8681c5cec0a66b041ea8f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ninadgawad</media:title>
		</media:content>
	</item>
		<item>
		<title>Implementing Websites For Internationalization</title>
		<link>http://ninadgawad.wordpress.com/2008/03/03/implementing-websites-for-internationalization/</link>
		<comments>http://ninadgawad.wordpress.com/2008/03/03/implementing-websites-for-internationalization/#comments</comments>
		<pubDate>Mon, 03 Mar 2008 05:30:10 +0000</pubDate>
		<dc:creator>ninadgawad</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web Apps]]></category>

		<guid isPermaLink="false">http://ninadgawad.wordpress.com/2008/03/03/implementing-websites-for-internationalization/</guid>
		<description><![CDATA[Most business in today’s open market are demanding their websites &#38; web application to have multilingual support. This is in order to attract non-English speaking audiences to increase their customer base and make people comfortable using the application in their native language. But for this, it would require an existing business application to be customized [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninadgawad.wordpress.com&amp;blog=438640&amp;post=43&amp;subd=ninadgawad&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Most business in today’s open market are demanding their websites &amp; web application to have multilingual support. This is in order to attract non-English speaking audiences to increase their customer base and make people comfortable using the application in their native language. But for this, it would require an existing business application to be customized to support native locale. The process of producing an application that can be localized for a particular country without any changes to the program code is called <strong>Internationalization</strong>.</p>
<p>Following are the list of things one needs to take care while making an application to implement Internationalization. [<a href="http://techtracer.com/2008/03/02/implementing-websites-for-internationalization/" title="Implementing Websites For Internationalization">click here to read complete article</a>]</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/ninadgawad.wordpress.com/43/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/ninadgawad.wordpress.com/43/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ninadgawad.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ninadgawad.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ninadgawad.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ninadgawad.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ninadgawad.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ninadgawad.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ninadgawad.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ninadgawad.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ninadgawad.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ninadgawad.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ninadgawad.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ninadgawad.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ninadgawad.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ninadgawad.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ninadgawad.wordpress.com&amp;blog=438640&amp;post=43&amp;subd=ninadgawad&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ninadgawad.wordpress.com/2008/03/03/implementing-websites-for-internationalization/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/07ab672830f8681c5cec0a66b041ea8f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ninadgawad</media:title>
		</media:content>
	</item>
	</channel>
</rss>
