<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaniWeb IT Discussion Community - JSP</title>
		<link>http://www.daniweb.com/forums</link>
		<description><![CDATA[Our JSP forum is the place for Q&A-style discussions related to Java-based web development. Note we have a separate Java forum within the Software Development category. Additionally, we have an Oracle forum within the Databases sub-category to use in tandem to a JSP backend.]]></description>
		<language>en-US</language>
		<lastBuildDate>Thu, 15 May 2008 20:04:54 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/forums/myimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community - JSP</title>
			<link>http://www.daniweb.com/forums</link>
		</image>
		<item>
			<title>Open Source Bloggers in Java</title>
			<link>http://www.daniweb.com/forums/thread124245.html</link>
			<pubDate>Wed, 14 May 2008 19:46:38 GMT</pubDate>
			<description>I have some webspace that I used so far for university assegnments. I would like to to convert it to blog website where I will place some rants, codes and some maybe for somebody interesting info that I find along the research path of my MSc project. Website will be based on Java with MySQL back...</description>
			<content:encoded><![CDATA[<div>I have some webspace that I used so far for university assegnments. I would like to to convert it to blog website where I will place some rants, codes and some maybe for somebody interesting info that I find along the research path of my MSc project. Website will be based on Java with MySQL back end database. As I have no time to start this from scratch I did some googling and come accross some open source bloggers on <a rel="nofollow" class="t" href="http://java-source.net/open-source/bloggers" target="_blank">java-source.net</a>. From provided projects DLOG4J looks good to me as it also has support for WAP (it is plus as the website will be about J2ME and mobile technologies and I may do dedicated access for mobiles/PDAs).<br />
Does any of you have some experience with this sort of job? Do you have ideas and suggestions? If so, please contribute.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>peter_budo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124245.html</guid>
		</item>
		<item>
			<title>Simple horizontal bar chart</title>
			<link>http://www.daniweb.com/forums/thread124213.html</link>
			<pubDate>Wed, 14 May 2008 16:19:35 GMT</pubDate>
			<description>Hello,

Is there any simple way to add a bar chart in jsp, I have a question and answers tables for a survey and I want to show the result for it like this:

QuestionText.............................Result

aaaaaaaaaaa............................Yes    70%  ...</description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
Is there any simple way to add a bar chart in jsp, I have a question and answers tables for a survey and I want to show the result for it like this:<br />
<br />
QuestionText.............................Result<br />
<br />
aaaaaaaaaaa............................Yes    70%   ------------<br />
...............................................No     30%   -----<br />
<br />
Can anyone Help Me....</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>kitsune</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread124213.html</guid>
		</item>
		<item>
			<title>input type only text in jsp</title>
			<link>http://www.daniweb.com/forums/thread123782.html</link>
			<pubDate>Mon, 12 May 2008 06:53:01 GMT</pubDate>
			<description>i have a code written in jsp to enter and edit user accounts. But for fields like Name its taking numeric values also, and also how to check an enter only valid format of e-mail in the e-mail id field. Is there any function in jsp like isAlpha, isAlphanumeric to check the input type???</description>
			<content:encoded><![CDATA[<div>i have a code written in jsp to enter and edit user accounts. But for fields like Name its taking numeric values also, and also how to check an enter only valid format of e-mail in the e-mail id field. Is there any function in jsp like isAlpha, isAlphanumeric to check the input type???</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>sonu_net</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread123782.html</guid>
		</item>
		<item>
			<title>JSP-SQL Query to Access DB with Parameterized Query</title>
			<link>http://www.daniweb.com/forums/thread123741.html</link>
			<pubDate>Mon, 12 May 2008 01:01:49 GMT</pubDate>
			<description><![CDATA[I'm new to JSP and trying to do a parameterized query.  I've been able to do single stream queries to existing tables without any problem.  I'm trying to build a search mechanism to do selective reporting.  

I've tried many hours to get the combination of different items to get by the ODBC SQL...]]></description>
			<content:encoded><![CDATA[<div>I'm new to JSP and trying to do a parameterized query.  I've been able to do single stream queries to existing tables without any problem.  I'm trying to build a search mechanism to do selective reporting.  <br />
<br />
I've tried many hours to get the combination of different items to get by the ODBC SQL interface and have not been able to get the combination to work.  Your advice/help would be greatly appreciated.<br />
<br />
The following is the types of code being used. Html code setting up parameters being passed to .jsp page looks like this:<br />
<br />
=====================================================<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left"><pre class="code"><ol><li class="li1"><div class="de1">&lt;form id=<span class="st0">&quot;inputForm&quot;</span> name=<span class="st0">&quot;inputForm&quot;</span> onsubmit=<span class="st0">&quot;return validateOnSubmit()&quot;</span> title=<span class="st0">&quot;schoolsearch&quot;</span>&nbsp; method=<span class="st0">&quot;post&quot;</span>&nbsp; action=<span class="st0">&quot;sS1.jsp&quot;</span>&gt;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&lt;h4&gt;</div></li><li class="li1"><div class="de1">Select Degree <span class="kw3">Option</span></div></li><li class="li2"><div class="de2">&lt;/h4&gt;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&lt;input type=<span class="st0">&quot;radio&quot;</span> value=<span class="st0">&quot;A&quot;</span> name=<span class="st0">&quot;degreeOption&quot;</span>&nbsp; &nbsp; &nbsp; &nbsp;  /&gt;Associate</div></li><li class="li1"><div class="de1">&lt;input type=<span class="st0">&quot;radio&quot;</span> value=<span class="st0">&quot;B&quot;</span> name=<span class="st0">&quot;degreeOption&quot;</span>&nbsp; &nbsp; &nbsp; &nbsp;  /&gt;Bachelor</div></li><li class="li1"><div class="de1">&lt;input type=<span class="st0">&quot;radio&quot;</span> value=<span class="st0">&quot;M&quot;</span> name=<span class="st0">&quot;degreeOption&quot;</span>&nbsp; &nbsp; &nbsp; &nbsp;  /&gt;Masters</div></li><li class="li2"><div class="de2">&lt;input type=<span class="st0">&quot;radio&quot;</span> value=<span class="st0">&quot;P&quot;</span> name=<span class="st0">&quot;degreeOption&quot;</span>&nbsp; &nbsp; &nbsp; &nbsp;  /&gt;Ph. <span class="me1">D</span></div></li><li class="li1"><div class="de1">&lt;input type=<span class="st0">&quot;radio&quot;</span> value=<span class="st0">&quot;T&quot;</span> name=<span class="st0">&quot;degreeOption&quot;</span>&nbsp; &nbsp; &nbsp; &nbsp;  /&gt;Training</div></li><li class="li1"><div class="de1">&lt;input type=<span class="st0">&quot;radio&quot;</span> value=<span class="st0">&quot;C&quot;</span> name=<span class="st0">&quot;degreeOption&quot;</span>&nbsp; &nbsp; &nbsp; &nbsp;  /&gt;Certificate</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&lt;h4&gt;</div></li><li class="li2"><div class="de2">Select Search option below:</div></li><li class="li1"><div class="de1">&lt;/h4&gt;</div></li><li class="li1"><div class="de1">&lt;input type=<span class="st0">&quot;radio&quot;</span> value=<span class="st0">&quot;1&quot;</span> name=<span class="st0">&quot;Search&quot;</span>&nbsp; &nbsp; /&gt;&nbsp; Program</div></li><li class="li1"><div class="de1">&lt;input type=<span class="st0">&quot;radio&quot;</span> value=<span class="st0">&quot;2&quot;</span> name=<span class="st0">&quot;Search&quot;</span>&nbsp; &nbsp; /&gt;&nbsp; Institution</div></li><li class="li1"><div class="de1">&lt;input type=<span class="st0">&quot;radio&quot;</span> value=<span class="st0">&quot;3&quot;</span> name=<span class="st0">&quot;Search&quot;</span>&nbsp; &nbsp; /&gt;&nbsp; PDF options</div></li><li class="li2"><div class="de2">&lt;input type=<span class="st0">&quot;radio&quot;</span> value=<span class="st0">&quot;4&quot;</span> name=<span class="st0">&quot;Search&quot;</span>&nbsp; &nbsp; /&gt;&nbsp; Mail Report</div></li><li class="li1"><div class="de1">&lt;input type=<span class="st0">&quot;radio&quot;</span> value=<span class="st0">&quot;5&quot;</span> name=<span class="st0">&quot;Search&quot;</span>&nbsp; &nbsp; /&gt;&nbsp; <span class="kw3">Request</span> Other Information</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&lt;p&gt; <span class="kw1">If</span> you are looking <span class="kw1">for</span> a &lt;em&gt;particular Program&lt;/em&gt;, please type a search term below:</div></li><li class="li1"><div class="de1">&lt;br /&gt;</div></li><li class="li2"><div class="de2"> &lt;input type=<span class="st0">'text'</span> name=<span class="st0">'progName'</span> id=<span class="st0">'progName'</span> size=<span class="st0">'30'</span>&nbsp; onchange=<span class="st0">'validateOther(this,'</span>progName<span class="st0">');'</span></div></li><li class="li1"><div class="de1">&lt;/p&gt;</div></li><li class="li1"><div class="de1">&lt;p&gt; <span class="kw1">If</span> you are looking <span class="kw1">for</span> a &lt;em&gt;Institution&lt;/em&gt;, please type a search term below:</div></li><li class="li1"><div class="de1">&lt;br /&gt;</div></li><li class="li1"><div class="de1">&lt;input type=<span class="st0">'text'</span> name=<span class="st0">'instName'</span> id=<span class="st0">'instName'</span> size=<span class="st0">'30'</span> onchange=<span class="st0">'validateOther(this,'</span>instName<span class="st0">');'</span></div></li><li class="li2"><div class="de2">&lt;/p&gt;</div></li></ol></pre></code> </div>
<br />
=====================================================<br />
The sS1.jsp page gets the the degreeOption and Search fields.  The code within sS1.jsp <br />
looks like this:<br />
<br />
 <div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left"><pre class="code"><ol><li class="li1"><div class="de1">&nbsp; &nbsp; input1=request.<span class="me1">getParameter</span><span class="br0">&#40;</span><span class="st0">&quot;degreeOption&quot;</span><span class="br0">&#41;</span>;&nbsp; &nbsp; &nbsp; </div></li><li class="li1"><div class="de1">&nbsp; &nbsp;  input2=request.<span class="me1">getParameter</span><span class="br0">&#40;</span><span class="st0">&quot;Search&quot;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp;  choice = <span class="kw3">Integer</span>.<span class="me1">parseInt</span><span class="br0">&#40;</span>input2<span class="br0">&#41;</span> ;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li2"><div class="de2">&nbsp; &nbsp;  searchTerm=request.<span class="me1">getParameter</span><span class="br0">&#40;</span><span class="st0">&quot;progName&quot;</span><span class="br0">&#41;</span>;&nbsp; &nbsp;  </div></li><li class="li1"><div class="de1">&nbsp; &nbsp;  searchName=request.<span class="me1">getParameter</span><span class="br0">&#40;</span><span class="st0">&quot;instName&quot;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp;  <span class="kw1">switch</span> <span class="br0">&#40;</span>choice<span class="br0">&#41;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; <span class="br0">&#123;</span></div></li><li class="li2"><div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">case</span> <span class="nu0">1</span>:</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  out.<span class="me1">println</span><span class="br0">&#40;</span><span class="st0">&quot;--&gt; Program selection -- Case 1&quot;</span> <span class="br0">&#41;</span> ;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  sqlQuery = <span class="br0">&#40;</span><span class="st0">&quot;SELECT&nbsp;  InstDegreeProgram.Program</span></div></li><li class="li1"><div class="de1"><span class="st0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  FROM&nbsp; &nbsp; &nbsp; InstDegreeProgram</span></div></li><li class="li1"><div class="de1"><span class="st0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE (((InstDegreeProgram.Program) Like &quot;</span> + <span class="st0">&quot;<span class="es0">\&quot;</span>*<span class="es0">\&quot;</span>&quot;</span> + input2 + <span class="st0">&quot;<span class="es0">\&quot;</span>*<span class="es0">\&quot;</span>&quot;</span><span class="br0">&#41;</span><span class="br0">&#41;</span></div></li><li class="li2"><div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ORDER BY InstDegreeProgram.<span class="me1">Program</span><span class="br0">&#41;</span>; <span class="st0">&quot;;</span></div></li><li class="li1"><div class="de1"><span class="st0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;</span></div></li><li class="li1"><div class="de1"><span class="st0">&nbsp; &nbsp; &nbsp; &nbsp; case 2:</span></div></li><li class="li1"><div class="de1"><span class="st0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  out.println(&quot;</span>-- Institution selection -- <span class="kw1">Case</span> <span class="nu0">2</span><span class="st0">&quot; ) ;</span></div></li><li class="li1"><div class="de1"><span class="st0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  sqlQuery = &quot;</span><span class="kw1">Case</span> <span class="nu0">2</span> : <span class="st0">&quot; ;</span></div></li><li class="li2"><div class="de2"><span class="st0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  sqlQuery = (&quot;</span>SELECT&nbsp; InstDegreeProgram.<span class="me1">Program</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  FROM&nbsp; &nbsp;  InstDegreeProgram</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  WHERE <span class="br0">&#40;</span><span class="br0">&#40;</span><span class="br0">&#40;</span>InstDegreeProgram.<span class="me1">Program</span><span class="br0">&#41;</span> Like \<span class="st0">&quot;*<span class="es0">\&quot;</span> &quot;</span>+ input2 + <span class="st0">&quot; <span class="es0">\&quot;</span>*<span class="es0">\&quot;</span>))</span></div></li><li class="li1"><div class="de1"><span class="st0">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ORDER BY InstDegreeProgram.Program)&quot;</span> ;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <span class="kw2">break</span>;</div></li><li class="li2"><div class="de2">&nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span> </div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp;  java.<span class="me1">sql</span>.<span class="kw3">ResultSet</span> rs = sqlQuery.<span class="me1">executeQuery</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div></li></ol></pre></code> </div>
<br />
===================================<br />
JSP -- Error report<br />
<br />
 <div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">String literal is not properly closed by a double-quote # 148<br />
145:&nbsp; &nbsp; &nbsp;  {<br />
146:&nbsp; &nbsp; &nbsp; &nbsp;  case 1:<br />
147:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.println(&quot;--&gt; Program selection -- Case 1&quot; ) ;<br />
148:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sqlQuery = (&quot;SELECT&nbsp;  InstDegreeProgram.Program<br />
149:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  FROM&nbsp; &nbsp;  InstDegreeProgram<br />
150:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  WHERE (((InstDegreeProgram.Program) Like &quot; + &quot;\&quot;*\&quot;&quot; + input2 + &quot;\&quot;*\&quot;&quot;))<br />
151:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ORDER BY InstDegreeProgram.Program); &quot;;</code> </div>
==============================================<br />
<br />
The microsoft query that works within the Access Database looks like this:<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left"><pre class="code"><ol><li class="li1"><div class="de1"><span class="kw1">SELECT</span>&nbsp; &nbsp; InstDegreeProgram.Program</div></li><li class="li1"><div class="de1"><span class="kw1">FROM</span>&nbsp; &nbsp; &nbsp;  InstDegreeProgram</div></li><li class="li1"><div class="de1"><span class="kw1">WHERE</span>&nbsp; <span class="br0">&#40;</span><span class="br0">&#40;</span><span class="br0">&#40;</span>InstDegreeProgram.Program<span class="br0">&#41;</span> <span class="kw1">LIKE</span> <span class="st0">&quot;*&quot;</span> &amp; <span class="br0">&#91;</span>What Program: ?<span class="br0">&#93;</span> &amp; <span class="st0">&quot;*&quot;</span><span class="br0">&#41;</span><span class="br0">&#41;</span></div></li><li class="li1"><div class="de1"><span class="kw1">ORDER</span> <span class="kw1">BY</span> InstDegreeProgram.Program;</div></li></ol></pre></code> </div>
<br />
Hope this helps to provide you with background information that I'm working with in the future.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>Hockey-nut</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread123741.html</guid>
		</item>
		<item>
			<title><![CDATA[Problem with <%jsp:include page>]]></title>
			<link>http://www.daniweb.com/forums/thread123480.html</link>
			<pubDate>Sat, 10 May 2008 04:32:21 GMT</pubDate>
			<description><![CDATA[I m trying to use <jsp:include page> with apache tomcat 5.5.26 as follows
 <div class="codeblock"> <div class="spaced"> <div class="light" style="float:right"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags"...]]></description>
			<content:encoded><![CDATA[<div>I m trying to use &lt;jsp:include page&gt; with apache tomcat 5.5.26 as follows<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">679:&lt;/table&gt;<br />
680:&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;&lt;/tr&gt;<br />
681:&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&lt;td colspan=2 width=&quot;100%&quot;&gt;<br />
682:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;jsp:include page=&quot;html/policy.html&quot; flush=&quot;true&quot;/&gt;<br />
683:&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;&lt;/tr&gt;<br />
684:&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&lt;td colspan = 2 align=&quot;center&quot;&gt;<br />
685:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;hide&quot; value=&quot;3&quot;&gt;</code> </div>
<br />
where policy.html is html file to display policy.<br />
while trying to view jsp i m getting following error<br />
<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">org.apache.jasper.JasperException: Unable to compile class for JSP: <br />
<br />
An error occurred at line: 682 in the jsp file: /PreReqMail.jsp<br />
org.apache cannot be resolved or is not a field<br />
679:&lt;/table&gt;<br />
680:&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;&lt;/tr&gt;<br />
681:&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&lt;td colspan=2 width=&quot;100%&quot;&gt;<br />
682:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;jsp:include page=&quot;html/policy.html&quot; flush=&quot;true&quot;/&gt;<br />
683:&nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;&lt;/tr&gt;<br />
684:&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&lt;td colspan = 2 align=&quot;center&quot;&gt;<br />
685:&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;hide&quot; value=&quot;3&quot;&gt;<br />
<br />
<br />
Stacktrace:<br />
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)<br />
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)<br />
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)<br />
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)<br />
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)<br />
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)<br />
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)<br />
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)<br />
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)<br />
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)<br />
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)</code> </div>
<br />
can any one help me?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>punitdam</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread123480.html</guid>
		</item>
		<item>
			<title>How to logout!!!</title>
			<link>http://www.daniweb.com/forums/thread123423.html</link>
			<pubDate>Fri, 09 May 2008 18:24:46 GMT</pubDate>
			<description>public class logout extends HttpServlet {
	public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
            process(request,response);
    }
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws...</description>
			<content:encoded><![CDATA[<div><div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left"><pre class="code"><ol><li class="li1"><div class="de1"><span class="kw2">public</span> <span class="kw2">class</span> logout <span class="kw2">extends</span> HttpServlet <span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">public</span> <span class="kw4">void</span> doGet<span class="br0">&#40;</span>HttpServletRequest request, HttpServletResponse response<span class="br0">&#41;</span> <span class="kw2">throws</span> ServletException, <span class="kw3">IOException</span> <span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; process<span class="br0">&#40;</span>request,response<span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li2"><div class="de2">&nbsp; &nbsp; <span class="kw2">public</span> <span class="kw4">void</span> doPost<span class="br0">&#40;</span>HttpServletRequest request, HttpServletResponse response<span class="br0">&#41;</span> <span class="kw2">throws</span> ServletException, <span class="kw3">IOException</span> <span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; process<span class="br0">&#40;</span>request,response<span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; <span class="kw2">public</span> <span class="kw4">void</span> process<span class="br0">&#40;</span>HttpServletRequest request, HttpServletResponse response<span class="br0">&#41;</span> <span class="kw2">throws</span> ServletException, <span class="kw3">IOException</span> <span class="br0">&#123;</span></div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HttpSession session = request.<span class="me1">getSession</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div></li><li class="li2"><div class="de2">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; session.<span class="me1">invalidate</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; response.<span class="me1">sendRedirect</span><span class="br0">&#40;</span><span class="st0">&quot;index.jsp&quot;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span></div></li><li class="li1"><div class="de1"><span class="br0">&#125;</span></div></li></ol></pre></code> </div>
<br />
<br />
session is still alive!!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>samlabs821</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread123423.html</guid>
		</item>
		<item>
			<title>Number Formatting in JSP</title>
			<link>http://www.daniweb.com/forums/thread123100.html</link>
			<pubDate>Thu, 08 May 2008 04:20:51 GMT</pubDate>
			<description><![CDATA[Below is the code in Jsp
 
   out.println("<td>" + rset.getInt("Credit_Limit") + "</td>");
   out.println("<td>" + rset.getInt("Curr_Os") + "</td>");
   out.println("<td>" + rset.getInt("Per_Utilised") + "</td>");

I want to have  "Credit_Limit" & "Curr_Os" dispalyed as 1,23,000
 
While...]]></description>
			<content:encoded><![CDATA[<div>Below is the code in Jsp<br />
 <br />
   out.println(&quot;&lt;td&gt;&quot; + rset.getInt(&quot;Credit_Limit&quot;) + &quot;&lt;/td&gt;&quot;);<br />
   out.println(&quot;&lt;td&gt;&quot; + rset.getInt(&quot;Curr_Os&quot;) + &quot;&lt;/td&gt;&quot;);<br />
   out.println(&quot;&lt;td&gt;&quot; + rset.getInt(&quot;Per_Utilised&quot;) + &quot;&lt;/td&gt;&quot;);<br />
<br />
I want to have  &quot;Credit_Limit&quot; &amp; &quot;Curr_Os&quot; dispalyed as 1,23,000<br />
 <br />
While &quot;Per_Utilised&quot; as 12%</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>Sandeep_12in</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread123100.html</guid>
		</item>
		<item>
			<title>how to delete multiple records using jsp</title>
			<link>http://www.daniweb.com/forums/thread123050.html</link>
			<pubDate>Wed, 07 May 2008 21:06:29 GMT</pubDate>
			<description>hi,
i am new to jsp..i am trying do sort out a pblm..
i have 2 jsp files..

file1.jsp..
 which is used to select all the records from a table called staff and display the records in a table..each record is coming with a check boxes which is used for marking..

i need to select all the records i...</description>
			<content:encoded><![CDATA[<div>hi,<br />
i am new to jsp..i am trying do sort out a pblm..<br />
i have 2 jsp files..<br />
<br />
file1.jsp..<br />
 which is used to select all the records from a table called staff and display the records in a table..each record is coming with a check boxes which is used for marking..<br />
<br />
i need to select all the records i want to delete and by pressing a submit button i want to delte all the records frm the table..<br />
how is it possible..i wrote the code for the first part..it is like..<br />
<br />
page1.jsp<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left"><pre class="code"><ol><li class="li1"><div class="de1">&lt;html&gt;</div></li><li class="li1"><div class="de1">&lt;body&gt;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&lt;table width=<span class="st0">&quot;50%&quot;</span> border=<span class="st0">&quot;1&quot;</span> rules=ALL&gt;</div></li><li class="li2"><div class="de2">&lt;tr&gt;&lt;th&gt; Username&lt;/th&gt;&lt;th&gt;Access Level&lt;/th&gt;&lt;th&gt;Delete&lt;/th&gt;&lt;/tr&gt;</div></li><li class="li1"><div class="de1">&lt;%@ page language=<span class="st0">&quot;java&quot;</span> <span class="co2">import=&quot;java.sql.*&quot; %&gt;</span></div></li><li class="li1"><div class="de1">&lt;%</div></li><li class="li1"><div class="de1"><span class="kw4">int</span> j=<span class="nu0">0</span>;</div></li><li class="li1"><div class="de1"><span class="kw3">Connection</span> con =<span class="kw2">null</span>;</div></li><li class="li2"><div class="de2"><span class="kw2">Class</span>.<span class="me1">forName</span><span class="br0">&#40;</span><span class="st0">&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">con=<span class="kw3">DriverManager</span>.<span class="me1">getConnection</span><span class="br0">&#40;</span><span class="st0">&quot;jdbc:odbc:udsn&quot;</span>,<span class="st0">&quot;&quot;</span>,<span class="st0">&quot;&quot;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1"><span class="kw3">Statement</span> st=con.<span class="me1">createStatement</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1"><span class="kw3">ResultSet</span> rs=st.<span class="me1">executeQuery</span><span class="br0">&#40;</span><span class="st0">&quot;select * from staff&quot;</span><span class="br0">&#41;</span>;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li2"><div class="de2"><span class="kw1">while</span> <span class="br0">&#40;</span>rs.<span class="me1">next</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span></div></li><li class="li1"><div class="de1"><span class="br0">&#123;</span> j=j<span class="nu0">+1</span>;%&gt;</div></li><li class="li1"><div class="de1">&lt;tr&gt;&lt;td align=<span class="st0">&quot;center&quot;</span>&gt;&lt;%=rs.<span class="me1">getString</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="br0">&#41;</span>%&gt;&lt;/td&gt;&lt;td align=<span class="st0">&quot;center&quot;</span>&gt;&lt;%=rs.<span class="me1">getString</span><span class="br0">&#40;</span><span class="nu0">3</span><span class="br0">&#41;</span>%&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=<span class="st0">&quot;checkbox&quot;</span> name=<span class="st0">&quot;delete&quot;</span> value=<span class="st0">&quot;yes&quot;</span>&gt;&lt;/tr&gt;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li2"><div class="de2">&lt;%<span class="br0">&#125;</span></div></li><li class="li1"><div class="de1">&nbsp;</div></li><li class="li1"><div class="de1">%&gt; </div></li><li class="li1"><div class="de1">&lt;form action=<span class="st0">&quot;deleteuser.jsp&quot;</span>&gt;</div></li><li class="li1"><div class="de1">&lt;input type=<span class="st0">&quot;hidden&quot;</span> name=<span class="st0">&quot;recordcount&quot;</span> value=<span class="st0">&quot;&lt;%=j%&gt;&quot;</span>&gt;</div></li><li class="li2"><div class="de2">&lt;input type=<span class="st0">&quot;submit&quot;</span> name=<span class="st0">&quot;b1&quot;</span> value=<span class="st0">&quot;Delete&quot;</span> &gt;</div></li><li class="li1"><div class="de1">&lt;/table&gt;</div></li><li class="li1"><div class="de1">&lt;/form&gt;</div></li><li class="li1"><div class="de1">&lt;/body&gt;</div></li><li class="li1"><div class="de1">&lt;/html&gt;</div></li></ol></pre></code> </div>
<br />
<br />
how to do the second part...any one to help me plzzzz....</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>ashish1234</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread123050.html</guid>
		</item>
		<item>
			<title>JSP Combobox</title>
			<link>http://www.daniweb.com/forums/thread122949.html</link>
			<pubDate>Wed, 07 May 2008 11:34:02 GMT</pubDate>
			<description>Hello friends,

           I want some help. If anybody can help me out for my problem. I am new to JSP. I am using NetBeans6.0 IDE , MySQL server for the database. I have differentiated my work between servlets,Javabeans and JSP. The logic of my project is stored in the servlet and JSP is used for...</description>
			<content:encoded><![CDATA[<div>Hello friends,<br />
<br />
           I want some help. If anybody can help me out for my problem. I am new to JSP. I am using NetBeans6.0 IDE , MySQL server for the database. I have differentiated my work between servlets,Javabeans and JSP. The logic of my project is stored in the servlet and JSP is used for presentation purpose only. Scriplets are not allowed for my project. I am having the text fields and dropdown object in my JSP page. I am able to retrieve the data written in the textfields but I am not able to retrieve the value selected in the dropdown.<br />
In my one JSP page there are textfields and a dropdown. And I want that the details filled in the textfield and the value selected in the dropdown  should be displayed on the next JSP page when I click on the button. The data written in the textfield are displayed but I am not able to get the data of dropdown on the other page. I have tried with the code &quot;request.getParameter(&quot;name of the combo&quot;);&quot; but I am not getting any value using this code. My code is like this.........<br />
<br />
My bean is FormBean.java<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left"><br />
&nbsp; &nbsp; &nbsp;  package Bean;<br />
<br />
<br />
import javax.servlet.http.*;<br />
/**<br />
&nbsp;*<br />
&nbsp;* @author Administrator<br />
&nbsp;*/<br />
public class FormBean {<br />
private String name;<br />
private String mname;<br />
private String lname;<br />
private String email;<br />
private String address;<br />
private String cr;<br />
<br />
<br />
public FormBean()<br />
{<br />
&nbsp; &nbsp; name=&quot;&quot;;<br />
&nbsp; &nbsp; mname=&quot;&quot;;<br />
&nbsp; &nbsp; lname=&quot;&quot;;<br />
&nbsp; &nbsp; email=&quot;&quot;;<br />
&nbsp; &nbsp; address=&quot;&quot;;<br />
&nbsp; &nbsp; cr=&quot;&quot;;<br />
&nbsp;}<br />
<br />
public String getName()<br />
{<br />
&nbsp; &nbsp; return name;<br />
}<br />
public void setName(String name)<br />
{<br />
&nbsp; &nbsp; this.name=name;<br />
}<br />
<br />
public String getMname() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return mname;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setMname(String mname) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.mname = mname;<br />
&nbsp; &nbsp; }<br />
&nbsp;public String getLname() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return lname;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setLname(String lname) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.lname = lname;<br />
&nbsp; &nbsp; }<br />
<br />
public String getEmail()<br />
{<br />
&nbsp; &nbsp; return email;<br />
}<br />
public void setEmail(String email)<br />
{<br />
&nbsp; &nbsp; this.email=email;<br />
}<br />
public String getAddress()<br />
{<br />
&nbsp; &nbsp; return address;<br />
}<br />
public void setAddress(String address)<br />
{<br />
&nbsp; &nbsp; this.address=address;<br />
}<br />
&nbsp;public String getCr() <br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; return cr;<br />
&nbsp; }<br />
public void setCr(String cr)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.cr = cr;<br />
}<br />
}<br />
</code> </div>
<br />
My servlet is SubmitHandler.java<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">import java.io.*;<br />
import java.net.*;<br />
import java.util.*;<br />
<br />
import javax.servlet.*;<br />
import javax.servlet.http.*;<br />
<br />
public class SubmitHandler extends HttpServlet {<br />
&nbsp; &nbsp; protected void doGet(HttpServletRequest request, HttpServletResponse response)<br />
&nbsp; &nbsp; throws ServletException, IOException {<br />
&nbsp; &nbsp; &nbsp;  // processRequest(request, response);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; Vector errors=new Vector();<br />
&nbsp; &nbsp; &nbsp; &nbsp; String name=request.getParameter(&quot;name&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; String mname=request.getParameter(&quot;mname&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; String lname=request.getParameter(&quot;lname&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; String address=request.getParameter(&quot;address&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; String email=request.getParameter(&quot;email&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; String cr=request.getParameter(&quot;Countryresidence&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp;  if(! isValidEmail(email))<br />
&nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  errors.add(&quot;Email Address should be of type asdfsf@yahoo.com&quot;);<br />
&nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; if(name==&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; errors.add(&quot;First Name field is compulsory&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(mname==&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; errors.add(&quot;Second Name field is compulsory&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(lname==&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; errors.add(&quot;Last Name field is compulsory&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(email==&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; errors.add(&quot;Email field is compulsory&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(address==&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; errors.add(&quot;Address field is compulsory&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(cr==&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; errors.add(&quot;Country Residence should be selected&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; String next;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(errors.size() == 0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; next=&quot;/Form.jsp&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String[] errorArray=(String[])errors.toArray(new String[0]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; request.setAttribute(&quot;errors&quot;,errorArray);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; next=&quot;/Submit.jsp&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; RequestDispatcher rd;<br />
&nbsp; &nbsp; &nbsp; &nbsp; rd=getServletContext().getRequestDispatcher(next);<br />
&nbsp; &nbsp; &nbsp; &nbsp; rd.forward(request,response);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; private boolean isValidEmail(String email)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; boolean gotat=false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; boolean gotdot=false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; char nextchar=' ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; boolean em = false;&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; do<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  for(int i=0;i&lt;email.length()-1;i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nextchar= email.charAt(i);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(nextchar=='@')<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gotat=true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(nextchar=='.' &amp;&amp; gotat==true)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; gotdot=true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }while(nextchar==' ' &amp;&amp; nextchar=='\n');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(gotat==true &amp;&amp; gotdot==true)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; em=Boolean.parseBoolean(email);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; em=true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return em; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; em=false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return em;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
protected void doPost(HttpServletRequest request, HttpServletResponse response)<br />
&nbsp; &nbsp; throws ServletException, IOException {<br />
&nbsp; &nbsp; &nbsp;  // processRequest(request, response);<br />
&nbsp; &nbsp; &nbsp; doGet(request,response);<br />
<br />
&nbsp; &nbsp; }</code> </div>
<br />
My JSP page is Submit.jsp<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">&lt;%@page contentType=&quot;text/html&quot; pageEncoding=&quot;UTF-8&quot;%&gt;<br />
<br />
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;<br />
&nbsp;  &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;<br />
&nbsp; &nbsp; &lt;jsp:useBean id=&quot;Submit&quot; class=&quot;Bean.FormBean&quot;&gt;<br />
&nbsp; &nbsp; &nbsp;  &lt;jsp:setProperty name=&quot;Submit&quot; property=&quot;*&quot;/&gt;<br />
&nbsp;  &lt;/jsp:useBean&gt;<br />
&nbsp;  <br />
&nbsp; <br />
&lt;html&gt;<br />
&nbsp; &nbsp; &lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;Submit Page&lt;/title&gt;<br />
&nbsp; &nbsp; &lt;/head&gt;<br />
&nbsp; &nbsp; &lt;body background=&quot;D:\background.jpg&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;h2&gt;Submit Resume&lt;/h2&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;%<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  String[] errors = (String[])request.getAttribute(&quot;errors&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if(errors!=null &amp;&amp; errors.length &gt;0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; %&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;Please correct your errors&lt;/b&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;ul&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;% for(int i=0; i&lt;errors.length; i++) {%&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;li&gt;&lt;%=errors[i]%&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;%}%&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  &lt;/ul&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  &lt;%}%&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;form action=&quot;SubmitHandler&quot; method=&quot;post&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;table align=&quot;left&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;table style=&quot;border-collapse:collapse;&quot; border=&quot;1&quot; bordercolor=&quot;tan&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;table align=&quot;centre&quot; border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tbody&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr bgcolor=&quot;tan&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td class=&quot;points&quot; colspan=&quot;3&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt; Personal Details&lt;/b&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;strong&gt;First Name:&lt;/strong&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span class = &quot;asterisk&quot; ID=&quot;FName&quot;&gt;*&lt;/span&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;text&quot; name=&quot;name&quot; value=&quot;&lt;jsp:getProperty name=&quot;Submit&quot; property=&quot;name&quot;/&gt;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;strong&gt;Middle Name:&lt;/strong&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span class = &quot;asterisk&quot; ID=&quot;MName&quot;&gt;*&lt;/span&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;text&quot; name=&quot;mname&quot; value=&quot;&lt;jsp:getProperty name=&quot;Submit&quot; property=&quot;mname&quot;/&gt;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;strong&gt;Last Name:&lt;/strong&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span class = &quot;asterisk&quot; ID=&quot;LName&quot;&gt;*&lt;/span&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;text&quot; name=&quot;lname&quot; value=&quot;&lt;jsp:getProperty name=&quot;Submit&quot; property=&quot;lname&quot;/&gt;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;strong&gt;Address:&lt;/strong&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span class = &quot;asterisk&quot; ID=&quot;Address&quot;&gt;*&lt;/span&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;input type=&quot;text area&quot; name=&quot;address&quot; value=&quot;&lt;jsp:getProperty name=&quot;Submit&quot; property=&quot;address&quot;/&gt;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;strong&gt;E-mail Address:&lt;/strong&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span class = &quot;asterisk&quot; ID=&quot;email&quot;&gt;*&lt;/span&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;text&quot; name=&quot;email&quot; value=&quot;&lt;jsp:getProperty name=&quot;Submit&quot; property=&quot;email&quot;/&gt;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;strong&gt; Country Residence:&lt;/strong&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span class = &quot;asterisk&quot; ID=&quot;countryres&quot;&gt;*&lt;/span&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td width=&quot;69%&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;SELECT NAME=&quot;country&quot; ID=&quot;Countryresidence&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;OPTION VALUE=&quot;Please select&quot; selected&gt;-Please Select-&lt;/OPTION&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;OPTION VALUE=&quot;&lt;jsp:getProperty name=&quot;Submit&quot; property=&quot;cr&quot;/&gt;&quot;&gt;Australia&lt;/OPTION&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;OPTION VALUE=&quot;India&quot;&gt;India&lt;/OPTION&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;OPTION VALUE=&quot;Other&quot;&gt;Other... &lt;/OPTION&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;/SELECT&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/table&gt;<br />
&nbsp;&lt;table cellSpacing=1 cellPadding=1 width=&quot;100%&quot; align=center border=0&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tbody&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td align=&quot;center&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;submit&quot; value=&quot;&nbsp;  Submit&nbsp;  &quot; name=&quot;Submit&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tbody&gt;<br />
&nbsp; &nbsp; &lt;/table&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
</code> </div>
<br />
My Form.jsp<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">&lt;%@page contentType=&quot;text/html&quot; pageEncoding=&quot;UTF-8&quot;%&gt;<br />
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;<br />
&nbsp;  &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;<br />
&nbsp;  &lt;jsp:useBean id=&quot;Submit&quot; class=&quot;Bean.FormBean&quot;&gt;<br />
&nbsp; &nbsp; &nbsp;  &lt;jsp:setProperty name=&quot;Submit&quot; property=&quot;*&quot;/&gt;<br />
&nbsp;  &lt;/jsp:useBean&gt;<br />
&lt;html&gt;<br />
&nbsp; &nbsp; &lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;JSP Page&lt;/title&gt;<br />
&nbsp; &nbsp; &lt;/head&gt;<br />
&nbsp; &nbsp; &lt;body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;H1&gt;Please check the details filled by you in the previous form&lt;/H1&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;H2&gt;Click the submit button if the details are perfect. Otherwise fill the form again&lt;/H2&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;table align=&quot;left&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;table style=&quot;border-collapse:collapse;&quot; border=&quot;1&quot; bordercolor=&quot;tan&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;table align=&quot;centre&quot; border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tbody&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr bgcolor=&quot;tan&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td class=&quot;points&quot; colspan=&quot;3&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt; Personal Details&lt;/b&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ul&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;First Name:&lt;/b&gt; &lt;jsp:getProperty name=&quot;Submit&quot; property=&quot;name&quot;/&gt;&lt;br&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;Middle Name:&lt;/b&gt; &lt;jsp:getProperty name=&quot;Submit&quot; property=&quot;mname&quot;/&gt;&lt;br&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;Last Name:&lt;/b&gt; &lt;jsp:getProperty name=&quot;Submit&quot; property=&quot;lname&quot;/&gt;&lt;br&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;Address:&lt;/b&gt; &lt;jsp:getProperty name=&quot;Submit&quot; property=&quot;address&quot;/&gt;&lt;br&gt;&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;Email:&lt;/b&gt; &lt;jsp:getProperty name=&quot;Submit&quot; property=&quot;email&quot;/&gt;&lt;br&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;Country Residence :&lt;/b&gt; &lt;jsp:getProperty name=&quot;Submit&quot; property=&quot;cr&quot;/&gt;&lt;br&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;b&gt;Country Residence change:&lt;/b&gt;&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ul&gt;&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp;  &lt;table cellSpacing=1 cellPadding=1 width=&quot;100%&quot; align=center border=0&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tbody&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td align=&quot;center&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;submit&quot; value=&quot;&nbsp;  Submit&nbsp;  &quot; name=&quot;Submit&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tbody&gt;<br />
&nbsp; &nbsp; &lt;/table&gt;<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &lt;/body&gt;<br />
&lt;/html&gt;<br />
</code> </div>
<br />
The contents filled in the Submit.jsp should be displayed on the Form.jsp. The details filled in the textboxes are displayed in the Form.jsp but the value selected in the combobox is not displayed. I am not able to find the solution. Please help me as early as possible.<br />
<br />
I am also facing problem in retrieving the data from the database. This is my new project.I want to display the data from database on the JSP page using Servlets and javabeans. Please help me out for this also. <br />
<br />
This is my index.jsp<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left"> &lt;%@page contentType=&quot;text/html&quot; pageEncoding=&quot;UTF-8&quot;%&gt;<br />
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;<br />
&nbsp;  &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;<br />
<br />
&lt;jsp:useBean id=&quot;index&quot; class=&quot;CB.ControlBean&quot; &gt;<br />
&nbsp; &nbsp; &lt;jsp:setProperty name=&quot;index&quot; property=&quot;*&quot;/&gt;<br />
&lt;/jsp:useBean&gt;<br />
<br />
&lt;html&gt;<br />
&nbsp; &nbsp; &lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;JSP Page&lt;/title&gt;<br />
&nbsp; &nbsp; &lt;/head&gt;<br />
&nbsp; &nbsp; &lt;body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;h2&gt;Hello World!&lt;/h2&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;form action=&quot;IndexHandler&quot; method=&quot;post&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;table&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;Username:&nbsp;  &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;text&quot; name=&quot;username&quot; value=&quot;&lt;jsp:getProperty name=&quot;index&quot; property=&quot;username&quot;/&gt;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!--&lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;Password:&nbsp;  &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;password&quot; name=&quot;password&quot; value=&quot;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;--&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;&nbsp;  Submit&nbsp;  &quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;<br />
&nbsp; &nbsp; &lt;/form&gt;<br />
&nbsp; &nbsp; &lt;/body&gt;<br />
&lt;/html&gt;<br />
</code> </div>
<br />
My servlet and bean are as follows<br />
ControlBean.java<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">package CB;<br />
<br />
/**<br />
&nbsp;*<br />
&nbsp;* @author Administrator<br />
&nbsp;*/<br />
public class ControlBean {<br />
&nbsp; &nbsp; <br />
private String username;<br />
//private String password;<br />
<br />
public ControlBean()<br />
{<br />
&nbsp; &nbsp; username=&quot;&quot;;<br />
&nbsp; //&nbsp; password=&quot;&quot;;<br />
&nbsp; &nbsp; <br />
}<br />
&nbsp; &nbsp; public String getUsername() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return username;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setUsername(String username) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.username = username;<br />
&nbsp; &nbsp; }<br />
}</code> </div>
<br />
My servlet IndexHandler.java<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">import java.io.*;<br />
import java.net.*;<br />
import java.sql.*;<br />
<br />
import javax.servlet.*;<br />
import javax.servlet.http.*;<br />
<br />
/**<br />
&nbsp;*<br />
&nbsp;* @author Administrator<br />
&nbsp;*/<br />
public class IndexHandler extends HttpServlet {<br />
protected void doGet(HttpServletRequest request, HttpServletResponse response)<br />
&nbsp; &nbsp; throws ServletException, IOException {<br />
&nbsp; &nbsp; &nbsp; &nbsp; //processRequest(request, response);<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; String username=request.getParameter(&quot;username&quot;);<br />
&nbsp; &nbsp; &nbsp;  // String password=request.getParameter(&quot;password&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; Connection conn=null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int a =0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(username != null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  // Class.forName(&quot;org.gjt.mm.mysql.Driver&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Class.forName(&quot;com.mysql.jdbc.Driver&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conn = DriverManager.getConnection(&quot;jdbc:mysql://localhost:3306/db&quot;,&quot;root&quot;,&quot;krishna&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Statement stat=conn.createStatement();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //String query =&quot;insert into UserInfo values( &quot;+&quot;'&quot;+username+&quot;',&quot;+&quot;'&quot;+password+&quot;' )&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String query =&quot;select * from UserInfo where Username=&quot;+&quot;'&quot;+username+&quot;'&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ResultSet results=stat.executeQuery(query);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //System.out.println(&quot;&lt;h2&gt;&quot;+&quot;You have successfully entered data&quot;+&quot;&lt;/h2&gt;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(results);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //out.println(&quot;&lt;h3&gt;&quot;+&quot;&lt;a href=&quot;+&quot;http://localhost:8080//JspApplicationProject//view.jsp&quot;+&quot; target=/&quot;+&quot;_parent/&quot;+&quot;&gt;UpdateData&lt;//a&gt;&quot;+&quot;&lt;/h3&gt;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; catch(ClassNotFoundException cnf)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;cnf&quot;+cnf.getMessage());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(cnf);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; catch(SQLException exp)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;exp&quot;+exp.getMessage());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(exp);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; finally<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(conn!= null)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conn.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch(SQLException esp)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(esp.getMessage());&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp;  System.out.close();<br />
}</code> </div>
<br />
I am, trying that the result set should be displayed on next JSP page.<br />
Please help me as early as possible. Please...............<br />
Thanx in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>Dolly-Sweety</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread122949.html</guid>
		</item>
		<item>
			<title>restrict access of url addressbar</title>
			<link>http://www.daniweb.com/forums/thread122895.html</link>
			<pubDate>Wed, 07 May 2008 06:31:37 GMT</pubDate>
			<description><![CDATA[hai everybody,

i have a problem in jsp that i should access my application only by login. in my project when i give this url in my address bar "http://localhost:8080/jsp-examples/InvMgmt/test/stockrequisition.jsp". it directly goes to the stockrequisition page.

i dont know how to use the session...]]></description>
			<content:encoded><![CDATA[<div>hai everybody,<br />
<br />
i have a problem in jsp that i should access my application only by login. in my project when i give this url in my address bar &quot;http://localhost:8080/jsp-examples/InvMgmt/test/stockrequisition.jsp&quot;. it directly goes to the stockrequisition page.<br />
<br />
i dont know how to use the session variable. here i am sending stock requisition page please make a help for me.its urgent.<br />
<br />
thanx in advance<br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left"><br />
&nbsp;<br />
&lt;%@ page import=&quot;java.sql.*&quot; %&gt;<br />
&lt;%@ page import=&quot;java.sql.Connection&quot; %&gt;<br />
&lt;%@ page import=&quot;java.sql.DriverManager&quot; %&gt;<br />
&lt;%@ page import=&quot;java.sql.ResultSet&quot; %&gt;<br />
&lt;%@ page import=&quot;java.sql.Statement&quot; %&gt;<br />
&lt;%@ page import=&quot;java.sql.PreparedStatement&quot; %&gt;<br />
<br />
<br />
<br />
&lt;html&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;script language=&quot;JavaScript&quot; src=&quot;GCappearance.js&quot;&gt;&lt;/script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;script language=&quot;JavaScript&quot; src=&quot;GurtCalendar.js&quot;&gt;&lt;/script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; href=&quot;calendar.css&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;STOCK REQUISITION&lt;/title&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;style type=&quot;text/css&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!--<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .style24 {font-family: Verdana, Arial, Helvetica, sans-serif; <br />
<br />
font-size: 12px; font-weight: bold; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .style38 {font-size: 10px}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .style39 {font-family: Verdana, Arial, Helvetica, sans-serif; <br />
<br />
font-size: 12px; font-weight: bold; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/style&gt;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;script language = &quot;javascript&quot;&gt;<br />
<br />
<br />
<br />
function check()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(document.frm1.n1.value==&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter SR No&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.frm1.n1.focus();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(document.frm1.n2.value==&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter Item ID&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.frm1.n2.focus();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(document.frm1.n3.value==&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter SR Quantity&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.frm1.n3.focus();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(document.frm1.dataAreaTest.value==&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter Date&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.frm1.dataAreaTest.focus();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(document.frm1.n4.value==&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter SR Status&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.frm1.n4.focus();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(document.frm1.n5.value==&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter From Party&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.frm1.n5.focus();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(document.frm1.n6.value==&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Please enter Remarks&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.frm1.n6.focus();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.location.href=(&quot;stockinsert.jsp?srno=&quot; + <br />
<br />
document.frm1.n1.value + &quot;&amp;itemid=&quot;+document.frm1.n2.value + &quot;&amp;srqty=&quot;+ <br />
<br />
document.frm1.n3.value + &quot;&amp;date=&quot; + document.frm1.dataAreaTest.value + &quot;&amp;srstatus=&quot; <br />
<br />
+ document.frm1.n4.value + &quot;&amp;fromparty=&quot; + document.frm1.n5.value + &quot;&amp;remarks=&quot; + <br />
<br />
document.frm1.n6.value);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;Stock Requistion is Created&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function reset()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frm1.n1.value=&quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frm1.n2.value=&quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frm1.n3.value=&quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frm1.n4.value=&quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frm1.n5.value=&quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frm1.n6.value=&quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frm1.n7.value=&quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; frm1.n1.focus();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
function cancel()<br />
{<br />
if(document.frm1.n1.value==&quot;&quot;)<br />
{<br />
alert(&quot;Please enter SRNo to search&quot;);<br />
document.frm1.n1.focus();<br />
}<br />
else<br />
{<br />
<br />
document.location.href=(&quot;stockdelete.jsp?srno=&quot; + document.frm1.n1.value);<br />
<br />
<br />
}<br />
}<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;body background=&quot;images/WSBackground_Songs1.jpg&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;center&gt;&lt;h2&gt;STOCK REQUISTION&lt;/h2&gt;&lt;/center&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;center&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;form name=&quot;frm1&quot; action=&quot;stockinsert.jsp&quot; method=&quot;post&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;center&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;table width=&quot;800&quot; border=&quot;0&quot; cellspacing=&quot;5&quot; <br />
<br />
cellpadding=&quot;0&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;center&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;td width=&quot;900&quot; &gt;&nbsp; &nbsp; &nbsp; &nbsp; &lt;table width=&quot;800&quot; <br />
<br />
align=&quot;center&quot; border=&quot;0&quot; cellspacing=&quot;5&quot; cellpadding=&quot;2&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;span <br />
<br />
class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;span <br />
<br />
class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;span class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&amp;nbsp;&lt;/td&gt;&nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;%<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Connection con=null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Statement st=null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ResultSet rs=null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Class.forName(&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; con = DriverManager.getConnection<br />
<br />
(&quot;jdbc:odbc:invent&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String query=&quot;select max(SR_No) from <br />
<br />
Stock_Requistion&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; st=con.createStatement();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs=st.executeQuery(query);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while(rs.next())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; %&gt;&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;td&nbsp; align=&quot;left&quot;&gt;&lt;span <br />
<br />
class=&quot;style24&quot;&gt;SR No: &lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;n1&quot; type=&quot;text&quot; <br />
<br />
title = &quot;Please enter the SR No in the series of 1000...<br />
For Eg: 1001&quot; value=&quot;&lt;%=rs.getInt(1)+1%&gt;&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;%<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  } catch (Exception e) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; //Handle exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(e);<br />
&nbsp; &nbsp; } finally {<br />
&nbsp; &nbsp; &nbsp; &nbsp; try {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; st.close();&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; con.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; } catch (Exception e) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Handle exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; %&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;td&gt;&lt;span <br />
<br />
class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;td&gt;&lt;span <br />
<br />
class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp;&lt;td&gt;&lt;span class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;td align=&quot;left&quot;&gt;&lt;span <br />
<br />
class=&quot;style24&quot;&gt;Item ID: &lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;td&gt;&lt;input name=&quot;n2&quot; type=&quot;text&quot; <br />
<br />
title= &quot;Please enter the Item ID like the example given below<br />
For Eg: i001&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;span <br />
<br />
class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;span <br />
<br />
class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&nbsp;&lt;td align=&quot;left&quot;&gt;&lt;span class=&quot;style24&quot;&gt;Requested Delivery Date:&lt;/span&gt;&lt;/td&gt;<br />
&lt;td&gt;<br />
&nbsp; &nbsp; &lt;script language=&quot;JavaScript&quot;&gt;<br />
&lt;!--&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
var GC_SET_0 = {<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'appearance': GC_APPEARANCE,<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'dataArea' : 'dataAreaTest'<br />
}<br />
new gCalendar(GC_SET_0);<br />
//--&gt;<br />
&lt;/script&gt;&lt;/td&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;/tr&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;tr&gt;<br />
&lt;td&gt;&lt;span class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;span class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;span class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td align=&quot;left&quot;&gt;&lt;span <br />
<br />
class=&quot;style24&quot;&gt;SR Quantity: &lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;n3&quot; type=&quot;text&quot; <br />
<br />
title=&quot;Please enter numeric values&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;td&gt;&lt;span <br />
<br />
class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;span <br />
<br />
class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;span class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&amp;nbsp;&lt;/td&gt;&nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;span class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;td align=&quot;left&quot;&gt;&lt;span class=&quot;style24&quot;&gt;SR Status: <br />
<br />
&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;td&gt;&lt;input name=&quot;n4&quot; type=&quot;text&quot; title=&quot;Please enter the SR <br />
<br />
Status like the example given below<br />
For Eg: active or inactive&quot;&gt;&lt;/td&gt;<br />
&nbsp;&lt;td&gt;&lt;span class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;span class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&lt;span class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&lt;td&gt;&lt;span class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;td&gt;&lt;span class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;td align=&quot;left&quot;&gt;&lt;span class=&quot;style24&quot;&gt;From <br />
<br />
Party:&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;n5&quot; type=&quot;text&quot; title= &quot;Please enter the From <br />
<br />
Party like the example given below<br />
For Eg: s001&quot;&gt;&lt;/td&gt;<br />
&nbsp;&lt;td&gt;&lt;span class=&quot;style38&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&lt;td&gt;&lt;span class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; <br />
&lt;td&gt;&lt;span class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&lt;td&gt;&lt;span class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td align=&quot;left&quot;&gt;&lt;span class=&quot;style24&quot;&gt;Remarks: &lt;/span&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;n6&quot; type=&quot;textfield&quot; title= &quot;Please enter the Remarks <br />
<br />
like the example given below<br />
For Eg: success or failed&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;td&gt;&lt;span class=&quot;style39&quot;&gt;&lt;/span&gt;&lt;/td&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;/tr&gt;<br />
&lt;/center&gt;&lt;/table&gt;<br />
&lt;table&gt;<br />
&lt;tr&gt;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&lt;/table&gt;<br />
<br />
&nbsp; &nbsp; &nbsp;  &lt;br&gt;<br />
&nbsp;  &lt;center&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<br />
&lt;input name=&quot;btn&quot;type=&quot;button&quot; value=&quot;CREATE SR&quot; onClick=&quot;check()&quot; &gt;<br />
&amp;nbsp;<br />
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<br />
<br />
&amp;nbsp;&amp;nbsp;&lt;INPUT TYPE=&quot;reset&quot; onClick=reset() value=&quot;RESET&quot;&gt;&amp;nbsp;<br />
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<br />
<br />
&amp;nbsp;&amp;nbsp;&lt;INPUT TYPE=&quot;button&quot; name=&quot;can&quot; onClick=cancel() value=&quot;CANCEL <br />
<br />
SR&quot;&gt;&lt;/center&gt;<br />
&nbsp; &lt;/center&gt; <br />
&lt;/center&gt;<br />
&lt;/form&gt;<br />
<br />
&lt;/body&gt;<br />
<br />
&lt;/html&gt;</code> </div></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>priyav</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread122895.html</guid>
		</item>
		<item>
			<title>i want source code for maintaining  session in a jsp</title>
			<link>http://www.daniweb.com/forums/thread122881.html</link>
			<pubDate>Wed, 07 May 2008 05:17:29 GMT</pubDate>
			<description>hi.........

          i am having 13 jsp pages.in the first page i have to select any one radio button and then i have to go to the next page,there also i have to click any one radio and then i have to go to the next page,likewise i have to go 13 jsp pages...if i am coming to the previous page...</description>
			<content:encoded><![CDATA[<div>hi.........<br />
<br />
          i am having 13 jsp pages.in the first page i have to select any one radio button and then i have to go to the next page,there also i have to click any one radio and then i have to go to the next page,likewise i have to go 13 jsp pages...if i am coming to the previous page ,already selected option must be click.for that i have to use session .....but i dont know how to use,bcoz i am new to this jsp......my team leader asking us to use session in same page...........<br />
<br />
<br />
              please help me immediately..........explain me with small examples...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>shytr</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread122881.html</guid>
		</item>
		<item>
			<title>highlight selected block in textarea</title>
			<link>http://www.daniweb.com/forums/thread122870.html</link>
			<pubDate>Wed, 07 May 2008 03:47:34 GMT</pubDate>
			<description>haii friends...
i have to highlight selected block in textarea in jsp..is any way to highlight the block..
thankzzz...</description>
			<content:encoded><![CDATA[<div>haii friends...<br />
i have to highlight selected block in textarea in jsp..is any way to highlight the block..<br />
thankzzz...</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>ajithraj</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread122870.html</guid>
		</item>
		<item>
			<title>Remotely Invoked Methods and JSP</title>
			<link>http://www.daniweb.com/forums/thread122684.html</link>
			<pubDate>Tue, 06 May 2008 04:37:48 GMT</pubDate>
			<description><![CDATA[Hi everyone,

I've been trying to use an RMI Service from a JSP page, but whenever I try it I get an error of not finding the object. I've started the rmiregistry service, and the Services Implementations registers it, and when I run a class client I have for it, it works well. but when I try a JSP...]]></description>
			<content:encoded><![CDATA[<div>Hi everyone,<br />
<br />
I've been trying to use an RMI Service from a JSP page, but whenever I try it I get an error of not finding the object. I've started the rmiregistry service, and the Services Implementations registers it, and when I run a class client I have for it, it works well. but when I try a JSP page I get the following error:<br />
<a rel="nofollow" class="t" href="http://img152.imageshack.us/img152/9882/87198913ca2.jpg" target="_blank">http://img152.imageshack.us/img152/9882/87198913ca2.jpg</a><br />
<br />
The code is the zip I include in the attachment.<br />
<br />
Thanks you.<br />
<br />
John</div>  <br /> <div style="padding:5px">     <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="5" border="0"> <tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums//forums/myimages/attach/zip.gif" alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=5963&amp;d=1210048599">MyRemote.zip</a> (4.6 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>afflictedd2</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread122684.html</guid>
			<enclosure url="http://www.daniweb.com/forums/attachment.php/5963/MyRemote.zip" length="4701" type="application/zip" />
		</item>
		<item>
			<title>extra bytes at the end of file</title>
			<link>http://www.daniweb.com/forums/thread122491.html</link>
			<pubDate>Mon, 05 May 2008 07:39:23 GMT</pubDate>
			<description>I m trying to connect MYSQL 4.1.1 from JSP using java. and I m getting error as described below.

javax.servlet.ServletException: Extra bytes at the end of class file...</description>
			<content:encoded><![CDATA[<div>I m trying to connect MYSQL 4.1.1 from JSP using java. and I m getting error as described below.<br />
<br />
javax.servlet.ServletException: Extra bytes at the end of class file org/gjt/mm/mysql/Driver<br />
	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)<br />
	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)<br />
	org.apache.jsp.Login100408_jsp._jspService(Login100408_jsp.java:697)<br />
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)<br />
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<br />
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)<br />
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)<br />
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)<br />
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<br />
<br />
plz help me I m not getting any solution.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>punitdam</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread122491.html</guid>
		</item>
		<item>
			<title>SQL Query problem</title>
			<link>http://www.daniweb.com/forums/thread122477.html</link>
			<pubDate>Mon, 05 May 2008 06:05:30 GMT</pubDate>
			<description><![CDATA[Dear all, 
I filter my query select with parameter from previous page.

SQL = "select a.KodePenyanyi, p.NamaPenyanyi, p.WebSite,  a.KodeAlbum, a.NamaAlbum, NamaLabel,  Tahun, a.Kaset, a.CD, a.CDImport, a.DVD, DaftarLagu, ReviewAlbum FROM masterpenyanyi p inner join masteralbum a on...]]></description>
			<content:encoded><![CDATA[<div>Dear all, <br />
I filter my query select with parameter from previous page.<br />
<br />
SQL = &quot;select a.KodePenyanyi, p.NamaPenyanyi, p.WebSite,  a.KodeAlbum, a.NamaAlbum, NamaLabel,  Tahun, a.Kaset, a.CD, a.CDImport, a.DVD, DaftarLagu, ReviewAlbum FROM masterpenyanyi p inner join masteralbum a on a.KodePenyanyi=p.KodePenyanyi inner join masterlabel on masterlabel.KodeLabel = a.KodeLabel where a.KodeAlbum='&quot; + kodeAlbum + &quot;'&quot;;<br />
<br />
Result should be like this :<br />
select a.KodePenyanyi, p.NamaPenyanyi, p.WebSite,  a.KodeAlbum, a.NamaAlbum, NamaLabel,  Tahun, a.Kaset, a.CD, a.CDImport, a.DVD, DaftarLagu, ReviewAlbum FROM masterpenyanyi p inner join masteralbum a on a.KodePenyanyi=p.KodePenyanyi inner join masterlabel on masterlabel.KodeLabel = a.KodeLabel where a.KodeAlbum='SID-001'<br />
<br />
but I dont know why JSP gives this result :<br />
select a.KodePenyanyi, p.NamaPenyanyi, p.WebSite, a.KodeAlbum, a.NamaAlbum, NamaLabel, Tahun, a.Kaset, a.CD, a.CDImport, a.DVD, DaftarLagu, ReviewAlbum FROM masterpenyanyi p inner join masteralbum a on a.KodePenyanyi=p.KodePenyanyi inner join masterlabel on masterlabel.KodeLabel = a.KodeLabel where a.KodeAlbum='&quot;000002-0015&quot;' <br />
<br />
<div style="margin:10px 20px 20px 20px"> <code style="margin:0px" dir="ltr" style="text-align:left">&lt;%@ page language=&quot;java&quot; import=&quot;java.sql.*&quot; %&gt;<br />
&lt;%@page contentType=&quot;text/html&quot; pageEncoding=&quot;UTF-8&quot;%&gt;<br />
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&nbsp; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;<br />
&lt;%<br />
&nbsp; &nbsp; &nbsp; &nbsp; ResultSet rst=null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Statement stmt=null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Connection cn = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; try {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Class.forName(&quot;com.mysql.jdbc.Driver&quot;);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String url;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; url = &quot;jdbc:mysql://localhost:3306/tokomusik?user=root&amp;password=root&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cn = DriverManager.getConnection (url);&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stmt=cn.createStatement(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String kodeAlbum;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kodeAlbum = request.getParameter(&quot;KodeAlbum&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String SQL;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:Red"><b>SQL = &quot;select a.KodePenyanyi, p.NamaPenyanyi, p.WebSite,&nbsp; a.KodeAlbum, a.NamaAlbum, NamaLabel,&nbsp; Tahun, a.Kaset, a.CD, a.CDImport, a.DVD, DaftarLagu, ReviewAlbum FROM masterpenyanyi p inner join masteralbum a on a.KodePenyanyi=p.KodePenyanyi inner join masterlabel on masterlabel.KodeLabel = a.KodeLabel where a.KodeAlbum='&quot; + kodeAlbum + &quot;'&quot;;</b></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rst=stmt.executeQuery(SQL);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.println(SQL);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; catch (SQLException se) <br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.println(se.toString());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; } catch (Exception ex) <br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.println(ex.toString());&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
%&gt;</code> </div></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>Kusno</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread122477.html</guid>
		</item>
	</channel>
</rss>
