<?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>Sun, 08 Nov 2009 01:41:10 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/alphaimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community - JSP</title>
			<link>http://www.daniweb.com/forums/</link>
		</image>
		<item>
			<title>retrieving value from a jsp file.</title>
			<link>http://www.daniweb.com/forums/thread236507.html</link>
			<pubDate>Fri, 06 Nov 2009 07:36:42 GMT</pubDate>
			<description><![CDATA[hello everyone, 
i need 1 help.   
i am having 3 ".jsp" files : x1.jsp,x2.jsp and x3.jsp.  in x1.jjsp i am having a combo box, from the combo box i am selecting 1 value.  
there is a submit button below it. i am using "form method = post  
action=x2.jsp". the value which i am selecting from...]]></description>
			<content:encoded><![CDATA[<div>hello everyone,<br />
i need 1 help.  <br />
i am having 3 &quot;.jsp&quot; files : x1.jsp,x2.jsp and x3.jsp.  in x1.jjsp i am having a combo box, from the combo box i am selecting 1 value. <br />
there is a submit button below it. i am using &quot;form method = post <br />
action=x2.jsp&quot;. the value which i am selecting from combo(of x1.jsp), i am retrieving the value in x2.jsp by &quot;request.getParameter(&quot;variable_name&quot;);&quot;   <br />
<br />
but how to retrieve that value which i am selection from combo in x3.jsp<br />
<br />
please send me the code for this.<br />
<br />
thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>singju</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236507.html</guid>
		</item>
		<item>
			<title>Problem libs struts not recognize</title>
			<link>http://www.daniweb.com/forums/thread236287.html</link>
			<pubDate>Thu, 05 Nov 2009 14:17:41 GMT</pubDate>
			<description><![CDATA[I am developping an JEE application and i don't understand why this lines are not recognize by eclispe. I have import the library struts. If someone has an idea.... thanks 
 
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> 
<%@ taglib...]]></description>
			<content:encoded><![CDATA[<div>I am developping an JEE application and i don't understand why this lines are not recognize by eclispe. I have import the library struts. If someone has an idea.... thanks<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;%@ taglib uri=&quot;http://jakarta.apache.org/struts/tags-bean&quot; prefix=&quot;bean&quot; %&gt;<br />
&lt;%@ taglib uri=&quot;http://jakarta.apache.org/struts/tags-html&quot; prefix=&quot;html&quot; %&gt;<br />
&lt;%@ taglib uri=&quot;http://jakarta.apache.org/struts/tags-logic&quot; prefix=&quot;logic&quot; %&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>PAPISSANT</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236287.html</guid>
		</item>
		<item>
			<title>Layout template</title>
			<link>http://www.daniweb.com/forums/thread236138.html</link>
			<pubDate>Thu, 05 Nov 2009 04:18:39 GMT</pubDate>
			<description><![CDATA[Hey guys, 
 I'm currently learning JSP and Java using Netbeans, and I was wondering if there was an easy way to create a web template layout. For example, using a single header, footer, and navigation bar for all pages. In Ruby on Rails, there is a "layouts" view, which you can define an .rhtml...]]></description>
			<content:encoded><![CDATA[<div>Hey guys,<br />
 I'm currently learning JSP and Java using Netbeans, and I was wondering if there was an easy way to create a web template layout. For example, using a single header, footer, and navigation bar for all pages. In Ruby on Rails, there is a &quot;layouts&quot; view, which you can define an .rhtml page and simply put the yield tag, &lt;%= yield %&gt; . Once this is done, all of the views you create will simply append the layout where the yield tag is. Is there something similar to this that I can use for a Java Web App?<br />
<br />
Thanks,<br />
 - Jeff Miller</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>ibanez270dx</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236138.html</guid>
		</item>
		<item>
			<title>Problem in running JSP</title>
			<link>http://www.daniweb.com/forums/thread235992.html</link>
			<pubDate>Wed, 04 Nov 2009 15:35:45 GMT</pubDate>
			<description>hi, 
i am new in java web application. i am working with eclipse 3.5 and tomcat 6. tomcat is working with eclipse very fine. but when i am trying to run jsp code, i am getting the following message from java virtual machine launcher, 
 
could not find the main class: org.apache.jasper.JspC. program...</description>
			<content:encoded><![CDATA[<div>hi,<br />
i am new in java web application. i am working with eclipse 3.5 and tomcat 6. tomcat is working with eclipse very fine. but when i am trying to run jsp code, i am getting the following message from java virtual machine launcher,<br />
<br />
could not find the main class: org.apache.jasper.JspC. program will exit.<br />
<br />
can anybody say, what is the problem and how can i solve it.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>shepon086</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235992.html</guid>
		</item>
		<item>
			<title>hi~need some help~</title>
			<link>http://www.daniweb.com/forums/thread235902.html</link>
			<pubDate>Wed, 04 Nov 2009 09:13:47 GMT</pubDate>
			<description><![CDATA[hey guys, i'm new here! 
i would like to know  
how to code the "Add to cart" ? 
can someone help me please?]]></description>
			<content:encoded><![CDATA[<div>hey guys, i'm new here!<br />
i would like to know <br />
how to code the &quot;Add to cart&quot; ?<br />
can someone help me please?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>hanzooi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235902.html</guid>
		</item>
		<item>
			<title>send a function in a JSON through java</title>
			<link>http://www.daniweb.com/forums/thread235731.html</link>
			<pubDate>Tue, 03 Nov 2009 18:55:31 GMT</pubDate>
			<description><![CDATA[Hello everyone, 
 
first of all, I dont know if this should be in the java or the jsp forum. I put it here since is a web related question. 
 
I am making a report module for a web page using java. For this I will use a jquery plugin called datatables (I'm  not sure if it's allowed to link to it)....]]></description>
			<content:encoded><![CDATA[<div>Hello everyone,<br />
<br />
first of all, I dont know if this should be in the java or the jsp forum. I put it here since is a web related question.<br />
<br />
I am making a report module for a web page using java. For this I will use a jquery plugin called datatables (I'm  not sure if it's allowed to link to it). The point is that I need to generate a json string dynamically in order to get my reports.<br />
<br />
The problem is that along with my data I will also have to send some anonymous functions in the json. I have used some libraries to convert java objects to a json string but nothing on how to send a function.<br />
<br />
The jsons will look something like this:<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">{<br />
&quot;aoColumns&quot;: [&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; { &quot;sTitle&quot;: &quot;Column 1&quot; },<br />
&nbsp; &nbsp; &nbsp; &nbsp; { &quot;sTitle&quot;: &quot;Column2&quot; },<br />
&nbsp; &nbsp; &nbsp; &nbsp; { &quot;sTitle&quot;: &quot;Column3&quot; },<br />
&nbsp; &nbsp; &nbsp; &nbsp; { &quot;sTitle&quot;: &quot;Column centered&quot;, <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &quot;sClass&quot;: &quot;center&quot; },<br />
&nbsp; &nbsp; &nbsp; &nbsp; {&quot;sTitle&quot;: &quot;Column rendered&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;sClass&quot;: &quot;center&quot;,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;fnRender&quot;: function(obj) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var sReturn = obj.aData[ obj.iDataColumn ];&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( sReturn == &quot;A&quot; ) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sReturn = &quot;&lt;b&gt;A&lt;/b&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return sReturn;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; ]<br />
}</pre><br />
I know I can generate it manually as a string, but that seems quite complex and I would like to keep that as a las resort.<br />
<br />
Anyone knows a library that can generate javascript functions from java? <br />
<br />
Thank you for any help you can provide me. This place looks quite nice btw</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>santiagozky</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235731.html</guid>
		</item>
		<item>
			<title>Combobox Selection From Session Attribute</title>
			<link>http://www.daniweb.com/forums/thread235674.html</link>
			<pubDate>Tue, 03 Nov 2009 14:22:28 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I would like to have a Combobox where the selected item is the value set in the session attribute. 
 
For example: 
HTML: 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680"...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I would like to have a Combobox where the selected item is the value set in the session attribute.<br />
<br />
For example:<br />
HTML:<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;select name='myCombo'&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value='--Select Table--'&gt;--Select Table--&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value='OPTION1'&gt;OPTION1&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value='OPTION2'&gt;OPTION2&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;</pre><br />
Javascript<b></b>:<br />
 <pre style="margin:20px; line-height:13px">document.getElementbyName('myCombo').selectedValue = session.getAttribute(&quot;choice&quot;);</pre><br />
Thanks,<br />
-Ashton.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>AshtonHogan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235674.html</guid>
		</item>
		<item>
			<title>JSP Page Interaction</title>
			<link>http://www.daniweb.com/forums/thread235621.html</link>
			<pubDate>Tue, 03 Nov 2009 10:53:29 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I'm trying to figure out how to pass parameters across JSP pages without using links. For some reason, I can only get null across... 
 
Here is my code: 
Page 1 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I'm trying to figure out how to pass parameters across JSP pages without using links. For some reason, I can only get null across...<br />
<br />
Here is my code:<br />
Page 1<br />
 <pre style="margin:20px; line-height:13px">&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;Test Page&lt;/title&gt;<br />
&nbsp; &nbsp; &lt;/head&gt;<br />
&nbsp; &nbsp; &lt;body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;form name=&quot;testForm&quot; action=&quot;Test.jsp&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;select name='tableSelect' onChange='testForm.submit();' style=&quot;text-align:center&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value='--Select Table--'&gt;--Select Table--&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value='CONFIG_SOURCE'&gt;CONFIG_SOURCE&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value='CONFIG_PROCESS'&gt;CONFIG_PROCESS&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value='CONFIG_PROCESS_SOURCE'&gt;CONFIG_PROCESS_SOURCE&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value='CONFIG_SAL_ROUTING'&gt;CONFIG_SAL_ROUTING&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;%<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.println(request.getParameter(&quot;tableSelect&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; %&gt;<br />
&nbsp; &nbsp; &lt;/body&gt;<br />
&lt;/html&gt;</pre><br />
Page 2:<br />
 <pre style="margin:20px; line-height:13px">&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;Test Recieve Page&lt;/title&gt;<br />
&nbsp; &nbsp; &lt;/head&gt;<br />
&nbsp; &nbsp; &lt;body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;%<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.println(request.getParameter(&quot;tableSelect&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; %&gt;<br />
&nbsp; &nbsp; &lt;/body&gt;<br />
&lt;/html&gt;</pre><br />
Thanks,<br />
-Ashton</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>AshtonHogan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235621.html</guid>
		</item>
		<item>
			<title>how to increase users in tomcat-users.xml file automatically not manually</title>
			<link>http://www.daniweb.com/forums/thread235608.html</link>
			<pubDate>Tue, 03 Nov 2009 10:16:55 GMT</pubDate>
			<description>Hi guys, I am trying to restrict users to access the sources of my application so I have used tomcat-users.xml file , but later I will be facing a problem which is how if I have a lot of authorized users , so I will add each one to that file manually , i think it is not efficient way . Furthermore...</description>
			<content:encoded><![CDATA[<div>Hi guys, I am trying to restrict users to access the sources of my application so I have used tomcat-users.xml file , but later I will be facing a problem which is how if I have a lot of authorized users , so I will add each one to that file manually , i think it is not efficient way . Furthermore , I am having an application that lets users used its resources based on the user account in database. if the user has an account in database he/she can login to the application and use the resources , so how can I use this idea with tomcat-users.xml just to avoid the increase number of authorized users in tomcat-users.xml<br />
I hope you understand my question . I don't mind to repeat it again if you have any question<br />
please help me guys because I want to prevent unathorized users to access directly using URL in my application<br />
thank you very very very much</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>alsoumhi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235608.html</guid>
		</item>
		<item>
			<title>Help with GET method please</title>
			<link>http://www.daniweb.com/forums/thread235474.html</link>
			<pubDate>Mon, 02 Nov 2009 21:10:24 GMT</pubDate>
			<description><![CDATA[Hello- I am pretty new to JSP 
 
I need some help with a GET method. Apparently IE has a URL length limitation.. 
 
IE0- "If you are using the GET method, you are limited to a maximum of 2,048 characters, minus the number of characters in the actual path." 
 
By sending all the variables I was...]]></description>
			<content:encoded><![CDATA[<div>Hello- I am pretty new to JSP<br />
<br />
I need some help with a GET method. Apparently IE has a URL length limitation..<br />
<br />
IE0- &quot;If you are using the GET method, you are limited to a maximum of 2,048 characters, minus the number of characters in the actual path.&quot;<br />
<br />
By sending all the variables I was hitting the IE browser limitation on length of GET parameters (URL length).  So I attempted to shorted it up a bit by taking out some variables that are sent in the handoff template. It's no longer a long url issue, but it still does not seem to work right. Can someone take a look at my code and see if I am doing something wrong?<br />
<br />
Thanks!<br />
<br />
     <pre style="margin:20px; line-height:13px">&lt;form name=&quot;RedirectForm&quot; method=&quot;Get&quot; ACTION=&quot;&lt;%=forwardUrl%&gt;&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;%<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Enumeration paramNames = request.getParameterNames();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while(paramNames.hasMoreElements())<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String name = (String)paramNames.nextElement();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //if(name.equals(&quot;url&quot;) || name.equals(&quot;id&quot;))<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //{<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //&nbsp; &nbsp; &nbsp; continue;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //}<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; %&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;&lt;%=name%&gt;&quot; value=&quot;&lt;%=request.getParameter(name)%&gt;&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;%} %&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;%<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (processBean.getProcess() != null) {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; %&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;_label&quot; value=&quot;&lt;bean:write name='processBean' property='label'/&gt;&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;_title&quot; value=&quot;&lt;bean:write name='processBean' property='title'/&gt;&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;_actorsUserID&quot; value=&quot;&lt;%=request.getRemoteUser()%&gt;&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;_processId&quot; value=&quot;&lt;bean:write name='processBean' property='id'/&gt;&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;_owner&quot; value=&quot;&lt;bean:write name='processBean' property='owner'/&gt;&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;%--&lt;logic:iterate id=&quot;operandBean&quot; name=&quot;contextOperands&quot; property=&quot;operands&quot; type=&quot;com.oakgrovesystems.portal.content.OperandContentBean&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;&lt;bean:write name=&quot;operandBean&quot; property=&quot;label&quot;/&gt;&quot; value=&quot;&lt;bean:write name=&quot;operandBean&quot; property=&quot;value&quot; filter=&quot;false&quot;/&gt;&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/logic:iterate&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; --%&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;logic:iterate id=&quot;operandBean&quot; name=&quot;contextOperands&quot; property=&quot;operands&quot; type=&quot;com.oakgrovesystems.portal.content.OperandContentBean&quot;&gt;&nbsp; &nbsp; &nbsp;  <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;%&nbsp; &nbsp;  <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!operandBean.label.equals (&quot;CustNotifyMessage&quot;) ||<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !operandBean.label.equals (&quot;_customCompletedInstanceLink&quot;) ||<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !operandBean.label.equals (&quot;_customCompletedWorklistLink&quot;) ||<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !operandBean.label.equals (&quot;_customInstanceLink&quot;) ||<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !operandBean.label.equals (&quot;CustNotifySubject&quot;) ||<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !operandBean.label.equals (&quot;_EmailToPrimaryContact&quot;) ||<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !operandBean.label.equals (&quot;UrAnsweredMessage&quot;) ||<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; !operandBean.label.equals (&quot;UrAnsweredSubject&quot;))<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {%&gt;<br />
<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; &lt;input type=&quot;hidden&quot; name=&quot;&lt;bean:write name=&quot;operandBean&quot; property=&quot;label&quot;/&gt;&quot; value=&quot;&lt;bean:write name=&quot;operandBean&quot; property=&quot;value&quot; filter=&quot;false&quot;/&gt;&quot;&gt;<br />
<br />
&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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;%} %&gt; <br />
<br />
&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; &lt;/logic:iterate&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>kellybaz</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread235474.html</guid>
		</item>
		<item>
			<title>javaBean</title>
			<link>http://www.daniweb.com/forums/thread234976.html</link>
			<pubDate>Sat, 31 Oct 2009 21:38:04 GMT</pubDate>
			<description><![CDATA[Hi, 
I am new to jsp, and Beans. I have been working on this piece of code, for the past week and I am no further along :'( 
 
I am using Tomcat Apache 6.0 
In the ROOT folder I have a simple page test1.jsp: 
 
package user; 
<%@ page contentType="text/html; charset=utf-8" language="java"...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
I am new to jsp, and Beans. I have been working on this piece of code, for the past week and I am no further along :'(<br />
<br />
I am using Tomcat Apache 6.0<br />
In the ROOT folder I have a simple page test1.jsp:<br />
<br />
 <pre style="margin:20px; line-height:13px">package user;<br />
&lt;%@ page contentType=&quot;text/html; charset=utf-8&quot; language=&quot;java&quot; import=&quot;java.sql.*&quot; errorPage=&quot;&quot; %&gt;<br />
&lt;jsp:useBean id=&quot;userDetails&quot; class=&quot;user.UserDetails&quot; scope=&quot;session&quot; /&gt;<br />
&lt;jsp:setProperty name = &quot;hopeThisWorks&quot; property=&quot;*&quot;/&gt;<br />
&lt;% userDetails.getData(); %&gt;<br />
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br />
&lt;title&gt;hello&lt;/title&gt;<br />
&lt;/head&gt;<br />
<br />
&lt;body&gt;<br />
test 1<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre><br />
I have a java class in: WEB-INF\classes\user called UserDetails<br />
<br />
Which I have attached.<br />
<br />
I keep getting the error:<br />
<br />
javax.servlet.ServletException: java.lang.NoClassDefFoundError: user/UserDetails (wrong name: java/user/UserDetails)<br />
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:275)<br />
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br />
<br />
As I said I have been working on it, and gotten no where, someone please help!!!<br />
<br />
Thanks, Andrew</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/images/attach/java.gif" alt="File Type: java" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12403&amp;d=1257024996">UserDetails.java</a> (2.1 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>Andrew Docherty</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234976.html</guid>
		</item>
		<item>
			<title>Session.isNew() problem</title>
			<link>http://www.daniweb.com/forums/thread234973.html</link>
			<pubDate>Sat, 31 Oct 2009 21:02:40 GMT</pubDate>
			<description><![CDATA[When my servlet creates a session, even if it is the first time running the servlet, the session.isNew() returns false.  I checked to make sure the session ID's are different each time I run it and they are, yet isNew() still returns false. 
 
I'm trying to do the following in my servlet: 
 
  <div...]]></description>
			<content:encoded><![CDATA[<div>When my servlet creates a session, even if it is the first time running the servlet, the session.isNew() returns false.  I checked to make sure the session ID's are different each time I run it and they are, yet isNew() still returns false.<br />
<br />
I'm trying to do the following in my servlet:<br />
<br />
 <pre style="margin:20px; line-height:13px">HttpSession session = request.getSession(true);<br />
if (session.isNew())<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ...do something...<br />
}</pre><br />
It never gets into that if statement because it always returns false :S<br />
<br />
Any help would be appreciated.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>blindkilla</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234973.html</guid>
		</item>
		<item>
			<title><![CDATA[JSP Expression Languages (EL) doesn't work in Firefox1.5.0.5]]></title>
			<link>http://www.daniweb.com/forums/thread234857.html</link>
			<pubDate>Sat, 31 Oct 2009 08:45:34 GMT</pubDate>
			<description><![CDATA[Hi, 
I am learning JSP now. The following program doesn't work in my Linux system's Mozilla firefox. Any help to fix this problem is appreciated. 
<html> 
<title>Using JSP EL Operators</title> 
<body> 
<h2> Using JSP EL Operators</h2> 
<table border ="2"> 
<tr> <td> 13 + 2 = ${13 + 2} </td> </tr>...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
I am learning JSP now. The following program doesn't work in my Linux system's Mozilla firefox. Any help to fix this problem is appreciated.<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&lt;title&gt;Using JSP EL Operators&lt;/title&gt;<br />
&lt;body&gt;<br />
&lt;h2&gt; Using JSP EL Operators&lt;/h2&gt;<br />
&lt;table border =&quot;2&quot;&gt;<br />
&lt;tr&gt; &lt;td&gt; 13 + 2 = ${13 + 2} &lt;/td&gt; &lt;/tr&gt;<br />
&lt;tr&gt; &lt;td&gt; 13 - 2 = ${13 - 2} &lt;/td&gt; &lt;/tr&gt;<br />
&lt;tr&gt; &lt;td&gt; 13 * 2 = ${13 * 2} &lt;/td&gt; &lt;/tr&gt;<br />
&lt;tr&gt; &lt;td&gt; 13 / 2 = ${13 / 2} &lt;/td&gt; &lt;/tr&gt;<br />
&lt;tr&gt; &lt;td&gt; 13 % 2 = ${13 % 2} &lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;/tr&gt;<br />
&lt;tr&gt; &lt;td&gt; 13.24 + 2 = ${13.24 + 2} &lt;/td&gt; &lt;/tr&gt;<br />
&lt;tr&gt; &lt;td&gt; 13.24 - 2 = ${13.24 - 2} &lt;/td&gt; &lt;/tr&gt;<br />
&lt;tr&gt; &lt;td&gt; 13.24 * 2 = ${13.24 * 2} &lt;/td&gt; &lt;/tr&gt;<br />
&lt;tr&gt; &lt;td&gt; 13.24 / 2 = ${13.24 / 2} &lt;/td&gt; &lt;/tr&gt;<br />
&lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;/tr&gt;<br />
&lt;tr&gt; &lt;td&gt; true and false = ${true &amp;&amp; false} &lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt; &lt;td&gt; true or false = ${true || false} &lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt; &lt;td&gt; not false = ${! false} &lt;/td&gt;&lt;/tr&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre><br />
Here expressions like ${13+2},  ${true &amp;&amp; false} etc. are not evaluated, but displayed as given in code.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>vsanandan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234857.html</guid>
		</item>
		<item>
			<title>help me with the following JSP code</title>
			<link>http://www.daniweb.com/forums/thread234792.html</link>
			<pubDate>Sat, 31 Oct 2009 00:37:51 GMT</pubDate>
			<description><![CDATA[<div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div> <strong>JSP Syntax</strong> (<a...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">&lt;%@ page language=&quot;java&quot; contentType=&quot;text/html; charset=ISO-8859-1&quot;<br />
&nbsp; &nbsp; pageEncoding=&quot;ISO-8859-1&quot;%&gt;<br />
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;<br />
&lt;%@page import = &quot;javax.swing.*&quot; import=&quot;DefaultNamespace.user&quot;%&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot;&gt;<br />
&lt;title&gt;Play Tic-Tac-Toe&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; align=&quot;center&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&amp;nbsp;&lt;/td&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt; <br />
&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; &lt;div align=&quot;center&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;font color=&quot;#19A1CB&quot; size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span&gt;&lt;b&gt;Tic Tac Toe Game&lt;/b&gt;&lt;/span&gt;&lt;br&gt;&lt;/br&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span&gt;Click on the box to play the game&lt;/span&gt;&lt;br&gt;&lt;/br&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/font&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&lt;FORM NAME=&quot;tic&quot;&gt;&lt;INPUT TYPE=&quot;button&quot; NAME=&quot;sqr1&quot; class=&quot;tictac&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value=&quot;&nbsp; &nbsp;  &quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onClick=valChange()&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;INPUT TYPE=&quot;button&quot; NAME=&quot;sqr2&quot; class=&quot;tictac&quot; value=&quot;&nbsp; &nbsp;  &quot; size=&quot;50&quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onClick=&quot;&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;INPUT TYPE=&quot;button&quot; NAME=&quot;sqr3&quot; class=&quot;tictac&quot; value=&quot;&nbsp; &nbsp;  &quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onClick=&quot;&quot;&gt;&lt;br&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;INPUT TYPE=&quot;button&quot; NAME=&quot;sqr4&quot; class=&quot;tictac&quot; value=&quot;&nbsp; &nbsp;  &quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onClick=&quot;&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;INPUT TYPE=&quot;button&quot; NAME=&quot;sqr5&quot; class=&quot;tictac&quot; value=&quot;&nbsp; &nbsp;  &quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onClick=&quot;&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;INPUT TYPE=&quot;button&quot; NAME=&quot;sqr6&quot; class=&quot;tictac&quot; value=&quot;&nbsp; &nbsp;  &quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onClick=&quot;&quot;&gt;&lt;br&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;INPUT TYPE=&quot;button&quot; NAME=&quot;sqr7&quot; class=&quot;tictac&quot; value=&quot;&nbsp; &nbsp;  &quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onClick=&quot;&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;INPUT TYPE=&quot;button&quot; NAME=&quot;sqr8&quot; class=&quot;tictac&quot; value=&quot;&nbsp; &nbsp;  &quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onClick=&quot;&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;INPUT TYPE=&quot;button&quot; NAME=&quot;sqr9&quot; class=&quot;tictac&quot; value=&quot;&nbsp; &nbsp;  &quot;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onClick=&quot;&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;br&gt;&lt;/br&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;br&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;br&gt;&lt;/br&gt;<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; &lt;input type=&quot;button&quot; name=&quot;pl1&quot; Value=&quot;Player1 DoMove&quot; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onClick=&quot;this.disabled=true,tic.pl2.disabled=false&quot;&gt;&lt;/input&gt;<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; &lt;input type=&quot;button&quot; name=&quot;pl2&quot; value=&quot;Player2 DoMove&quot; class=&quot;tictac&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onClick=&quot;this.disabled=true,tic.pl1.disabled=false&quot;&gt;&lt;/input&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tic.pl2.disabled=&quot;true&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;SCRIPT language=&quot;javascript&quot; &gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function valChange()<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; if(tic.pl1.disabled==true &amp;&amp; tic.sqr1.value==&quot;&nbsp; &nbsp;  &quot;)<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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tic.sqr1.value=&quot;&nbsp; X&nbsp; &quot;;<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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if(tic.pl2.disabled==true &amp;&amp; tic.sqr1.value==&quot;&nbsp; &nbsp;  &quot;)<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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tic1.sqr1.value=&quot;&nbsp; 0&nbsp; &quot;;<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; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/SCRIPT&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt; <br />
&lt;/div&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr height=30&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt; <br />
&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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt; <br />
&lt;/table&gt; <br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre><br />
I am new to JSP..<br />
the code works as per expected when the button pl1 is disabled i.e. it displays X on clicking sqr1..but it doesnt display 0 on clicking sqr1 when button pl2 is disabled.<br />
so wats wrong in the above code</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>romilc</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234792.html</guid>
		</item>
		<item>
			<title>response.sendRedirect()</title>
			<link>http://www.daniweb.com/forums/thread234685.html</link>
			<pubDate>Fri, 30 Oct 2009 13:17:03 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I would like to know if it's possible to specify the "target='FrameName'" in response.sendRedirect("Home.jsp") by any chance?  
 
I tried this: 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I would like to know if it's possible to specify the &quot;target='FrameName'&quot; in response.sendRedirect(&quot;Home.jsp&quot;) by any chance? <br />
<br />
I tried this:<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Security Check --&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;form action=&quot;Login&quot; target=&quot;_top&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;%<br />
&nbsp; &nbsp; &nbsp; &nbsp; if ((String) request.getSession(false).getAttribute(&quot;sessionStatus&quot;) == null) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; response.sendRedirect(&quot;Login?pageTimeout=yes&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; %&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Security Check --&gt;</pre><br />
But it doesn't work... The target remains the same.<br />
<br />
Thanks,<br />
-Ashton.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>AshtonHogan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234685.html</guid>
		</item>
		<item>
			<title>XML parsing in JSP</title>
			<link>http://www.daniweb.com/forums/thread234640.html</link>
			<pubDate>Fri, 30 Oct 2009 09:32:01 GMT</pubDate>
			<description><![CDATA[I want to use XML file to insert some data and want to upload that data into my JSP page. That is "XML parsing in JSP" but i tried using JDOM parser but i cant able to get ... any one know dis???????]]></description>
			<content:encoded><![CDATA[<div>I want to use XML file to insert some data and want to upload that data into my JSP page. That is &quot;XML parsing in JSP&quot; but i tried using JDOM parser but i cant able to get ... any one know dis???????</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>selvasmartmccan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234640.html</guid>
		</item>
		<item>
			<title>how can i run jsp</title>
			<link>http://www.daniweb.com/forums/thread234484.html</link>
			<pubDate>Thu, 29 Oct 2009 17:14:40 GMT</pubDate>
			<description>i installed blazix server in my pc ,but i cant able to run my jsp program please help me</description>
			<content:encoded><![CDATA[<div>i installed blazix server in my pc ,but i cant able to run my jsp program please help me</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>sridhar123</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234484.html</guid>
		</item>
		<item>
			<title>JSP - Ping a Port</title>
			<link>http://www.daniweb.com/forums/thread234445.html</link>
			<pubDate>Thu, 29 Oct 2009 14:51:11 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I would just like to know if it's possible to ping a certain port from a jsp page.  
For example: 
 
If I had a Apache_Status.jsp on my machine and I wanted to ping it on another machine at: 
123.456.78.90:8080 
 
And I had a Glassfish_Status.jsp on my machine and I wanted to ping it on...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I would just like to know if it's possible to ping a certain port from a jsp page. <br />
For example:<br />
<br />
If I had a Apache_Status.jsp on my machine and I wanted to ping it on another machine at:<br />
123.456.78.90:8080<br />
<br />
And I had a Glassfish_Status.jsp on my machine and I wanted to ping it on another machine at:<br />
321.654.87.09:8484<br />
<br />
Would this be possible?<br />
<br />
Thanks,<br />
-Ashton.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>AshtonHogan</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234445.html</guid>
		</item>
		<item>
			<title>URL security in jsp how?</title>
			<link>http://www.daniweb.com/forums/thread234374.html</link>
			<pubDate>Thu, 29 Oct 2009 09:24:34 GMT</pubDate>
			<description>Hi guys I am trying to prevent user to access directly using URL to my application , so in order to do that I have used security constraint in web.xml file and it works with me . my problem is in my application I am using href and redirect method in my servlets to redirect a user , here the server...</description>
			<content:encoded><![CDATA[<div>Hi guys I am trying to prevent user to access directly using URL to my application , so in order to do that I have used security constraint in web.xml file and it works with me . my problem is in my application I am using href and redirect method in my servlets to redirect a user , here the server will not redirect a user to required pages but redirecting a user to error page &quot;access deny&quot; , it is like a user accessed directly from URL <br />
<br />
please help me how to solve this problem.<br />
<br />
I have seaeched about how to secure your pages from accessing directly using URL which is through putting all the pages under web-inf directory , I hope if you tell me how to do that , what changes i have to do in my web.xml</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>alsoumhi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234374.html</guid>
		</item>
		<item>
			<title>(newline) problem with in text file</title>
			<link>http://www.daniweb.com/forums/thread234359.html</link>
			<pubDate>Thu, 29 Oct 2009 08:20:25 GMT</pubDate>
			<description>Hi experts, I am having very small error with my attachment file. 
the thing is , if I let my servlet send e-mail fwith attachment file exists on my computer and that file I edit by myself , there is no error with my file , so if i download it from my e-mail and open it again i will find it as I...</description>
			<content:encoded><![CDATA[<div>Hi experts, I am having very small error with my attachment file.<br />
the thing is , if I let my servlet send e-mail fwith attachment file exists on my computer and that file I edit by myself , there is no error with my file , so if i download it from my e-mail and open it again i will find it as I sent it. however , if that file is created by program and let my mail servlet to send an e-mail with that file as an ttachment file , then if i download it from my mail , i will not get it as it is edited by the program<br />
let' say the program edits the file like this:<br />
hello how are you guys<br />
let's see if the file works or not<br />
this is as a test only<br />
thank you very much<br />
<br />
I will get this after download:<br />
hello how are you guys? this is as a test only ?thank you very much<br />
actually this character( ? )is not what I saw , just to let you understand me , because I couldn't copy paste the real character, and if I do so it will give me here as new line<br />
do you know what is the solution , please help me guys,<br />
last thing if I would create (doc or pdf) file how can I do that instead of text file please help me<br />
goood luck<br />
thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>alsoumhi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234359.html</guid>
		</item>
		<item>
			<title>Login Validation</title>
			<link>http://www.daniweb.com/forums/thread234257.html</link>
			<pubDate>Thu, 29 Oct 2009 01:49:33 GMT</pubDate>
			<description><![CDATA[hi, does anyone know how to do login validation using java...here is my code,bt i cant validate if the username and pw typed are the user in the database. 
 
(The java code that i wrote) 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>hi, does anyone know how to do login validation using java...here is my code,bt i cant validate if the username and pw typed are the user in the database.<br />
<br />
(The java code that i wrote)<br />
 <pre style="margin:20px; line-height:13px">public int Login(Friend fr) throws EventException<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Connection con = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;Database connection succeeded&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String sql = &quot;SELECT * from CUSTOMER WHERE userName =? and password =?&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PreparedStatement ps = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; con = getConnection();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ps = con.prepareStatement(sql);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ps.setString(1, fr.getUsername());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ps.setString(2, fr.getPassword());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;at select statement&quot;);<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; ps.executeUpdate();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } catch (SQLException e) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; throw new EventException(e.getMessage());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; finally {<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; &nbsp; &nbsp; &nbsp; &nbsp; if (ps&nbsp;  != null) ps.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (con&nbsp; != null) con.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } catch (SQLException e) {}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre>(The java servlet to link to the java class)<br />
 <pre style="margin:20px; line-height:13px">package sg.edu.nyp.fyp;<br />
<br />
import java.io.IOException;<br />
import java.io.PrintWriter;<br />
<br />
import javax.servlet.ServletException;<br />
import javax.servlet.http.HttpServlet;<br />
import javax.servlet.http.HttpServletRequest;<br />
import javax.servlet.http.HttpServletResponse;<br />
<br />
/**<br />
&nbsp;* Servlet implementation class AddUserServlet<br />
&nbsp;*/<br />
public class LoginServlet extends HttpServlet {<br />
&nbsp; &nbsp; &nbsp; &nbsp; private static final long serialVersionUID = 1L;<br />
&nbsp; &nbsp; &nbsp;  <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; protected void processRequest(HttpServletRequest request, HttpServletResponse response)<br />
&nbsp; &nbsp; &nbsp; throws ServletException, IOException {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Friend fr = new Friend();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fr.setUsername(request.getParameter(&quot;username&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fr.setPassword(request.getParameter(&quot;password&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PrintWriter out=response.getWriter();<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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;servlet loaded&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Get the EmployeeManager object<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EventBL ebl = EventBL.getInstance();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Save the newly created EmployeeManager object<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; ebl.Login(fr);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.print(&quot; User Sucessfully Found&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; catch(EventException ex) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Handles errors<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.print(&quot;error&quot;);&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<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;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // &lt;editor-fold default state=&quot;collapsed&quot; desc=&quot;HttpServlet methods. Click on the + sign on the left to edit the code.&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /**<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  * Handles the HTTP &lt;code&gt;GET&lt;/code&gt; method.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  * @param request servlet request<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  * @param response servlet response<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  * @throws ServletException if a servlet-specific error occurs<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  * @throws IOException if an I/O error occurs<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  */<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; protected void doGet(HttpServletRequest request, HttpServletResponse response)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; throws ServletException, IOException {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; processRequest(request, response);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /**<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  * Handles the HTTP &lt;code&gt;POST&lt;/code&gt; method.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  * @param request servlet request<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  * @param response servlet response<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  * @throws ServletException if a servlet-specific error occurs<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  * @throws IOException if an I/O error occurs<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  */<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; protected void doPost(HttpServletRequest request, HttpServletResponse response)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; throws ServletException, IOException {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; processRequest(request, response);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /**<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  * Returns a short description of the servlet.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  * @return a String containing servlet description<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  */<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public String getServletInfo() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return &quot;Short description&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }// &lt;/editor-fold&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
<br />
can anyone help me check which part did i do wrongly? thanks!!!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>camilia</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234257.html</guid>
		</item>
		<item>
			<title>Database connection via method call</title>
			<link>http://www.daniweb.com/forums/thread234097.html</link>
			<pubDate>Wed, 28 Oct 2009 08:47:28 GMT</pubDate>
			<description>Hi,I am new to struts.i want to make a database connection with the help of a method call in some other class.I am not able to make the method for the database connectivity.Please if someone could help me.</description>
			<content:encoded><![CDATA[<div>Hi,I am new to struts.i want to make a database connection with the help of a method call in some other class.I am not able to make the method for the database connectivity.Please if someone could help me.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>vishalanuj</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234097.html</guid>
		</item>
		<item>
			<title>MVC help</title>
			<link>http://www.daniweb.com/forums/thread234022.html</link>
			<pubDate>Wed, 28 Oct 2009 02:53:11 GMT</pubDate>
			<description>Hi,  
considering the tutorial given by peter_budo,  
if manager wants to assign a new course to a teacher, how would he be able to assign that ? 
I have designed the course page in which students can apply but how a manager can assign a teacher to that course ?? 
 
Please help 
Thanks in advance</description>
			<content:encoded><![CDATA[<div>Hi, <br />
considering the tutorial given by peter_budo, <br />
if manager wants to assign a new course to a teacher, how would he be able to assign that ?<br />
I have designed the course page in which students can apply but how a manager can assign a teacher to that course ??<br />
<br />
Please help<br />
Thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>aredroses</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread234022.html</guid>
		</item>
		<item>
			<title>request scope</title>
			<link>http://www.daniweb.com/forums/thread233552.html</link>
			<pubDate>Mon, 26 Oct 2009 18:45:23 GMT</pubDate>
			<description><![CDATA[Hello all I am using the request scope. 
 
I have parent window, which opens a child window on button click. 
Am using window.open 
 
That child window opened is request scope. Problem is, on that child window there is a button.. say I write "greg" in the textbox and click the button its reset back...]]></description>
			<content:encoded><![CDATA[<div>Hello all I am using the request scope.<br />
<br />
I have parent window, which opens a child window on button click.<br />
Am using window.open<br />
<br />
That child window opened is request scope. Problem is, on that child window there is a button.. say I write &quot;greg&quot; in the textbox and click the button its reset back to old value.<br />
On every button click its considering it a new request.<br />
<br />
<br />
whats the probleM?? Its not normal. I am thinking of doing session, and then on close of that child window invalidate the session??</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>hajjo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233552.html</guid>
		</item>
		<item>
			<title>code required</title>
			<link>http://www.daniweb.com/forums/thread233376.html</link>
			<pubDate>Mon, 26 Oct 2009 07:05:28 GMT</pubDate>
			<description><![CDATA[Hello everyone, 
I am new to JSP.  Can any one help me how to implement  "search" button in jsp, what i need is that i need one text box where i will write the name of the person whose details i need to search,  then on clicking the search button the details of the person will be displayed in the...]]></description>
			<content:encoded><![CDATA[<div>Hello everyone,<br />
I am new to JSP.  Can any one help me how to implement  &quot;search&quot; button in jsp, what i need is that i need one text box where i will write the name of the person whose details i need to search,  then on clicking the search button the details of the person will be displayed in the next page. <br />
Thanks in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>singju</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233376.html</guid>
		</item>
		<item>
			<title>java servlets help???</title>
			<link>http://www.daniweb.com/forums/thread233181.html</link>
			<pubDate>Sun, 25 Oct 2009 15:31:51 GMT</pubDate>
			<description><![CDATA[hey guys, 
i'm new to java servlets..i have been making a website using java servlets on stock market and stuff...now what my query is that i want to retrieve data from database(ms-access) and display it on my html page.... 
 
i don't have much knowledge about html so i took a css template from...]]></description>
			<content:encoded><![CDATA[<div>hey guys,<br />
i'm new to java servlets..i have been making a website using java servlets on stock market and stuff...now what my query is that i want to retrieve data from database(ms-access) and display it on my html page....<br />
<br />
i don't have much knowledge about html so i took a css template from internet and started working on it...what i have been trying to do is that i included all of the html tags in .java file(servlet) so that html page could be dynamic...<br />
<br />
but this thing is very hectic...its giving me whole lot of errors..i mean i tried to include whole of the template in servlet programming...but lot of errors...<br />
<br />
So can anybody please suggest me another method(leaving jsp) to display my data from database on html page using servlets or help me with my coding...i have attached the code with my post!!!!</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/images/attach/java.gif" alt="File Type: java" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td><a href="http://www.daniweb.com/forums/attachment.php?attachmentid=12296&amp;d=1256484696">portfolio.java</a> (18.2 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>ankiwalia</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233181.html</guid>
		</item>
		<item>
			<title>Unable to connect to tomcat through browser</title>
			<link>http://www.daniweb.com/forums/thread233129.html</link>
			<pubDate>Sun, 25 Oct 2009 06:58:52 GMT</pubDate>
			<description><![CDATA[I have tomcat 6.0.18 running on my laptop. Tomcat is installed under my /home/xxx/bin directory.  However, after I start tomcat, I'm unable to connect to tomcat through my browser but my eclipse is able to do so. I do not get any error message, the browser just keeps on trying. 
 
I've reached a...]]></description>
			<content:encoded><![CDATA[<div>I have tomcat 6.0.18 running on my laptop. Tomcat is installed under my /home/xxx/bin directory.  However, after I start tomcat, I'm unable to connect to tomcat through my browser but my eclipse is able to do so. I do not get any error message, the browser just keeps on trying.<br />
<br />
I've reached a dead end trying to resolve this. Any ideas, anybody ??</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>deepak.marur</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233129.html</guid>
		</item>
		<item>
			<title>Problem calling jsp files</title>
			<link>http://www.daniweb.com/forums/thread233068.html</link>
			<pubDate>Sun, 25 Oct 2009 04:38:25 GMT</pubDate>
			<description>Hello everyone.. 
 
I have a problem in my project. 
what i have done is when i login,  if the username and password is correct it will redirect to a homepage which is in a new folder called private. 
I have a logout link in that home page which refers to logoutpage in root directory(out of that...</description>
			<content:encoded><![CDATA[<div>Hello everyone..<br />
<br />
I have a problem in my project.<br />
what i have done is when i login,  if the username and password is correct it will redirect to a homepage which is in a new folder called private.<br />
I have a logout link in that home page which refers to logoutpage in root directory(out of that private folder).<br />
Now how do i link pages out of that private folder.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>ashishdmc4</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread233068.html</guid>
		</item>
		<item>
			<title>javascript inserting between jsp</title>
			<link>http://www.daniweb.com/forums/thread232313.html</link>
			<pubDate>Thu, 22 Oct 2009 14:06:09 GMT</pubDate>
			<description><![CDATA[hi 
i have a problem in running javascript code between jsp page.. 
lets below is my jsp body . 
 
<body> 
   <script language="javascript" > 
	alert("hi"); 
   </script> 
   <h1>hello</hello> 
   <% System.out.println("hello"); %>]]></description>
			<content:encoded><![CDATA[<div>hi<br />
i have a problem in running javascript code between jsp page..<br />
lets below is my jsp body .<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;body&gt;<br />
&nbsp;  &lt;script language=&quot;javascript&quot; &gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;hi&quot;);<br />
&nbsp;  &lt;/script&gt;<br />
&nbsp;  &lt;h1&gt;hello&lt;/hello&gt;<br />
&nbsp;  &lt;% System.out.println(&quot;hello&quot;); %&gt;<br />
&lt;/body&gt;</pre><br />
in the above code there is no problem in running javascipt .. it gives hi alert easily but.. for below<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;body&gt;<br />
&nbsp;  &lt;script language=&quot;javascript&quot; &gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;hi&quot;);<br />
&nbsp;  &lt;/script&gt;<br />
&nbsp;  &lt;h1&gt;hello&lt;/hello&gt;<br />
&nbsp;  &lt;% System.out.println(&quot;hello&quot;); %&gt;<br />
<span style="font-weight:bold">&nbsp;  &lt;jsp:forward page=&quot;page1.jsp&quot; /&gt;</span><br />
&lt;/body&gt;</pre><br />
but if above i include any jsp forward page tag or sendRedirect function then this javascript does'nt run..<br />
please help me<br />
i m stuck with this problem..<br />
<br />
thnx in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>rattcod</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232313.html</guid>
		</item>
		<item>
			<title>Multiple field validations using javascript</title>
			<link>http://www.daniweb.com/forums/thread232240.html</link>
			<pubDate>Thu, 22 Oct 2009 09:25:41 GMT</pubDate>
			<description><![CDATA[<div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div> <strong>JSP Syntax</strong> (<a...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">&lt;%@ page language=&quot;java&quot; pageEncoding=&quot;ISO-8859-1&quot;%&gt;<br />
&lt;%@taglib uri=&quot;/WEB-INF/struts-html.tld&quot; prefix=&quot;html&quot; %&gt;<br />
&lt;%@taglib uri=&quot;/WEB-INF/struts-html-el.tld&quot; prefix=&quot;html_el&quot; %&gt;<br />
&lt;%@taglib uri=&quot;/WEB-INF/struts-logic.tld&quot; prefix=&quot;logic&quot; %&gt;<br />
&lt;%@taglib uri=&quot;/WEB-INF/struts-bean.tld&quot; prefix=&quot;bean&quot; %&gt;<br />
&lt;%@ taglib uri=&quot;/WEB-INF/c.tld&quot; prefix=&quot;c&quot; %&gt;<br />
<br />
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;<br />
<br />
&nbsp;  &lt;html&gt;<br />
&nbsp;  &lt;head&gt;<br />
&nbsp; &nbsp; &nbsp;  &lt;title&gt;Listing all cities&lt;/title&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;<br />
&nbsp;  &lt;/head&gt;<br />
<br />
&nbsp;  &lt;body&gt;<br />
&nbsp; &nbsp;  &lt;center&gt;&lt;h3&gt;city List&lt;/h3&gt;&lt;/center&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  &lt;/body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;html:form action=&quot;/UpdateSuccessAction.do&quot; &gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;c:forEach var=&quot;obj&quot; items=&quot;${myBean.result}&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  City: &lt;c:out value='${obj.cn}' /&gt;&lt;br&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Pincode: &lt;html_el:text property=&quot;pcList&quot; value=&quot;${obj.pc}&quot;/&gt;&lt;br&gt;&lt;br&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/c:forEach&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;save111&quot; onClick=&quot;return validpincode(); onSave()&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;&lt;a href=&quot;HomePage.do&quot;&gt;HomePage&lt;/a&gt;&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/html:form&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/html&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;script&gt;<br />
function onSave()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; document.forms[0].action=&quot;UpdateSuccessAction.do&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; document.forms[0].submit();<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>vishalanuj</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread232240.html</guid>
		</item>
		<item>
			<title>Date Convertion</title>
			<link>http://www.daniweb.com/forums/thread231691.html</link>
			<pubDate>Tue, 20 Oct 2009 15:17:58 GMT</pubDate>
			<description><![CDATA[Am trying to read a date that i have stored in a database table and then parse it to a date object of the Date class using a servlet, but it returns null for the converted date.Where am i going wrong?Some advice on how to sort that out would be helpful. The servlet code is below: 
  <div...]]></description>
			<content:encoded><![CDATA[<div>Am trying to read a date that i have stored in a database table and then parse it to a date object of the Date class using a servlet, but it returns null for the converted date.Where am i going wrong?Some advice on how to sort that out would be helpful. The servlet code is below:<br />
 <pre style="margin:20px; line-height:13px">Connection con;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Statement st;<br />
&nbsp; &nbsp; &nbsp; &nbsp; ResultSet rs;<br />
&nbsp; &nbsp; &nbsp; &nbsp; Date d3 = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Class.forName(&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; con = DriverManager.getConnection(&quot;jdbc:odbc:lab&quot;,&quot;admin&quot;,&quot;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; st = con.createStatement();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String Qry = (&quot;SELECT * FROM Rodents;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs = st.executeQuery(Qry);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while(rs.next())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String ResID = rs.getString(1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String ProdID = rs.getString(2);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String PName = rs.getString(3);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String Price = rs.getString(4);<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; //Chaning the date from String to an object of Date<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //***********************************************<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String ds = rs.getString(5);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DateFormat df = DateFormat.getDateInstance();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; d3 = df.parse(ds);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch(ParseException e) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;Unable to parse&quot;);<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; //Printing out the data in the table<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //**********************************************<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.print(ResID+&quot; &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.print(ProdID+&quot; &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.print(PName+&quot; &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.print(Price+&quot; &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.print(ds);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; st.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; con.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; catch(Exception e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.print(&quot;Unable to find DB&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; finally {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>timon_zed</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231691.html</guid>
		</item>
		<item>
			<title>servlet for username and password check</title>
			<link>http://www.daniweb.com/forums/thread231461.html</link>
			<pubDate>Mon, 19 Oct 2009 19:05:00 GMT</pubDate>
			<description>Hello. I wish to create a servlet which checks if the entered username and password are correct.If yes..message hello else go back to page showing error message. 
 
I know the settings for tomcat. i know the basic code for servlet.I also know i need http servlet .I will be using html code. I am...</description>
			<content:encoded><![CDATA[<div>Hello. I wish to create a servlet which checks if the entered username and password are correct.If yes..message hello else go back to page showing error message.<br />
<br />
I know the settings for tomcat. i know the basic code for servlet.I also know i need http servlet .I will be using html code. I am unsure about the html can anybody help me to read entered values for username and password.(input type=text name=username...what further?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>poojasweetgirl</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231461.html</guid>
		</item>
		<item>
			<title>Calling Commands from Servlets</title>
			<link>http://www.daniweb.com/forums/thread231370.html</link>
			<pubDate>Mon, 19 Oct 2009 10:56:27 GMT</pubDate>
			<description><![CDATA[Hi all, 
I'm having tough time on how to use linux commands from the servlets. I am able to run the commands from java program but I can't run the same program from servlets? Is there a way to do this?  
Here is a sample of my code that runs the command $gedit /home/syum/test.txt from a java code...]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
I'm having tough time on how to use linux commands from the servlets. I am able to run the commands from java program but I can't run the same program from servlets? Is there a way to do this? <br />
Here is a sample of my code that runs the command $gedit /home/syum/test.txt from a java code and its working fine. But when used a servlet to run the same code, nothing happens.<br />
<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">import com.sun.corba.se.spi.orbutil.fsm.Input;<br />
import java.io.BufferedReader;<br />
import java.io.File;<br />
import java.io.InputStreamReader;<br />
<br />
public class runSystemCommand {<br />
<br />
&nbsp; &nbsp; public static void main(String args&#91;&#93;) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; Runtime r = Runtime.getRuntime();<br />
&nbsp; &nbsp; &nbsp; &nbsp; Process p = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; String test = &quot;/home/syum/test&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; String cmd = &quot;gedit &quot; + test;<br />
&nbsp; &nbsp; &nbsp; &nbsp; try {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p = r.exec(cmd);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; InputStreamReader isr = new InputStreamReader(p.getInputStream());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BufferedReader br = new BufferedReader(isr);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String line = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while ((line = br.readLine()) != null) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(line);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p.waitFor();<br />
&nbsp; &nbsp; &nbsp; &nbsp; } catch (Exception e) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(e);<br />
&nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
}</pre><br />
How do I call this same program so that I can run from a servlet?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>syum</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread231370.html</guid>
		</item>
		<item>
			<title>maven webapp creation</title>
			<link>http://www.daniweb.com/forums/thread230737.html</link>
			<pubDate>Fri, 16 Oct 2009 15:16:19 GMT</pubDate>
			<description><![CDATA[Hi there, I'm new to webapp creation and want to try making one using eclipse, maven and spring. 
The tutorials I find on the net use the maven-archetype-webapp to start their creation, but for some reason that doesn't work on my eclipse... When I fire it up its settings start with a of mix of two...]]></description>
			<content:encoded><![CDATA[<div>Hi there, I'm new to webapp creation and want to try making one using eclipse, maven and spring.<br />
The tutorials I find on the net use the maven-archetype-webapp to start their creation, but for some reason that doesn't work on my eclipse... When I fire it up its settings start with a of mix of two other webapp projects that are in my eclipse. These other projects were created by other people.<br />
Is there anywhere a quick tutorial for creating a basic webapp, using maven, that doesnt make use of the maven archetype? Preferably without using any other tools/frameworks like jboss, if that is possible.<br />
<br />
Thanks in advance for any tips on this,<br />
<br />
Klaas</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>poobeer</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread230737.html</guid>
		</item>
		<item>
			<title>JSP: search string for bad characters.</title>
			<link>http://www.daniweb.com/forums/thread230667.html</link>
			<pubDate>Fri, 16 Oct 2009 10:38:01 GMT</pubDate>
			<description><![CDATA[I am trying to make a cookie that should contain a number value. It all work fine, unless the form that sends the info to my receiver page sends and empty string. Then something strange happens. It does not seem to be empty, so my error checker does not detect that it is empty (null or ""). So when...]]></description>
			<content:encoded><![CDATA[<div>I am trying to make a cookie that should contain a number value. It all work fine, unless the form that sends the info to my receiver page sends and empty string. Then something strange happens. It does not seem to be empty, so my error checker does not detect that it is empty (null or &quot;&quot;). So when i try to make the string into an integer the server get angry with me. If there is a good way to search a string for characters, in my case, return false unless it is a number (0,1,...9), it would help a lot. Or if there is a way to make sure the form does not send empty strings in the first place. <br />
<br />
Ps. My code is correct, so I won't post it.<br />
<br />
Thanks for the help!</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>Cort3z</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread230667.html</guid>
		</item>
		<item>
			<title>FileReader: file not found</title>
			<link>http://www.daniweb.com/forums/thread230407.html</link>
			<pubDate>Thu, 15 Oct 2009 14:01:49 GMT</pubDate>
			<description><![CDATA[Html-structure 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div> <strong>JSP...]]></description>
			<content:encoded><![CDATA[<div>Html-structure<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;<br />
&lt;!-- START XOXO --&gt;<br />
&quot;lots of html and jsp stuff&quot;<br />
&lt;!-- STOP XOXO --&gt;<br />
&quot;file reading&quot;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre>The file reading code<br />
 <pre style="margin:20px; line-height:13px">&lt;%@ page import=&quot;java.io.*&quot; %&gt;<br />
&lt;%<br />
String line = &quot;&quot;;<br />
String file = request.getRequestURL().toString();<br />
int print = 0;<br />
BufferedReader input = new BufferedReader(new FileReader(file));<br />
<br />
<br />
<br />
while ((line = input.readLine()) != null) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (print == 1) { <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.println(line); <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if (line.equals(&quot;&lt;!-- START XOXO --&gt;&quot;)) { print = 1; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if (line.equals(&quot;&lt;!--STOP XOXO --&gt;&quot;)) { print = 0; }<br />
}<br />
input.close();<br />
%&gt;</pre><br />
Output<br />
 <pre style="margin:20px; line-height:13px">java.io.FileNotFoundException: http:/jsp-stud.idi.ntnu.no:8080/nicklau/oving4test.jsp<br />
(No such file or directory)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.io.FileInputStream.open(Native Method)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:106)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:66)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.io.FileReader.&lt;init&gt;(FileReader.java:41)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at _nicklau._oving4test__jsp._jspService(/locals/web/folk/nicklau/oving4test.jsp:106)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at com.caucho.jsp.JavaPage.service(JavaPage.java:75)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at com.caucho.jsp.Page.subservice(Page.java:486)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at com.caucho.http.security.SecurityFilter.doFilter(SecurityFilter.java:115)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java:88)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at com.caucho.server.http.Invocation.service(Invocation.java:311)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:218)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:160)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at com.caucho.server.TcpConnection.run(TcpConnection.java:137)<br />
&nbsp; &nbsp; &nbsp; &nbsp; at java.lang.Thread.run(Thread.java:534)</pre>I just cant figure out why it cant find itself?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>nicklau</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread230407.html</guid>
		</item>
		<item>
			<title>can some one help me</title>
			<link>http://www.daniweb.com/forums/thread230152.html</link>
			<pubDate>Wed, 14 Oct 2009 16:31:44 GMT</pubDate>
			<description><![CDATA[I want to create a login jsp form that connect with servlet and mysql for database. And I'm using netbeans and glassfishV2. Please help me to solve this problem.]]></description>
			<content:encoded><![CDATA[<div>I want to create a login jsp form that connect with servlet and mysql for database. And I'm using netbeans and glassfishV2. Please help me to solve this problem.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>izzet</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread230152.html</guid>
		</item>
		<item>
			<title>Set Main Content to a Uniform Size</title>
			<link>http://www.daniweb.com/forums/thread230095.html</link>
			<pubDate>Wed, 14 Oct 2009 10:34:11 GMT</pubDate>
			<description>Hi all, 
 
I am currently developing a JSP web application with most of the content added using include tags, styled using CSS2,content created from servlets etc... 
 
My main issue is that at some points the main section is bigger than the header and footer making the site (inactive just now) look...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I am currently developing a JSP web application with most of the content added using include tags, styled using CSS2,content created from servlets etc...<br />
<br />
My main issue is that at some points the main section is bigger than the header and footer making the site (inactive just now) look quite ugly. <br />
<br />
Is there a way to ensure that all content conforms to the same size? <br />
BTW Div tags do not resize the content.<br />
<br />
It may simply be that the content is too wide but any advice would be greatly appreciated.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>pardon_garden</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread230095.html</guid>
		</item>
		<item>
			<title>Struts problem.....</title>
			<link>http://www.daniweb.com/forums/thread230011.html</link>
			<pubDate>Wed, 14 Oct 2009 04:59:14 GMT</pubDate>
			<description><![CDATA[when i try to run the following code....----> 
 
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" 
    pageEncoding="ISO-8859-1"%> 
 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> 
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> 
<jsp:useBean...]]></description>
			<content:encoded><![CDATA[<div>when i try to run the following code....----&gt;<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;%@ page language=&quot;java&quot; contentType=&quot;text/html; charset=ISO-8859-1&quot;<br />
&nbsp; &nbsp; pageEncoding=&quot;ISO-8859-1&quot;%&gt;<br />
<br />
&lt;%@ taglib uri=&quot;/WEB-INF/struts-html.tld&quot; prefix=&quot;html&quot;%&gt;<br />
&lt;%@ taglib uri=&quot;/WEB-INF/struts-bean.tld&quot; prefix=&quot;bean&quot;%&gt;<br />
&lt;jsp:useBean id=&quot;accountBean&quot; class=&quot;banking.pac.AccountForm&quot; scope=&quot;session&quot; /&gt;<br />
<br />
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot;&gt;<br />
&lt;title&gt;Insert title here&lt;/title&gt;<br />
&lt;script language=&quot;javascript&quot;&gt;<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; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/script&gt;<br />
<br />
<br />
&lt;/head&gt;<br />
<br />
&lt;body&gt;<br />
<br />
&lt;form name=&quot;ad_form&quot; id=&quot;ad_form&quot; action =&quot;AccountAction.do&quot;&gt;<br />
<br />
&lt;input type='hidden' name='dispatch' value=&quot;saveAccount&quot;&gt;<br />
<br />
Enter your Account Number&amp;nbsp;&amp;nbsp;<br />
&lt;html:text bean=&quot;accountBean&quot; property=&quot;accountNumber&quot; /&gt;<br />
&lt;br&gt;&lt;br&gt;<br />
Enter Balance<br />
&lt;html:text bean=&quot;accountBean&quot; property=&quot;balance&quot; /&gt;<br />
<br />
&lt;html:submit NAME=&quot;Submit&quot; VALUE=&quot;Save&quot; title=&quot;Submit&quot; /&gt;<br />
<br />
&lt;/form&gt;<br />
<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre><br />
<br />
<br />
it give this error----&gt;<br />
<br />
type Exception report<br />
<br />
message<br />
<br />
description The server encountered an internal error () that prevented it from fulfilling this request.<br />
<br />
exception<br />
<br />
org.apache.jasper.JasperException: /moneyTransfer.jsp(22,0) Attribute bean invalid for tag text according to TLD<br />
	org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)<br />
	org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)<br />
	org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:238)<br />
	org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:975)<br />
	org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:696)<br />
	org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)<br />
	org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)<br />
	org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)<br />
	org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)<br />
	org.apache.jasper.compiler.Node$Root.accept(Node.java:456)<br />
	org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)<br />
	org.apache.jasper.compiler.Validator.validate(Validator.java:1475)<br />
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:214)<br />
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)<br />
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)<br />
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)<br />
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)<br />
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)<br />
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)<br />
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)<br />
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br />
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.<br />
<br />
<br />
i have made the taglib entry in web.xml as follows....&gt;<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;taglib&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;taglib-uri&gt;/WEB-INF/struts-html.tld&lt;/taglib-uri&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;taglib-location&gt;/WEB-INF/struts-html.tld&lt;/taglib-location&gt;<br />
&nbsp; &nbsp; &lt;/taglib&gt;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &lt;taglib&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;taglib-uri&gt;/WEB-INF/struts-bean.tld&lt;/taglib-uri&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;taglib-location&gt;/WEB-INF/struts-bean.tld&lt;/taglib-location&gt;<br />
&nbsp; &nbsp; &lt;/taglib&gt;</pre><br />
n aslo pasted struts-html.tld n struts -bean.tld in web inf folder.....<br />
<br />
PLEASE Help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>neeraj20gupta</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread230011.html</guid>
		</item>
		<item>
			<title>need help in scheduling the task of project(online compiler)</title>
			<link>http://www.daniweb.com/forums/thread229911.html</link>
			<pubDate>Tue, 13 Oct 2009 18:49:38 GMT</pubDate>
			<description>hi friends, 
         i am doin a project named online compiler. 
        the basic idea is to compile a program online. 
      i am well acquinted with core java but not with web technologies.  
     i know the basics of jsp n planning to do the project in jsp. 
    i know how to compile source...</description>
			<content:encoded><![CDATA[<div>hi friends,<br />
         i am doin a project named online compiler.<br />
        the basic idea is to compile a program online.<br />
      i am well acquinted with core java but not with web technologies. <br />
     i know the basics of jsp n planning to do the project in jsp.<br />
    i know how to compile source inside another java code <br />
example<br />
 <pre style="margin:20px; line-height:13px">import javax.tools.JavaCompiler;<br />
import javax.tools.ToolProvider;<br />
public class CompileHello {<br />
&nbsp; &nbsp; public static void main(String&#91;&#93; args) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();<br />
&nbsp; &nbsp; &nbsp; &nbsp; int result = compiler.run(null, null, null,&quot;src/hello.java&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;Compile result code = &quot; + result);<br />
&nbsp; &nbsp; }<br />
}</pre>the estimated time to complete the project is abt 1 month .<br />
<span style="font-weight:bold">i need all ur guidance to properly guide me through or give me a through idea of how this thing could be done </span></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>muusa</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread229911.html</guid>
		</item>
		<item>
			<title>Adding form validation for numeric values</title>
			<link>http://www.daniweb.com/forums/thread229811.html</link>
			<pubDate>Tue, 13 Oct 2009 12:04:48 GMT</pubDate>
			<description><![CDATA[<div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div> <strong>JSP Syntax</strong> (<a...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">&lt;%-- <br />
&nbsp; &nbsp; Document&nbsp;  : AddCity<br />
&nbsp; &nbsp; Created on : Oct 6, 2009, 9:14:52 PM<br />
&nbsp; &nbsp; Author&nbsp; &nbsp;  : Vishal<br />
--%&gt;<br />
<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;<br />
&nbsp;  &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;<br />
<br />
&lt;%@ taglib uri=&quot;/WEB-INF/struts-html.tld&quot; prefix=&quot;html&quot; %&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 onload=&quot;ShowMessages();&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;html:form action=&quot;AddPage.do&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;p&gt;&lt;a href=&quot;HomePage.do&quot;&gt;HomePage&lt;/a&gt;&lt;/p&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cityname:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;text&quot; name=&quot;cn&quot; value=&quot;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PinCode:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;text&quot; name=&quot;pc&quot; value=&quot;&quot;&gt;&lt;br&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;button&quot; name=&quot;Submit&quot; value=&quot;Submit1&quot; onClick=&quot;checkpincode();onSubmit()&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div id=&quot;message&quot; style=&quot;position:relative;left:0;top:0;display:none&quot;&gt;&lt;html:errors/&gt;&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/html:form&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/body&gt;<br />
&lt;/html&gt;<br />
<br />
&lt;script&gt;<br />
function onSubmit()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; document.forms[0].action=&quot;AddPageSuccess.do&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; document.forms[0].submit();<br />
}<br />
function ShowMessages()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; var msg= document.getElementById(&quot;message&quot;).innerHTML;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(msg!=null &amp;&amp; msg.length &gt;0)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msg=msg.replace(/&lt;BR&gt;/g,&quot;\n &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msg=msg.replace(/&lt;br&gt;/g,&quot;\n &quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(msg);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById(&quot;message&quot;).innerHTML=&quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
&lt;/script&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>vishalanuj</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread229811.html</guid>
		</item>
		<item>
			<title>JSP and Calendar View</title>
			<link>http://www.daniweb.com/forums/thread229802.html</link>
			<pubDate>Tue, 13 Oct 2009 11:26:28 GMT</pubDate>
			<description>Hey, 
 
Currently I am doing an assignment building an enterprise web application. One of the specification states that I need to make a calendar view of a booking system in JSP. Is there a library out there that help me doing this? 
 
Calendar view here is a page that represents a month and it has...</description>
			<content:encoded><![CDATA[<div>Hey,<br />
<br />
Currently I am doing an assignment building an enterprise web application. One of the specification states that I need to make a calendar view of a booking system in JSP. Is there a library out there that help me doing this?<br />
<br />
Calendar view here is a page that represents a month and it has a table with 31 cells in it representing 31 days. Inside a cell, if there is a booking, then display the booking title.<br />
<br />
What I'm looking for here is just a library that can handle the presentation of the data. The collecting data process itself is not a problem for me.<br />
<br />
Technology used<br />
- EJB<br />
- JPA Hibernate<br />
- Struts<br />
- Netbeans and Glassfish :)<br />
<br />
Any idea? Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>silhoutte</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread229802.html</guid>
		</item>
		<item>
			<title><![CDATA[java.sql.SQLException: Column 'XXXXXX' not found.]]></title>
			<link>http://www.daniweb.com/forums/thread229772.html</link>
			<pubDate>Tue, 13 Oct 2009 09:22:34 GMT</pubDate>
			<description><![CDATA[<div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox" title="Help with Code Tags" target="_blank">Help with Code Tags</a> </div> <div> <strong>JSP Syntax</strong> (<a...]]></description>
			<content:encoded><![CDATA[<div> <pre style="margin:20px; line-height:13px">package Add;<br />
import java.sql.Connection;<br />
import java.sql.DriverManager;<br />
import java.sql.PreparedStatement;<br />
import java.sql.ResultSet;<br />
import java.sql.SQLException;<br />
<br />
import javax.servlet.http.HttpServletRequest;<br />
import javax.servlet.http.HttpServletResponse;<br />
<br />
import org.apache.struts.action.Action;<br />
import org.apache.struts.action.ActionForm;<br />
import org.apache.struts.action.ActionMapping;<br />
import org.apache.struts.action.ActionForward;<br />
<br />
public class AddSuccessAction extends Action <br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; private final static String SUCCESS = &quot;success&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; public ActionForward execute(ActionMapping mapping, ActionForm form,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HttpServletRequest request, HttpServletResponse response)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; throws Exception <br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MyBean bean = (MyBean) form;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String cityName = bean.getCn();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String pincode = bean.getPc();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Connection con = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ResultSet rs = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; PreparedStatement stmt = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String connectionURL = &quot;jdbc:mysql://localhost:3306/city&quot;; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { <br />
&nbsp; &nbsp; &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; &nbsp; &nbsp; con = DriverManager.getConnection (connectionURL,&quot;root&quot;,&quot;welcome12#&quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String sq = &quot;SELECT city_name,pincode from data &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stmt = con.prepareStatement(sq);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs = stmt.executeQuery();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boolean flag = false;<br />
&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; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String pic = rs.getString(pincode);<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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(pic==&quot;pincode&quot;)<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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;Pincode already exists&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; flag = true;<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; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(!flag)<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; String sql = &quot;INSERT INTO city (city name,pincode) VALUES('&quot;+cityName+','+pincode+&quot;')&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stmt = con.prepareStatement(sql);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stmt.executeUpdate();<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; catch (SQLException e) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.printStackTrace(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch (Exception e) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.printStackTrace(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; finally <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stmt.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; con.close(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return mapping.findForward(SUCCESS);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>vishalanuj</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread229772.html</guid>
		</item>
		<item>
			<title>checkbox value</title>
			<link>http://www.daniweb.com/forums/thread229745.html</link>
			<pubDate>Tue, 13 Oct 2009 07:39:38 GMT</pubDate>
			<description><![CDATA[i have struts html based checkbox 
 
<html:checkbox disabled="true" value="Y" property="active" >Yes</html:checkbox> 
 
when i submit the form after checking the checkbox the bean value should get "Y" value. 
Since the checkbos is disabled the bean value becomes null even after i check the checkbox...]]></description>
			<content:encoded><![CDATA[<div>i have struts html based checkbox<br />
<br />
&lt;html:checkbox disabled=&quot;true&quot; value=&quot;Y&quot; property=&quot;active&quot; &gt;Yes&lt;/html:checkbox&gt;<br />
<br />
when i submit the form after checking the checkbox the bean value should get &quot;Y&quot; value.<br />
Since the checkbos is disabled the bean value becomes null even after i check the checkbox <br />
<br />
do any one know a solution for this problem</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>rp_prasanna</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread229745.html</guid>
		</item>
		<item>
			<title>Displaying the web sever ip address</title>
			<link>http://www.daniweb.com/forums/thread229205.html</link>
			<pubDate>Sun, 11 Oct 2009 00:21:28 GMT</pubDate>
			<description>Ok, I use apache web server to host a club website within a school network. Now  I need a script to display the ip address of my web sever because it is constantly changing. Is there  scrip that will perform this function.  
  
note: the site only works within the school network and can not be...</description>
			<content:encoded><![CDATA[<div>Ok, I use apache web server to host a club website within a school network. Now  I need a script to display the ip address of my web sever because it is constantly changing. Is there  scrip that will perform this function. <br />
 <br />
note: the site only works within the school network and can not be acssesed out side of our network.<br />
tankyou</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>dombit</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread229205.html</guid>
		</item>
		<item>
			<title>problem in comparision of dropdown value and database vale</title>
			<link>http://www.daniweb.com/forums/thread228856.html</link>
			<pubDate>Fri, 09 Oct 2009 12:49:30 GMT</pubDate>
			<description><![CDATA[There is a jsp page on which I have to access the selected value from a dropdown list and then compare it's value with the field 'role' stored in mysql database. 
            I have to comapre both values to authenticate the user. I can access the role from dropdown list but I am unable to compare...]]></description>
			<content:encoded><![CDATA[<div>There is a jsp page on which I have to access the selected value from a dropdown list and then compare it's value with the field 'role' stored in mysql database.<br />
            I have to comapre both values to authenticate the user. I can access the role from dropdown list but I am unable to compare it with role stored in database.<br />
<br />
This is the source code of  jsp page<br />
<br />
login.jsp-<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&lt;head&gt;&lt;title&gt;Login Page&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;form name=&quot;loginform&quot; method=&quot;post&quot; action=&quot;Authentication.jsp&quot;&gt;<br />
&lt;br&gt;&lt;br&gt;<br />
&lt;table align=&quot;center&quot;&gt;&lt;tr&gt;&lt;td&gt;&lt;h2&gt;Login Authentication&lt;/h2&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;<br />
&lt;table width=&quot;300px&quot; align=&quot;center&quot; style=&quot;border:1px solid #000000;background-color:#efefef;&quot;&gt;<br />
&lt;tr&gt;&lt;td colspan=2&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td colspan=2&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;b&gt;Login Name&lt;/b&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;username&quot; value=&quot;&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;b&gt;Password&lt;/b&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type=&quot;password&quot; name=&quot;password&quot; value=&quot;&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp;  <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;label&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;role&quot; id=&quot;select&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;User&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;Admin&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/label&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;Submit&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;!--&nbsp; &lt;td&gt;&lt;td width=&quot;100&quot;&gt;&lt;b&gt;Name&lt;/b&gt;&lt;/td&gt;<br />
&nbsp;&lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&lt;td colspan=2&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;<br />
&lt;/table&gt;<br />
&lt;/form&gt;<br />
&lt;!--&lt;%String option=request.getParameter(&quot;role&quot;);<br />
if(option==null){<br />
}<br />
else{<br />
out.println(&quot;You have selected: &lt;b&gt;&quot;+option+&quot;&lt;/b&gt;&quot;+&quot;&lt;br&gt;&quot;);<br />
}<br />
%&gt;--&gt;<br />
<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre><br />
<br />
<br />
Authentication.jsp---<br />
 <pre style="margin:20px; line-height:13px">&lt;%@ page 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;<br />
&nbsp;  &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;<br />
&lt;%<br />
String connectionURL = &quot;jdbc:mysql://localhost:3306/user_tbl?user=,password=&quot;;<br />
Connection connection = null;<br />
Statement statement = null;<br />
ResultSet rs = null;<br />
response.setContentType(&quot;text/html&quot;);<br />
%&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;%<br />
&nbsp; &nbsp; &nbsp; &nbsp; String userName=new String(&quot;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; String password=new String(&quot;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; String role = new String(&quot;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; boolean flag = false;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Class.forName(&quot;com.mysql.jdbc.Driver&quot;).newInstance();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; connection = DriverManager.getConnection(connectionURL, &quot;root&quot;, &quot;1234&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; statement = connection.createStatement();<br />
&nbsp; &nbsp; &nbsp; &nbsp; statement.executeQuery(&quot;select user_name,password,role from login&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; rs = statement.getResultSet();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; String role1&#91;&#93; = request.getParameterValues(&quot;role&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; while (rs.next()) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; userName=rs.getString(&quot;user_name&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; password=rs.getString(&quot;password&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; role = rs.getString(&quot;role&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if(userName.equals(request.getParameter(&quot;username&quot;)) &amp;&amp; password.equals(request.getParameter(&quot;password&quot;))&amp;&amp; role.equals(request.getParameterValues(&quot;role&quot;)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; flag = true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; //session.setAttribute(&quot;userName&quot;,rs.getString(2));<br />
&nbsp; &nbsp; &nbsp;  <br />
}<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; if(role1!=null){<br />
&nbsp; &nbsp; &nbsp; &nbsp; for(int i=0; i&lt;role1.length;i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(role.equals(request.getParameter(&quot;role&quot;)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.println(&quot;you are:&quot;+role1&#91;i&#93;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(flag==true)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //out.println(&quot;User Authenticated&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  response.sendRedirect(&quot;welcome.jsp&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //out.println(&quot;You are not an authentic person&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; response.sendRedirect(&quot;error.jsp&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs.close ();<br />
&nbsp; &nbsp; &nbsp; &nbsp; statement.close ();<br />
&nbsp; &nbsp; &nbsp; &nbsp; %&gt;<br />
&nbsp; &nbsp; &lt;/body&gt;<br />
&lt;/html&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>shuchi.vishnoi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread228856.html</guid>
		</item>
		<item>
			<title>.jsp file</title>
			<link>http://www.daniweb.com/forums/thread228776.html</link>
			<pubDate>Fri, 09 Oct 2009 06:13:09 GMT</pubDate>
			<description><![CDATA[i m a stater with jsp .... have installed Tomact 5.0.28. Its displaying server page when i type http://localhost:8080 
 
now i have made a simple context.jsp file----> 
 
<HTML> 
<HEAD> 
<TITLE> 
Context 
</TITLE> 
</HEAD>]]></description>
			<content:encoded><![CDATA[<div>i m a stater with jsp .... have installed Tomact 5.0.28. Its displaying server page when i type <a rel="nofollow" class="t" href="http://localhost:8080" target="_blank">http://localhost:8080</a><br />
<br />
now i have made a simple context.jsp file----&gt;<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;HTML&gt;<br />
&lt;HEAD&gt;<br />
&lt;TITLE&gt;<br />
Context<br />
&lt;/TITLE&gt;<br />
&lt;/HEAD&gt;<br />
&lt;BODY&gt;<br />
&lt;%<br />
out.println(&quot;First JSP APPLICATION&quot;);<br />
%&gt;<br />
&lt;/BODY&gt;<br />
&lt;/HTML&gt;</pre><br />
 <br />
placed it in a folder ch in webapps folder of tomcat...<br />
<br />
when i try to run it by<br />
<a rel="nofollow" class="t" href="http://localhost:8080/ch/context.jsp" target="_blank">http://localhost:8080/ch/context.jsp</a><br />
<br />
it shows the error<br />
<br />
type Status report<br />
<br />
message /Context.jsp<br />
<br />
description The requested resource (/Context.jsp) is not available.<br />
<br />
<br />
<br />
please help....</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>neeraj20gupta</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread228776.html</guid>
		</item>
		<item>
			<title><![CDATA[jsf navigation&database connection]]></title>
			<link>http://www.daniweb.com/forums/thread228739.html</link>
			<pubDate>Fri, 09 Oct 2009 03:42:57 GMT</pubDate>
			<description>Topic 
The topic of this question is: JSF_navigation and database connection 
Hello and Thank you in advance for any assistance. 
 
 * 
System info: 
* 
Netbeans6.7.1,jsf1.2,two MySQL databases.(one for login one for searches) 
 
 *</description>
			<content:encoded><![CDATA[<div>Topic<br />
The topic of this question is: JSF_navigation and database connection<br />
Hello and Thank you in advance for any assistance.<br />
<br />
 <span style="font-weight:bold"><br />
System info:<br />
</span><br />
Netbeans6.7.1,jsf1.2,two MySQL databases.(one for login one for searches)<br />
<br />
 <span style="font-weight:bold"><br />
The purpose of this post is: <br />
</span><br />
Try to get the login jsp to switch to the next page and understand how to connect to the database to simulate a login .<br />
<br />
<br />
 <span style="font-weight:bold"><br />
The functionality of this code is:  <br />
</span><br />
I have two databases one for login and one for finding contents of several music book records. Searches performed via artist or song. The first order of operation is Login.jsp which submits the user name “uid” (user Name and password are the same) and are validated simple uid&gt;8 characters. Upon login the login.jsf page should navigate to the success.jsp or fail.jsp via faces-config file . The login.jsp submits to the controller, the controller calls the model to validate and connect to the splashbookdb_user database. that’s all for now.<br />
(the design of the code does absolutely nothing now.  I just can’t get the connection worked out.) <br />
<br />
(jsf pages,SplashbookController.java,SplashbookModel.java and Content.java (entity).<br />
<br />
<span style="font-weight:bold">I will be updating the splashbook project periodically at:</span><br />
<a rel="nofollow" class="t" href="http://cid-b5cb457363230793.skydrive.live.com/self.aspx/.Public/splashbookdb^_and^_netbeans^_project%20-%20Copy.zip" target="_blank">http://cid-b5cb457363230793.skydrive...20-%20Copy.zip</a><br />
<span style="font-weight:bold"><br />
The errors related to this code are:<br />
</span><br />
<br />
<br />
<span style="font-weight:bold"><br />
Error description: Mozilla firefox<br />
</span><br />
 <pre style="margin:20px; line-height:13px">------------<br />
<br />
HTTP Status 500 -<br />
<br />
type Exception report<br />
<br />
message<br />
<br />
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.<br />
<br />
exception<br />
<br />
javax.servlet.ServletException: #{SplashbookController.ValidateUser}: java.lang.NullPointerException<br />
<br />
root cause<br />
<br />
javax.faces.FacesException: #{SplashbookController.ValidateUser}: java.lang.NullPointerException<br />
<br />
root cause<br />
<br />
javax.faces.el.EvaluationException: java.lang.NullPointerException<br />
<br />
root cause<br />
<br />
java.lang.NullPointerException<br />
<br />
note The full stack traces of the exception and its root causes are available in the Sun GlassFish Enterprise Server v2.1 logs.</pre><br />
<br />
<span style="font-weight:bold"><br />
Code description:faces-config.xml<br />
</span><br />
 <pre style="margin:20px; line-height:13px">&lt;?xml version='1.0' encoding='UTF-8'?&gt;<br />
<br />
&lt;!-- =========== FULL CONFIGURATION FILE ================================== --&gt;<br />
<br />
&lt;faces-config version=&quot;1.2&quot; <br />
&nbsp; &nbsp; xmlns=&quot;http://java.sun.com/xml/ns/javaee&quot; <br />
&nbsp; &nbsp; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; <br />
&nbsp; &nbsp; xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd&quot;&gt;<br />
&nbsp; &nbsp; &lt;managed-bean&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;managed-bean-name&gt;SplashbookController&lt;/managed-bean-name&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;managed-bean-class&gt;controllers.SplashbookController&lt;/managed-bean-class&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;managed-bean-scope&gt;request&lt;/managed-bean-scope&gt;<br />
&nbsp; &nbsp; &lt;/managed-bean&gt;<br />
&nbsp; &nbsp; &lt;navigation-rule&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;from-view-id&gt;/login.jsp&lt;/from-view-id&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;navigation-case&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;from-outcome&gt;success&lt;/from-outcome&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;to-view-id&gt;/loginSuccess.jsp&lt;/to-view-id&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/navigation-case&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;navigation-case&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;from-outcome&gt;fail&lt;/from-outcome&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;to-view-id&gt;/loginFail.jsp&lt;/to-view-id&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/navigation-case&gt;<br />
&nbsp; &nbsp; &lt;/navigation-rule&gt;<br />
<br />
&lt;/faces-config&gt;</pre><br />
<br />
<span style="font-weight:bold"><br />
Code description:login.jsp<br />
</span><br />
 <pre style="margin:20px; line-height:13px">&lt;%-- <br />
&nbsp; &nbsp; Document&nbsp;  : login<br />
&nbsp; &nbsp; Created on : Oct 7, 2009, 8:45:20 PM<br />
&nbsp; &nbsp; Author&nbsp; &nbsp;  : depot<br />
--%&gt;<br />
<br />
&lt;%@page contentType=&quot;text/html&quot; pageEncoding=&quot;UTF-8&quot;%&gt;<br />
<br />
&lt;%@taglib prefix=&quot;f&quot; uri=&quot;http://java.sun.com/jsf/core&quot;%&gt;<br />
&lt;%@taglib prefix=&quot;h&quot; uri=&quot;http://java.sun.com/jsf/html&quot;%&gt;<br />
<br />
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;<br />
&nbsp; &nbsp; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;<br />
<br />
&lt;f:view&gt;<br />
&nbsp; &nbsp; &lt;html&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;head&gt;<br />
&nbsp; &nbsp; &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; &nbsp; &nbsp; &lt;title&gt;splashbook Login Page&lt;/title&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;css/style1.css&quot; /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/head&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;body&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h1&gt;&lt;h:outputText value=&quot;username=student1&quot;/&gt;&lt;/h1&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h1&gt;&lt;h:outputText value=&quot;password= student1&quot;/&gt;&lt;/h1&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h:form id=&quot;LoginApplication&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h:panelGrid id=&quot;loginPanel&quot; columns=&quot;2&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h:outputText value=&quot;user ID&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h:inputText id=&quot;loginId&quot; value=&quot;#{SplashbookController.uid}&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h:outputText value=&quot;Password&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h:inputSecret id=&quot;password&quot;&nbsp; value=&quot;#{SplashbookController.password}&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h:outputText value=&quot;&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;h:commandButton value=&quot;login&quot; action =&quot;#{SplashbookController.ValidateUser}&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/h:panelGrid&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/h:form&gt;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/body&gt;<br />
&nbsp; &nbsp; &lt;/html&gt;<br />
&lt;/f:view&gt;</pre><br />
<br />
<br />
<span style="font-weight:bold"><br />
Code description:SplashBookController.java<br />
</span><br />
 <pre style="margin:20px; line-height:13px">/*<br />
&nbsp;* To change this template, choose Tools | Templates<br />
&nbsp;* and open the template in the editor.<br />
&nbsp;*/<br />
package controllers;<br />
<br />
/**<br />
&nbsp;*<br />
&nbsp;* @author depot<br />
&nbsp;*/<br />
import classes.SplashbookModel;<br />
import entities.Content;<br />
<br />
import java.sql.Connection;<br />
<br />
public class SplashbookController {<br />
<br />
&nbsp; &nbsp; public SplashbookModel splashbookModel;<br />
&nbsp; &nbsp; public String uid;<br />
&nbsp; &nbsp; public String password;<br />
&nbsp; &nbsp; public String database;<br />
&nbsp;  <br />
&nbsp; &nbsp; public int uidLength = 8;<br />
&nbsp; &nbsp; public String loginResult;<br />
&nbsp; &nbsp; public Connection conn;<br />
<br />
&nbsp; &nbsp; /** Creates a new instance of SplashbookController */<br />
&nbsp; &nbsp; public SplashbookController() {<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String ValidateUser() throws Exception {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (uid.length() &gt;= 8) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; database=&quot;splashbookdb_user&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;database name--------------&gt;&quot;+database+&quot;&lt;-------------------&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; splashbookModel.connectToUserDB(database);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(splashbookModel.getConn().equals(null)){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loginResult=&quot;fail&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loginResult=&quot;success&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;loginResult--------------&gt;&quot;+loginResult+&quot;&lt;-------------------&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  return loginResult;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; public String getLoginResult() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return loginResult;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setLoginResult(String loginResult) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.loginResult = loginResult;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getPassword() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return password;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setPassword(String password) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.password = password;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getUid() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return uid;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setUid(String uid) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.uid = uid;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public int getUidLength() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return uidLength;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setUidLength(int uidLength) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.uidLength = uidLength;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp;  <br />
}</pre><br />
<span style="font-weight:bold"><br />
Code description:SplashbookModel.java<br />
</span><br />
 <pre style="margin:20px; line-height:13px">/*<br />
&nbsp;* To change this template, choose Tools | Templates<br />
&nbsp;* and open the template in the editor.<br />
&nbsp;*/<br />
<br />
package classes;<br />
<br />
/**<br />
&nbsp;*<br />
&nbsp;* @author depot<br />
&nbsp;*/<br />
import controllers.SplashbookController;<br />
import entities.Content;<br />
import java.sql.Connection;<br />
import java.sql.DriverManager;<br />
public class SplashbookModel {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; public Connection conn=null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public StringBuffer buff=null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public String host=&quot;localhost&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public String database;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public String dbUserName=&quot;root&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public String dbPassword=&quot;ceyesuma&quot;;<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp;  <br />
public SplashbookModel(){<br />
<br />
}<br />
<br />
<br />
&nbsp;  public Connection connectToUserDB(String database)throws Exception {<br />
&nbsp; &nbsp; &nbsp;  System.out.println(&quot;splashbookModel.connectToUserDB()--------------&gt;&quot;+database+&quot;&lt;-------------------&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; try {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buff = new StringBuffer();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buff.append(&quot;jdbc:mysql://&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buff.append(host);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buff.append(&quot;/&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buff.append(database);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buff.append(&quot;?user=&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buff.append(dbUserName);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buff.append(&quot;&amp;password=&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; buff.append(dbPassword);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Class.forName(&quot;com.mysql.jdbc.Driver&quot;).newInstance();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conn = DriverManager.getConnection(buff.toString());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;Connection URL: -----------------&gt;&quot; + buff+&quot;&lt;-----------------&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; } catch (Exception ex) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; throw new Exception(&quot;An error occurred while attempting to connect to[&quot; + buff + &quot;]&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; return conn;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getDatabase() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return database;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setDatabase(String database) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.database = database;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getDbPassword() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return dbPassword;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setDbPassword(String dbPassword) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.dbPassword = dbPassword;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getDbUserName() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return dbUserName;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setDbUserName(String dbUserName) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.dbUserName = dbUserName;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getHost() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return host;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setHost(String host) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.host = host;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public StringBuffer getBuff() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return buff;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setBuff(StringBuffer buff) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.buff = buff;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public Connection getConn() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return conn;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setConn(Connection conn) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.conn = conn;<br />
&nbsp; &nbsp; }<br />
&nbsp;  <br />
&nbsp;<br />
<br />
}</pre><span style="font-weight:bold"><br />
The Entities from db’s related to this code are:<br />
</span><br />
User.java used to log in.<br />
Usergroup.java used to log in and specify permissions.<br />
Content.java used for searching.<br />
<br />
<span style="font-weight:bold"><br />
Code description:Content<br />
</span><br />
 <pre style="margin:20px; line-height:13px">/*<br />
&nbsp;* To change this template, choose Tools | Templates<br />
&nbsp;* and open the template in the editor.<br />
&nbsp;*/<br />
<br />
package entities;<br />
<br />
import java.io.Serializable;<br />
import javax.persistence.Basic;<br />
import javax.persistence.Column;<br />
import javax.persistence.Entity;<br />
import javax.persistence.GeneratedValue;<br />
import javax.persistence.GenerationType;<br />
import javax.persistence.Id;<br />
import javax.persistence.NamedQueries;<br />
import javax.persistence.NamedQuery;<br />
import javax.persistence.Table;<br />
<br />
/**<br />
&nbsp;*<br />
&nbsp;* @author depot<br />
&nbsp;*/<br />
@Entity<br />
@Table(name = &quot;content&quot;)<br />
@NamedQueries({@NamedQuery(name = &quot;Content.findAll&quot;, query = &quot;SELECT c FROM Content c&quot;), @NamedQuery(name = &quot;Content.findById&quot;, query = &quot;SELECT c FROM Content c WHERE c.id = :id&quot;), @NamedQuery(name = &quot;Content.findByPublisherCode&quot;, query = &quot;SELECT c FROM Content c WHERE c.publisherCode = :publisherCode&quot;), @NamedQuery(name = &quot;Content.findByBookIsbn&quot;, query = &quot;SELECT c FROM Content c WHERE c.bookIsbn = :bookIsbn&quot;), @NamedQuery(name = &quot;Content.findByBookTitle&quot;, query = &quot;SELECT c FROM Content c WHERE c.bookTitle = :bookTitle&quot;), @NamedQuery(name = &quot;Content.findByArtist&quot;, query = &quot;SELECT c FROM Content c WHERE c.artist = :artist&quot;), @NamedQuery(name = &quot;Content.findBySong&quot;, query = &quot;SELECT c FROM Content c WHERE c.song = :song&quot;), @NamedQuery(name = &quot;Content.findByPageNum&quot;, query = &quot;SELECT c FROM Content c WHERE c.pageNum = :pageNum&quot;)})<br />
public class Content implements Serializable {<br />
&nbsp; &nbsp; private static final long serialVersionUID = 1L;<br />
&nbsp; &nbsp; @Id<br />
&nbsp; &nbsp; @GeneratedValue(strategy = GenerationType.IDENTITY)<br />
&nbsp; &nbsp; @Basic(optional = false)<br />
&nbsp; &nbsp; @Column(name = &quot;id&quot;)<br />
&nbsp; &nbsp; private Integer id;<br />
&nbsp; &nbsp; @Column(name = &quot;publisher_code&quot;)<br />
&nbsp; &nbsp; private String publisherCode;<br />
&nbsp; &nbsp; @Column(name = &quot;book_isbn&quot;)<br />
&nbsp; &nbsp; private String bookIsbn;<br />
&nbsp; &nbsp; @Column(name = &quot;book_title&quot;)<br />
&nbsp; &nbsp; private String bookTitle;<br />
&nbsp; &nbsp; @Column(name = &quot;artist&quot;)<br />
&nbsp; &nbsp; private String artist;<br />
&nbsp; &nbsp; @Column(name = &quot;song&quot;)<br />
&nbsp; &nbsp; private String song;<br />
&nbsp; &nbsp; @Column(name = &quot;page_num&quot;)<br />
&nbsp; &nbsp; private Integer pageNum;<br />
<br />
&nbsp; &nbsp; public Content() {<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public Content(Integer id) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.id = id;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public Integer getId() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return id;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setId(Integer id) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.id = id;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getPublisherCode() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return publisherCode;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setPublisherCode(String publisherCode) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.publisherCode = publisherCode;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getBookIsbn() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return bookIsbn;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setBookIsbn(String bookIsbn) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.bookIsbn = bookIsbn;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getBookTitle() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return bookTitle;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setBookTitle(String bookTitle) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.bookTitle = bookTitle;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getArtist() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return artist;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setArtist(String artist) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.artist = artist;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getSong() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return song;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setSong(String song) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.song = song;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public Integer getPageNum() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return pageNum;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setPageNum(Integer pageNum) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.pageNum = pageNum;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; @Override<br />
&nbsp; &nbsp; public int hashCode() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; int hash = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; hash += (id != null ? id.hashCode() : 0);<br />
&nbsp; &nbsp; &nbsp; &nbsp; return hash;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; @Override<br />
&nbsp; &nbsp; public boolean equals(Object object) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; // TODO: Warning - this method won't work in the case the id fields are not set<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (!(object instanceof Content)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; Content other = (Content) object;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if ((this.id == null &amp;&amp; other.id != null) || (this.id != null &amp;&amp; !this.id.equals(other.id))) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; return true;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; @Override<br />
&nbsp; &nbsp; public String toString() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return &quot;entities.Content[id=&quot; + id + &quot;]&quot;;<br />
&nbsp; &nbsp; }<br />
<br />
}</pre><br />
<span style="font-weight:bold"><br />
Code description:User.java(entity)<br />
</span><br />
 <pre style="margin:20px; line-height:13px">/*<br />
&nbsp;* To change this template, choose Tools | Templates<br />
&nbsp;* and open the template in the editor.<br />
&nbsp;*/<br />
<br />
package entities;<br />
<br />
import java.io.Serializable;<br />
import java.util.Collection;<br />
import javax.persistence.Basic;<br />
import javax.persistence.Column;<br />
import javax.persistence.Entity;<br />
import javax.persistence.Id;<br />
import javax.persistence.ManyToMany;<br />
import javax.persistence.NamedQueries;<br />
import javax.persistence.NamedQuery;<br />
import javax.persistence.Table;<br />
<br />
/**<br />
&nbsp;*<br />
&nbsp;* @author depot<br />
&nbsp;*/<br />
@Entity<br />
@Table(name = &quot;user&quot;)<br />
@NamedQueries({@NamedQuery(name = &quot;User.findAll&quot;, query = &quot;SELECT u FROM User u&quot;), @NamedQuery(name = &quot;User.findByUid&quot;, query = &quot;SELECT u FROM User u WHERE u.uid = :uid&quot;), @NamedQuery(name = &quot;User.findByPassword&quot;, query = &quot;SELECT u FROM User u WHERE u.password = :password&quot;), @NamedQuery(name = &quot;User.findByFirstName&quot;, query = &quot;SELECT u FROM User u WHERE u.firstName = :firstName&quot;), @NamedQuery(name = &quot;User.findByLastName&quot;, query = &quot;SELECT u FROM User u WHERE u.lastName = :lastName&quot;), @NamedQuery(name = &quot;User.findByAddress1&quot;, query = &quot;SELECT u FROM User u WHERE u.address1 = :address1&quot;), @NamedQuery(name = &quot;User.findByAddress2&quot;, query = &quot;SELECT u FROM User u WHERE u.address2 = :address2&quot;), @NamedQuery(name = &quot;User.findByCity&quot;, query = &quot;SELECT u FROM User u WHERE u.city = :city&quot;), @NamedQuery(name = &quot;User.findByPostCode&quot;, query = &quot;SELECT u FROM User u WHERE u.postCode = :postCode&quot;), @NamedQuery(name = &quot;User.findByEmail&quot;, query = &quot;SELECT u FROM User u WHERE u.email = :email&quot;), @NamedQuery(name = &quot;User.findByPhone&quot;, query = &quot;SELECT u FROM User u WHERE u.phone = :phone&quot;), @NamedQuery(name = &quot;User.findByUserGroup&quot;, query = &quot;SELECT u FROM User u WHERE u.userGroup = :userGroup&quot;)})<br />
public class User implements Serializable {<br />
&nbsp; &nbsp; private static final long serialVersionUID = 1L;<br />
&nbsp; &nbsp; @Id<br />
&nbsp; &nbsp; @Basic(optional = false)<br />
&nbsp; &nbsp; @Column(name = &quot;uid&quot;)<br />
&nbsp; &nbsp; private String uid;<br />
&nbsp; &nbsp; @Basic(optional = false)<br />
&nbsp; &nbsp; @Column(name = &quot;password&quot;)<br />
&nbsp; &nbsp; private String password;<br />
&nbsp; &nbsp; @Basic(optional = false)<br />
&nbsp; &nbsp; @Column(name = &quot;firstName&quot;)<br />
&nbsp; &nbsp; private String firstName;<br />
&nbsp; &nbsp; @Basic(optional = false)<br />
&nbsp; &nbsp; @Column(name = &quot;lastName&quot;)<br />
&nbsp; &nbsp; private String lastName;<br />
&nbsp; &nbsp; @Basic(optional = false)<br />
&nbsp; &nbsp; @Column(name = &quot;address1&quot;)<br />
&nbsp; &nbsp; private String address1;<br />
&nbsp; &nbsp; @Basic(optional = false)<br />
&nbsp; &nbsp; @Column(name = &quot;address2&quot;)<br />
&nbsp; &nbsp; private String address2;<br />
&nbsp; &nbsp; @Basic(optional = false)<br />
&nbsp; &nbsp; @Column(name = &quot;city&quot;)<br />
&nbsp; &nbsp; private String city;<br />
&nbsp; &nbsp; @Basic(optional = false)<br />
&nbsp; &nbsp; @Column(name = &quot;postCode&quot;)<br />
&nbsp; &nbsp; private String postCode;<br />
&nbsp; &nbsp; @Column(name = &quot;email&quot;)<br />
&nbsp; &nbsp; private String email;<br />
&nbsp; &nbsp; @Column(name = &quot;phone&quot;)<br />
&nbsp; &nbsp; private Integer phone;<br />
&nbsp; &nbsp; @Basic(optional = false)<br />
&nbsp; &nbsp; @Column(name = &quot;userGroup&quot;)<br />
&nbsp; &nbsp; private String userGroup;<br />
&nbsp; &nbsp; @ManyToMany(mappedBy = &quot;userCollection&quot;)<br />
&nbsp; &nbsp; private Collection&lt;Usergroup&gt; usergroupCollection;<br />
<br />
&nbsp; &nbsp; public User() {<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public User(String uid) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.uid = uid;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public User(String uid, String password, String firstName, String lastName, String address1, String address2, String city, String postCode, String userGroup) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.uid = uid;<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.password = password;<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.firstName = firstName;<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.lastName = lastName;<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.address1 = address1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.address2 = address2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.city = city;<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.postCode = postCode;<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.userGroup = userGroup;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getUid() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return uid;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setUid(String uid) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.uid = uid;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getPassword() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return password;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setPassword(String password) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.password = password;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getFirstName() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return firstName;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setFirstName(String firstName) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.firstName = firstName;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getLastName() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return lastName;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setLastName(String lastName) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.lastName = lastName;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getAddress1() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return address1;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setAddress1(String address1) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.address1 = address1;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getAddress2() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return address2;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setAddress2(String address2) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.address2 = address2;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getCity() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return city;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setCity(String city) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.city = city;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getPostCode() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return postCode;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setPostCode(String postCode) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.postCode = postCode;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getEmail() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return email;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setEmail(String email) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.email = email;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public Integer getPhone() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return phone;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setPhone(Integer phone) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.phone = phone;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getUserGroup() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return userGroup;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setUserGroup(String userGroup) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.userGroup = userGroup;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public Collection&lt;Usergroup&gt; getUsergroupCollection() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return usergroupCollection;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setUsergroupCollection(Collection&lt;Usergroup&gt; usergroupCollection) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.usergroupCollection = usergroupCollection;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; @Override<br />
&nbsp; &nbsp; public int hashCode() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; int hash = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; hash += (uid != null ? uid.hashCode() : 0);<br />
&nbsp; &nbsp; &nbsp; &nbsp; return hash;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; @Override<br />
&nbsp; &nbsp; public boolean equals(Object object) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; // TODO: Warning - this method won't work in the case the id fields are not set<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (!(object instanceof User)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; User other = (User) object;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if ((this.uid == null &amp;&amp; other.uid != null) || (this.uid != null &amp;&amp; !this.uid.equals(other.uid))) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; return true;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; @Override<br />
&nbsp; &nbsp; public String toString() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return &quot;entities.User[uid=&quot; + uid + &quot;]&quot;;<br />
&nbsp; &nbsp; }<br />
<br />
}</pre><br />
<span style="font-weight:bold"><br />
Code description:Usergroup.java(Entity class)<br />
</span><br />
 <pre style="margin:20px; line-height:13px">/*<br />
&nbsp;* To change this template, choose Tools | Templates<br />
&nbsp;* and open the template in the editor.<br />
&nbsp;*/<br />
<br />
package entities;<br />
<br />
import java.io.Serializable;<br />
import java.util.Collection;<br />
import javax.persistence.Basic;<br />
import javax.persistence.Column;<br />
import javax.persistence.Entity;<br />
import javax.persistence.Id;<br />
import javax.persistence.JoinColumn;<br />
import javax.persistence.JoinTable;<br />
import javax.persistence.ManyToMany;<br />
import javax.persistence.NamedQueries;<br />
import javax.persistence.NamedQuery;<br />
import javax.persistence.Table;<br />
<br />
/**<br />
&nbsp;*<br />
&nbsp;* @author depot<br />
&nbsp;*/<br />
@Entity<br />
@Table(name = &quot;usergroup&quot;)<br />
@NamedQueries({@NamedQuery(name = &quot;Usergroup.findAll&quot;, query = &quot;SELECT u FROM Usergroup u&quot;), @NamedQuery(name = &quot;Usergroup.findByGroupid&quot;, query = &quot;SELECT u FROM Usergroup u WHERE u.groupid = :groupid&quot;), @NamedQuery(name = &quot;Usergroup.findByGroupName&quot;, query = &quot;SELECT u FROM Usergroup u WHERE u.groupName = :groupName&quot;)})<br />
public class Usergroup implements Serializable {<br />
&nbsp; &nbsp; private static final long serialVersionUID = 1L;<br />
&nbsp; &nbsp; @Id<br />
&nbsp; &nbsp; @Basic(optional = false)<br />
&nbsp; &nbsp; @Column(name = &quot;groupid&quot;)<br />
&nbsp; &nbsp; private String groupid;<br />
&nbsp; &nbsp; @Basic(optional = false)<br />
&nbsp; &nbsp; @Column(name = &quot;groupName&quot;)<br />
&nbsp; &nbsp; private String groupName;<br />
&nbsp; &nbsp; @JoinTable(name = &quot;usergroup_mapping&quot;, joinColumns = {@JoinColumn(name = &quot;groupid&quot;, referencedColumnName = &quot;groupid&quot;)}, inverseJoinColumns = {@JoinColumn(name = &quot;uid&quot;, referencedColumnName = &quot;uid&quot;)})<br />
&nbsp; &nbsp; @ManyToMany<br />
&nbsp; &nbsp; private Collection&lt;User&gt; userCollection;<br />
<br />
&nbsp; &nbsp; public Usergroup() {<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public Usergroup(String groupid) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.groupid = groupid;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public Usergroup(String groupid, String groupName) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.groupid = groupid;<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.groupName = groupName;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getGroupid() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return groupid;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setGroupid(String groupid) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.groupid = groupid;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public String getGroupName() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return groupName;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setGroupName(String groupName) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.groupName = groupName;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public Collection&lt;User&gt; getUserCollection() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return userCollection;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; public void setUserCollection(Collection&lt;User&gt; userCollection) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; this.userCollection = userCollection;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; @Override<br />
&nbsp; &nbsp; public int hashCode() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; int hash = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; hash += (groupid != null ? groupid.hashCode() : 0);<br />
&nbsp; &nbsp; &nbsp; &nbsp; return hash;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; @Override<br />
&nbsp; &nbsp; public boolean equals(Object object) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; // TODO: Warning - this method won't work in the case the id fields are not set<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (!(object instanceof Usergroup)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; Usergroup other = (Usergroup) object;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if ((this.groupid == null &amp;&amp; other.groupid != null) || (this.groupid != null &amp;&amp; !this.groupid.equals(other.groupid))) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; return true;<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; @Override<br />
&nbsp; &nbsp; public String toString() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; return &quot;entities.Usergroup[groupid=&quot; + groupid + &quot;]&quot;;<br />
&nbsp; &nbsp; }<br />
<br />
}</pre><br />
<br />
<span style="font-style:italic"><br />
Thanks again.<br />
-ceyesuma<br />
</span><br />
<br />
[u]<br />
 <span style="font-weight:bold"><br />
Note:<br />
</span><br />
________________________________________________________________________<br />
<span style="font-weight:bold"><br />
Code description:<br />
</span><br />
 <pre style="margin:20px; line-height:13px"></pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>ceyesuma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread228739.html</guid>
		</item>
		<item>
			<title>JSP XML parser</title>
			<link>http://www.daniweb.com/forums/thread228657.html</link>
			<pubDate>Thu, 08 Oct 2009 20:14:05 GMT</pubDate>
			<description><![CDATA[I have this JSP code that i found online and it seems to work cuz it loops thru the xml file and writes the HTML code for the TRs and TDs but for some reason is not displaying the data. Am i missing something? 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right;...]]></description>
			<content:encoded><![CDATA[<div>I have this JSP code that i found online and it seems to work cuz it loops thru the xml file and writes the HTML code for the TRs and TDs but for some reason is not displaying the data. Am i missing something?<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;%@page import=&quot;org.w3c.dom.*, javax.xml.parsers.*&quot; %&gt;<br />
&lt;%<br />
&nbsp; DocumentBuilderFactory docFactory = <br />
&nbsp; DocumentBuilderFactory.newInstance();<br />
&nbsp; DocumentBuilder docBuilder = docFactory.newDocumentBuilder();<br />
&nbsp; Document doc = docBuilder.parse<br />
(&quot;http://www.somesite.com/file.xml&quot;);<br />
%&gt;<br />
&lt;%!<br />
&nbsp; public boolean isTextNode(Node n){<br />
&nbsp; &nbsp; return n.getNodeName().equals(&quot;#text&quot;);<br />
&nbsp; }<br />
%&gt;<br />
&lt;html&gt;<br />
&nbsp; &lt;head&gt;&lt;title&gt;&lt;/title&gt;&lt;/head&gt;<br />
&nbsp; &lt;body&gt;&nbsp; &nbsp; <br />
&nbsp; &nbsp; &lt;table border=&quot;2&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;Name of Employee&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;Date of Birth&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;City&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;%<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Element&nbsp; element = doc.getDocumentElement(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NodeList personNodes = element.getChildNodes();&nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i=0; i&lt;personNodes.getLength(); i++){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Node emp = personNodes.item(i);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (isTextNode(emp))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; continue;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NodeList NameDOBCity = emp.getChildNodes(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; %&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;%<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int j=0; j&lt;NameDOBCity.getLength(); j++ ){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Node node = NameDOBCity.item(j);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( isTextNode(node)) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; continue;<br />
&nbsp; &nbsp; &nbsp; &nbsp; %&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;%= node.getFirstChild().getNodeValue() %&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;%<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp; %&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;%<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; %&gt;<br />
&nbsp; &nbsp; &lt;/table&gt;<br />
&nbsp; &lt;/body&gt;<br />
&lt;/html&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>MORACOM</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread228657.html</guid>
		</item>
		<item>
			<title>configuring Tomcat</title>
			<link>http://www.daniweb.com/forums/thread228617.html</link>
			<pubDate>Thu, 08 Oct 2009 17:54:04 GMT</pubDate>
			<description>i am trying to learn servlets so i downloaded tomcat server.I learned that i have to do this...set path=c:\tomcat\lib\servlet.jar 
or click the exe file tomcat6 in the bin folder. I tried to connect with localhost8080 it is not working.I am not getting Tomcat home page. 
 
Any help will be great.</description>
			<content:encoded><![CDATA[<div>i am trying to learn servlets so i downloaded tomcat server.I learned that i have to do this...set path=c:\tomcat\lib\servlet.jar<br />
or click the exe file tomcat6 in the bin folder. I tried to connect with localhost8080 it is not working.I am not getting Tomcat home page.<br />
<br />
Any help will be great.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>akulkarni</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread228617.html</guid>
		</item>
		<item>
			<title>Connection is reset in client side for only pages that show information stored in dat</title>
			<link>http://www.daniweb.com/forums/thread228560.html</link>
			<pubDate>Thu, 08 Oct 2009 09:10:39 GMT</pubDate>
			<description>hi experts, hope you are fine. 
I am having a connection problem from client side to my servera(localhost:8080/project). client can access to my normal pages either jsp or html. However, for the jsp pages that show information stored in database , they are not appeared in client side and I got...</description>
			<content:encoded><![CDATA[<div>hi experts, hope you are fine.<br />
I am having a connection problem from client side to my servera(localhost:8080/project). client can access to my normal pages either jsp or html. However, for the jsp pages that show information stored in database , they are not appeared in client side and I got message say &quot;connection reset while the page was loading&quot;<br />
please could you help me , in how to let these pages read information from database quickly and thereby will be shown in client side</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>alsoumhi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread228560.html</guid>
		</item>
		<item>
			<title>The file could not be written</title>
			<link>http://www.daniweb.com/forums/thread228429.html</link>
			<pubDate>Wed, 07 Oct 2009 22:12:50 GMT</pubDate>
			<description><![CDATA[Web Server: Sun Java System Web Server 7 update 5 
 
I have inherited a JSP application and am trying to get it to work. I have figured out that it has something to do with the <input type="file"> tag, because I cut all the rest of the code out. 
 
  <div class="codeblock"> <div class="spaced">...]]></description>
			<content:encoded><![CDATA[<div>Web Server: Sun Java System Web Server 7 update 5<br />
<br />
I have inherited a JSP application and am trying to get it to work. I have figured out that it has something to do with the  <pre style="margin:20px; line-height:13px">&lt;input type=&quot;file&quot;&gt;</pre>tag, because I cut all the rest of the code out.<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;input type=&quot;file&quot; name=&quot;file_upload&quot; maxlength=&quot;150&quot; size=&quot;20&quot; /&gt;<br />
&lt;input type=&quot;submit&quot; name=&quot;UploadFile&quot; value=&quot;Upload File&quot; class=&quot;btn&quot; onclick=&quot;return validate()&quot; /&gt;</pre><br />
On submit, I get the following error:<br />
<br />
 <pre style="margin:20px; line-height:13px"> javax.servlet.jsp.JspTagException: The file could not be written: java.io.FileNotFoundException: C:\WebApps\gpr\uploads\attachments\5217\c\DocumentsandSettings\gzjs4n\MyDocuments\227342050034.xls (The system cannot find the path specified)<br />
&nbsp; &nbsp; &nbsp; &nbsp; xephyrus.taglibs.fileupload.WriteTag.doEndTag(WriteTag.java:103)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.apache.jsp.att.attach_jsp._jspService(Unknown Source)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:80)<br />
&nbsp; &nbsp; &nbsp; &nbsp; javax.servlet.http.HttpServlet.service(HttpServlet.java:917)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:457)<br />
&nbsp; &nbsp; &nbsp; &nbsp; org.apache.jasper.servlet.JspServlet.service(JspServlet.java:351)<br />
&nbsp; &nbsp; &nbsp; &nbsp; javax.servlet.http.HttpServlet.service(HttpServlet.java:917)<br />
&nbsp; &nbsp; &nbsp; &nbsp; com.cj.trim.trimFilter.doFilter(Unknown Source)</pre>Notice how the error is referring to the file name as &quot;C:\WebApps\gpr\uploads\attachments\5217\c\DocumentsandSettings\gzjs4n\MyDocuments\227342050034.xls&quot;. Basically, it is adding the whole (including path) name of the file instead of just taking the file name, which is &quot;227342050034.xls&quot;. Since I have no other code creating this name, I do not know why this is happening.<br />
<br />
Note: this could be a configuration problem, since I set up the Web Server myself and have not had any other experience doing this.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>ddempsey96</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread228429.html</guid>
		</item>
		<item>
			<title>Problem with code</title>
			<link>http://www.daniweb.com/forums/thread228286.html</link>
			<pubDate>Wed, 07 Oct 2009 10:23:27 GMT</pubDate>
			<description><![CDATA[Hi  
 
   I just tried to create the login form using java,jsp and servlets.The database am using here is mysql. The tool am using is eclipse galileo.The code is as follows: 
 
        <index.jsp> 
  
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" 
   ...]]></description>
			<content:encoded><![CDATA[<div>Hi <br />
<br />
   I just tried to create the login form using java,jsp and servlets.The database am using here is mysql. The tool am using is eclipse galileo.The code is as follows:<br />
<br />
        &lt;index.jsp&gt;<br />
 <br />
 <pre style="margin:20px; line-height:13px">&lt;%@ page language=&quot;java&quot; contentType=&quot;text/html; charset=ISO-8859-1&quot;<br />
&nbsp; &nbsp; pageEncoding=&quot;ISO-8859-1&quot;%&gt;<br />
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot;&gt;<br />
&lt;title&gt;Insert title here&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;body&gt; <br />
&lt;form action=&quot;WelcomeServlet&quot; method=&quot;POST&quot;&gt;<br />
username &lt;input type=text name=Username&gt;<br />
password &lt;input type=text name=Password&gt;<br />
&lt;input type=submit value=submit&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre> <br />
 <br />
                    &lt;WelcomeServlet.java&gt;<br />
 <pre style="margin:20px; line-height:13px">package project1.example;<br />
&nbsp;<br />
import java.io.IOException;<br />
import java.io.PrintWriter;<br />
&nbsp;<br />
//import javax.servlet.ServletException;<br />
//import javax.servlet.http.HttpServlet;<br />
//import javax.servlet.http.HttpServletRequest;<br />
//import javax.servlet.http.HttpServletResponse;<br />
&nbsp;<br />
/**<br />
&nbsp;* Servlet implementation class WelcomeServlet<br />
&nbsp;*/<br />
public class WelcomeServlet extends HttpServlet {<br />
&nbsp; &nbsp; &nbsp; &nbsp; private static final long serialVersionUID = 1L;<br />
&nbsp; &nbsp; &nbsp; &nbsp; public void doPost(HttpServletRequest request, HttpServletResponse response)<br />
&nbsp; &nbsp; &nbsp; &nbsp; throws ServletException, IOException {<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; response.setContentType(&quot;Text/html;charset=UTF-8&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; PrintWriter out = response.getWriter();<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; out.println(&quot;&lt;HTML&gt;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; out.println(&quot;&lt;HEAD&gt;&lt;TITLE&gt;Welcome&lt;/TITLE&gt;&lt;/HEAD&gt;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; out.println(&quot;&lt;BODY BGCOLOR=\&quot;#FFFFFF\&quot;&gt;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; out.println(&quot;&lt;CENTER&gt;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; out.println(&quot;Employees Welcome!!!!&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; String user = request.getParameter(&quot;Username&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; String pass = request.getParameter(&quot;Password&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(user);<br />
&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(pass);<br />
&nbsp; &nbsp; &nbsp; &nbsp; DbConnection dbconn = new DbConnection();<br />
&nbsp; &nbsp; &nbsp; &nbsp; try{<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(dbconn.validateUser(user, pass)){<br />
&nbsp; &nbsp; &nbsp; &nbsp; //out.println(&quot;Jothi&quot; + dbconn.validateUser(user, pass));<br />
&nbsp; &nbsp; &nbsp; &nbsp; //out.println(&quot;&lt;jsp:forward page = http://localhost:8084/Project/welcome.jsp&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.println(&quot;Did u come&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; out.println(&quot;&gt;&lt;h3&gt;Sorry you are not authorized&lt;/h3&gt;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; catch(Exception e){<br />
&nbsp; &nbsp; &nbsp; &nbsp; e.printStackTrace();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; out.println(&quot;&lt;/CENTER&gt;&quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp; out.println(&quot;&lt;/BODY&gt;&quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp; out.println(&quot;&lt;/HTML&gt;&quot;); <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}</pre> <br />
                    &lt;DbConnection.java&gt;<br />
 <br />
 <pre style="margin:20px; line-height:13px">package project1.example;<br />
&nbsp;<br />
import java.io.IOException;<br />
import java.sql.Connection;<br />
import java.sql.DriverManager;<br />
import java.sql.PreparedStatement;<br />
import java.sql.ResultSet;<br />
import java.sql.SQLException;<br />
&nbsp;<br />
public class DbConnection {<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; /**<br />
&nbsp; &nbsp; &nbsp;  * @param args<br />
&nbsp; &nbsp; &nbsp;  * @throws ClassNotFoundException <br />
&nbsp; &nbsp; &nbsp;  * @throws IllegalAccessException <br />
&nbsp; &nbsp; &nbsp;  * @throws InstantiationException <br />
&nbsp; &nbsp; &nbsp;  */<br />
&nbsp; &nbsp; &nbsp; public static Connection getConnection()<br />
&nbsp; &nbsp; &nbsp; throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Class.forName(&quot;com.mysql.jdbc.Driver&quot;).newInstance();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Connection conn=null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;Before connection&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conn=DriverManager.getConnection(&quot;jdbc:mysql:comppromed:3036:anantha&quot;,&quot;root&quot;,&quot;buser&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;After connection&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch(SQLException e) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;SQLException: &quot; + e.getMessage()); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while((e = e.getNextException()) != null) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(e.getMessage()); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //return conn;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return conn;<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; public static boolean validateUser(String user, String pass)<br />
&nbsp; &nbsp; &nbsp; throws SQLException, IOException, InstantiationException, IllegalAccessException, ClassNotFoundException<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boolean isValid = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PreparedStatement stmt=null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ResultSet rs=null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String sql = &quot;SELECT USER_NAME, PASSWORD FROM userlogin WHERE USER_NAME= ? AND PASSWORD= ?&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println( &quot;SQL : &quot; + sql );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println( &quot;user : &quot; + user );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println( &quot;pass : &quot; + pass );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stmt = getConnection().prepareStatement(sql);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stmt.setString(1, user);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stmt.setString(2, pass);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stmt.executeQuery();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs = (ResultSet)stmt.getResultSet();<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(rs.next())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return isValid;<br />
&nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; <br />
}</pre> <br />
But am getting the  error like : <br />
<br />
HTTP Status 500 - <br />
<br />
--------------------------------------------------------------------------------<br />
<br />
type Exception report<br />
<br />
message <br />
<br />
description The server encountered an internal error () that prevented it from fulfilling this request.<br />
<br />
exception <br />
<br />
org.apache.jasper.JasperException: Unable to compile class for JSP: <br />
<br />
An error occurred at line: 7 in the generated java file<br />
The type index_jsp must implement the inherited abstract method Servlet.getServletConfig()<br />
<br />
An error occurred at line: 7 in the generated java file<br />
The type index_jsp must implement the inherited abstract method Servlet.service(ServletRequest, ServletResponse)<br />
<br />
An error occurred at line: 30 in the generated java file<br />
No exception of type ServletException can be thrown; an exception type must be a subclass of Throwable<br />
<br />
An error occurred at line: 44 in the generated java file<br />
The method getPageContext(Servlet, ServletRequest, ServletResponse, String, boolean, int, boolean) in the type JspFactory is not applicable for the arguments (index_jsp, HttpServletRequest, HttpServletResponse, null, boolean, int, boolean)<br />
<br />
Stacktrace:<br />
      org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)<br />
      org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)<br />
      org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)<br />
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)<br />
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)<br />
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)<br />
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)<br />
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)<br />
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)<br />
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)<br />
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br />
<br />
<br />
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.<br />
<br />
<br />
--------------------------------------------------------------------------------<br />
<br />
Apache Tomcat/6.0.2<br />
<br />
Please help me with the code.<br />
<br />
Thank you.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>anantha_krish</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread228286.html</guid>
		</item>
		<item>
			<title>JSP :java.sql.SQLException: ORA-01722: invalid number</title>
			<link>http://www.daniweb.com/forums/thread228219.html</link>
			<pubDate>Wed, 07 Oct 2009 05:46:07 GMT</pubDate>
			<description><![CDATA[Hi Friends, 
I am having problem with the above code snippet. Initially it woked fine. But now it is giving an error of java.sql.SQLException: ORA-01722: invalid number. 
How can I resolve the exception? 
Thanks. 
 
 
try 
	{  String ein=(String)session.getAttribute("EIN"); 
	  ...]]></description>
			<content:encoded><![CDATA[<div>Hi Friends,<br />
I am having problem with the above code snippet. Initially it woked fine. But now it is giving an error of java.sql.SQLException: ORA-01722: invalid number.<br />
How can I resolve the exception?<br />
Thanks.<br />
<br />
 <pre style="margin:20px; line-height:13px">try<br />
&nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; String ein=(String)session.getAttribute(&quot;EIN&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  System.out.println(&quot;inside try block&quot;);<br />
&nbsp; &nbsp; &nbsp;  Class.forName(&quot;oracle.jdbc.driver.OracleDriver&quot;);<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; con=DriverManager.getConnection(&quot;jdbc:oracle:thin:@10.9.16.2:1521:TESTDB&quot;,&quot;HE&quot;,&quot;HE123&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; Statement st=con.createStatement();<br />
&nbsp; &nbsp; &nbsp; &nbsp; ResultSet rs=st.executeQuery(&quot;select distinct REV_OWNER from FBD_USER_AUTHENTICATION where user_ein=&quot;+ein+&quot;&quot;) ; <br />
&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;after executing the query&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; while (rs.next())<br />
&nbsp; &nbsp; &nbsp; &nbsp; { j=j+1;%&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&lt;td align=&quot;center&quot;&gt;&lt;font size=&quot;default&quot; color=&quot;indigo&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;%=rs.getInt(&quot;rev_owner&quot;)%&gt;&lt;/font&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;td align=&quot;center&quot;&gt;&lt;input type=&quot;checkbox&quot; name=&quot;check&quot; value=&quot;&lt;%=rs.getInt(&quot;rev_owner&quot;)%&gt;&quot;&gt;&lt;/tr&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;%} %&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;table width=&quot;50%&quot; align=&quot;center&quot; border=&quot;1&quot; rules=ALL&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;&lt;td align=&quot;center&quot;&gt;&lt;input type=&quot;submit&quot; name=&quot;b1&quot; value=&quot;Delete&quot; class=&quot;btn&quot;&gt;&lt;/td&gt;&lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;hidden&quot; name=&quot;recordcount&quot; value=&quot;&lt;%=j%&gt;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;%&nbsp; if (!(con == null) || !con.isClosed())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  con.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  } catch (Exception e1) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;Error---&gt;&quot;+e1.toString());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  out.println(&quot;Error Detected-----&gt;&quot;+e1.toString());<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!(con == null) || !con.isClosed())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  con.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } %&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>Sujata Bandyo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread228219.html</guid>
		</item>
		<item>
			<title>jsp with ajax problem</title>
			<link>http://www.daniweb.com/forums/thread228043.html</link>
			<pubDate>Tue, 06 Oct 2009 12:35:43 GMT</pubDate>
			<description><![CDATA[heyy can ny 1 help me.....m wrking on jsp using ajax......i built a small application...as m new to ajax.....i built 2 field....FNAME & Lname and when my application used to do is..when you enter ur first name.....n press the tab button...the last name shld come from data base......but its nt...]]></description>
			<content:encoded><![CDATA[<div>heyy can ny 1 help me.....m wrking on jsp using ajax......i built a small application...as m new to ajax.....i built 2 field....FNAME &amp; Lname and when my application used to do is..when you enter ur first name.....n press the tab button...the last name shld come from data base......but its nt wrking.....can ny 1 help me !!<br />
file name-&quot;Myform.html&quot; -<br />
&lt;html&gt;<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;head&gt;<br />
&lt;title&gt;&lt;/title&gt;<br />
&lt;/head&gt;<br />
<br />
&lt;body bgcolor=&quot;#008000&quot;&gt;<br />
&lt;centre&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
ENTER THE WORLD<br />
&lt;/centre&gt;<br />
<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
function ajaxFunction1()<br />
{<br />
alert(&quot;sss&quot;);<br />
<br />
var xmlhttp;<br />
if (window.XMLHttpRequest)<br />
{<br />
// code for IE7+, Firefox, Chrome, Opera, Safari<br />
xmlhttp=new XMLHttpRequest();<br />
}<br />
else if (window.ActiveXObject)<br />
{<br />
// code for IE6, IE5<br />
xmlhttp=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);<br />
}<br />
else<br />
{<br />
alert(&quot;Your browser does not support XMLHTTP!&quot;);<br />
}<br />
<br />
var url=&quot;Lname.jsp?fname=shankey&quot;;<br />
<br />
alert(url);<br />
<br />
xmlhttp.onreadystatechange=XLNAME()&quot;{<br />
xmlhttp.open(&quot;GET&quot;,url,true);<br />
xmlhttp.send(null);<br />
<br />
}<br />
<br />
function XLNAME(){<br />
alert(&quot;hello&quot;);<br />
if(xmlhttp.readyState==4)<br />
{<br />
document.myform.lname.value=xmlhttp.responseText;<br />
}<br />
}<br />
<br />
}<br />
&lt;/script&gt;<br />
<br />
&lt;form name=&quot;myform&quot;&gt;<br />
<br />
F.Name:&lt;input type=&quot;text&quot; name=&quot;fname&quot; onBlur=&quot;ajaxFunction1();&quot; &gt;<br />
<br />
L.Name:&lt;input type=&quot;text&quot; name=&quot;lname&quot; &gt;<br />
&lt;/form&gt;<br />
<br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre><br />
<br />
and<br />
<br />
file name-&quot;Lname.jsp&quot;<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;%@ page language=&quot;java&quot; import=&quot;java.sql., java.io.&quot; %&gt;<br />
&lt;%@ page import=&quot;java.util.*&quot; %&gt;<br />
<br />
&lt;%<br />
String sn=&quot;&quot;;<br />
String str1=request.getParameter(&quot;fname&quot;);<br />
//String str2=request.getParameter(&quot;lname&quot;);<br />
try{<br />
Class.forName(&quot;oracle.jdbc.driver.OracleDriver&quot;);<br />
Connection con=DriverManager.getConnection(&quot;jdbc:oracle:thin:@192.168.1.101:1521:ORCL&quot;,&quot;SHANKEY&quot;,&quot;SHANKEY&quot;);<br />
Statement pst=con.createStatement();<br />
String query=&quot;select Surname from DATA1 where Name='&quot;str1&quot;'&quot; ;<br />
//out.print(query);<br />
ResultSet rst=pst.executeQuery(query);<br />
while(rst.next()){<br />
sn=rst.getString(&quot;Surname&quot;);<br />
}<br />
<br />
//else{<br />
//response.sendRedirect(&quot;Myform.html&quot;);<br />
<br />
out.println(sn);<br />
<br />
//}<br />
<br />
}catch(Exception e)<br />
{<br />
out.println(&quot;Exception:&quot;+e);<br />
}<br />
<br />
%&gt;</pre><br />
....................................can ny 1 help me out</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>shanks_86</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread228043.html</guid>
		</item>
		<item>
			<title>Multiple Purchases</title>
			<link>http://www.daniweb.com/forums/thread227890.html</link>
			<pubDate>Mon, 05 Oct 2009 21:26:28 GMT</pubDate>
			<description><![CDATA[Kindly go through the code below and the little explanation that follows thereafter... 
The code for the web form 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680"...]]></description>
			<content:encoded><![CDATA[<div>Kindly go through the code below and the little explanation that follows thereafter...<br />
The code for the web form<br />
 <pre style="margin:20px; line-height:13px">&lt;form name=&quot;purchase&quot; action=&quot;Purchase&quot; method=&quot;POST&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;table border=&quot;1&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;thead&gt;<br />
&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; &lt;th&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/thead&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tbody&gt;<br />
&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; &lt;td&gt;Product Number&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;ProdNum&quot; value=&quot;&quot; maxlength=&quot;7&quot; /&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&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; &lt;td&gt;Quantity&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;quantity&quot; value=&quot;&quot; /&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
`&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; &lt;td&gt;Product Number&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;ProdNum2&quot; value=&quot;&quot; maxlength=&quot;7&quot; /&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&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; &lt;td&gt;Quantity&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;quantity2&quot; value=&quot;&quot; /&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&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; &lt;td&gt;Product Number&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;ProdNum3&quot; value=&quot;&quot; maxlength=&quot;7&quot; /&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&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; &lt;td&gt;Quantity&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;quantity3&quot; value=&quot;&quot; /&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&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; &lt;td&gt;&lt;input type=&quot;reset&quot; value=&quot;Clear&quot; name=&quot;clear&quot; /&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input type=&quot;submit&quot; value=&quot;Purchase&quot; name=&quot;purchase&quot; /&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tbody&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/form&gt;</pre><br />
The code for the purchase servlet.<br />
<br />
 <pre style="margin:20px; line-height:13px">String PID = request.getParameter(&quot;ProdNum&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; String Num = request.getParameter(&quot;quantity&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; float cost = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; float value = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; int amt,stocks;<br />
&nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Class.forName(&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Connection con = DriverManager.getConnection(&quot;jdbc:odbc:Concept&quot;,&quot;admin&quot;,&quot;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Statement st = con.createStatement();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ResultSet rs = st.executeQuery (&quot;SELECT * FROM Stock WHERE ProductID =&quot;+PID+&quot;;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while(rs.next())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Assigning Database data to chosen variables<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String ProdID = rs.getString(1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String ProdName = rs.getString(2);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String Stock = rs.getString(3);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String Price1 = rs.getString(4);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //parsing Stock and Num to Integer values<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; amt = Integer.parseInt(Num);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stocks = Integer.parseInt(Stock);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(stocks &gt; amt)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //parsing Price1 contents to double<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value = Float.parseFloat(Price1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //calculation of the cost of purchases<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cost = amt*value;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Displaying the processed user input&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.print(ProdID +'\t');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.print(ProdName + '\t');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.print(Num + '\t');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.print(&quot;$ &quot;+ cost);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.println('\t'+&quot;&lt;a href = purchase.jsp&gt;Back&lt;/a&gt;&quot;);<br />
&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;  else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.print(&quot;Stocks are below the ordered quantity&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.println('\t' + &quot;&lt;a href = purchase.jsp&gt;Back&lt;/a&gt;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  //closing all connection processes to the database<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; con.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs.close ();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; st.close ();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; catch(Exception e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.print(&quot;Unable to find DB&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre>Am trying to enhance the servlet so that i can simulate multiple purchases. Is there a way in which i can modify this servlet so that it can allow me to allow at least 3 products to be bought? Thanks for any help to be rendered.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>timon_zed</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread227890.html</guid>
		</item>
		<item>
			<title>Excel report problem in Servlet</title>
			<link>http://www.daniweb.com/forums/thread227761.html</link>
			<pubDate>Mon, 05 Oct 2009 11:06:15 GMT</pubDate>
			<description><![CDATA[I have  a Servlet and JSP page. 
 
I invoke a method with form submit and the method is a java method. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a href="/forums/misc.php?do=explaincode&amp;TB_iframe=true&amp;height=400&amp;width=680" class="thickbox"...]]></description>
			<content:encoded><![CDATA[<div>I have  a Servlet and JSP page.<br />
<br />
I invoke a method with form submit and the method is a java method.<br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
response.setHeader(&quot;Content-Disposition&quot;, &quot;attachment; filename = report.XLS&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; response.setContentType(&quot;application/vnd.ms-excel&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; response.getWriter().write(result);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; response.getWriter().flush();</pre><br />
Everything works fine but it tries to fit the columns in 1 page. So i have a long adress information.<br />
<br />
The adress information is like this in the report. <br />
<br />
XESSA IS TRYING <br />
TO LEARN EXCEL<br />
<br />
<br />
I want to see it like this in the report.<br />
<br />
XESSA IS TRYING TO LEARN EXCEL.<br />
<br />
I want it to have always 1 row length even it is as long as a novel.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>Xessa</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread227761.html</guid>
		</item>
		<item>
			<title>Use of YUI Compressor in Struts Application</title>
			<link>http://www.daniweb.com/forums/thread227736.html</link>
			<pubDate>Mon, 05 Oct 2009 08:36:31 GMT</pubDate>
			<description>I have a struts 1.x application which uses JDK 1.4. 
 
I want to implement YUI Compressor in this. What can be the best ways to do that? Step wise instruction will be very helpful. 
 
Thanks.</description>
			<content:encoded><![CDATA[<div>I have a struts 1.x application which uses JDK 1.4.<br />
<br />
I want to implement YUI Compressor in this. What can be the best ways to do that? Step wise instruction will be very helpful.<br />
<br />
Thanks.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>adityam4444</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread227736.html</guid>
		</item>
		<item>
			<title>Problem uploading files into the Web-Inf folder</title>
			<link>http://www.daniweb.com/forums/thread227447.html</link>
			<pubDate>Sat, 03 Oct 2009 15:03:06 GMT</pubDate>
			<description><![CDATA[Hi,  
I can upload my files outside of the WEB-INF folder and to the path specified but am unable to upload them into the WEB-INF folder. I  hope someone can point me in the right direction. Thanks!!  
 
IDE : Netbeans 
Server : Tomacat 
 
  <div class="codeblock"> <div class="spaced"> <div...]]></description>
			<content:encoded><![CDATA[<div>Hi, <br />
I can upload my files outside of the WEB-INF folder and to the path specified but am unable to upload them into the WEB-INF folder. I  hope someone can point me in the right direction. Thanks!! <br />
<br />
IDE : Netbeans<br />
Server : Tomacat<br />
<br />
 <pre style="margin:20px; line-height:13px"><br />
&nbsp;public void doPost(HttpServletRequest request, HttpServletResponse response)<br />
&nbsp; &nbsp; throws ServletException, IOException {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PrintWriter out =&nbsp; response.getWriter();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; boolean isMultiPart= ServletFileUpload.isMultipartContent(request); // find the request object enctype<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //String uploadDirectory = &quot;D:\\upload\\images&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String uploadDirectory=&quot;/WEB-INF/data&quot;; // location to upload the file<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ServletContext sc = getServletContext();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String realPath = sc.getRealPath(uploadDirectory);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(realPath);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FileItemFactory fileFactory = new DiskFileItemFactory(100,new File(uploadDirectory)); //100 is the bytes to hold in memory beyond which write the file to the directory mentioned.<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ServletFileUpload serFileUpload = new ServletFileUpload(fileFactory); //commons API to handle multipart encoding type<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; List fileItems = serFileUpload.parseRequest(request);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Iterator iter = fileItems.iterator();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (iter.hasNext()) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FileItem item = (FileItem) iter.next();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (item.isFormField()) { // identifies the normal form field , false when it identifies the upload field<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //simply process the form fields<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;Text Value --&gt;&quot;+item.getString());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {<br />
&nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; String fileName= null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (item.getFieldName().equals(&quot;imageUpload&quot;)){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(item.getName() != null){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fileName=FilenameUtils.getName(item.getName());//FilenameUtils - commons.io API<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; item.write(new File(uploadDirectory+File.separator+fileName)); // writes the file to the upload dir<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; request.setAttribute(&quot;fileAddress&quot;,uploadDirectory+File.separator+fileName);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RequestDispatcher rD = request.getRequestDispatcher(&quot;UnZipImage.do&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rD.forward(request, response);<br />
&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; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RequestDispatcher rD = request.getRequestDispatcher(&quot;UploadForm.view&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rD.forward(request, response);<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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } catch (Exception e1) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e1.printStackTrace();<br />
&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; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } catch (FileUploadException e) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.printStackTrace();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>ssilver</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread227447.html</guid>
		</item>
		<item>
			<title>Dynamic page titles</title>
			<link>http://www.daniweb.com/forums/thread227011.html</link>
			<pubDate>Thu, 01 Oct 2009 14:03:00 GMT</pubDate>
			<description>Hi All, 
 
This is my first post on here so please be gentle with me! 
 
We have a website that provides new car prices instantly to customers. One problem we are having is that Google (we think) does not like our 70000+ duplicate page titles. 
 
Those pages come from our database, a page for each...</description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
This is my first post on here so please be gentle with me!<br />
<br />
We have a website that provides new car prices instantly to customers. One problem we are having is that Google (we think) does not like our 70000+ duplicate page titles.<br />
<br />
Those pages come from our database, a page for each vehicle available from all the leading manufacturers. They also have a page for standard equipment, technical info etc etc. So all of the pages are different content but have the same Title tags and Meta Descriptions. The main thing I would like to resolve is the page titles, the meta descriptions I am hoping will just be a case of applying the same principles.<br />
<br />
To do this and make each page have a different title it would be a good idea to pull through the make, model and derivative of the vehicle and put that in the page title... is this possible?<br />
<br />
The site already generates a page title dynamically depending on what page you are on but they are all the same for 'technical info' or 'standard equipment'. I would like to add to that title calling information from another table in the database that holds the info about the vehicle in question.<br />
<br />
To make this clearer...<br />
<br />
Current page title 'Choose any optional extras now - Free Quotes for New Car Prices' - the first part of the title is pulled through dynamically but the second part appears on all pages (is static).<br />
<br />
I will remove the static part as it is not really of any use...<br />
<br />
What I would like the new title to look like is 'Choose any optional extras now - Audi A3 1.9 tdi SE 5dr Auto'<br />
<br />
The vehicle info like I say is held in another table in the databse.<br />
<br />
Could someone please help me achieve this? I am happy to post snippets of code if it will help, and give more information on database names and fields etc.<br />
<br />
Very much appreciate your time for reading this!<br />
<br />
Regards,<br />
<br />
Shane</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>633shane</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread227011.html</guid>
		</item>
		<item>
			<title>Do we want Java web development starting thread?</title>
			<link>http://www.daniweb.com/forums/thread226821.html</link>
			<pubDate>Wed, 30 Sep 2009 16:57:50 GMT</pubDate>
			<description><![CDATA[I would like to know if people would be interested in participating building similar starting thread like we have in Java section Starting "Java" [Java tutorials / resources / faq] (http://www.daniweb.com/forums/thread99132.html), but targeting Java web development. 
 
This thread would hold...]]></description>
			<content:encoded><![CDATA[<div>I would like to know if people would be interested in participating building similar starting thread like we have in Java section <a rel="nofollow" class="t" href="http://www.daniweb.com/forums/thread99132.html" target="_blank">Starting &quot;Java&quot; [Java tutorials / resources / faq]</a>, but targeting Java web development.<br />
<br />
This thread would hold resources (where to get the things, configurations, basic usage and any tips&amp;tricks) in regards of servers (Tomcat, GlassFish, JBoss, and others), databases (Oracle, MySQL, PostgreSQL, HSQLDB, and others) and available web technologies(servlets, Java Server Pages, Java Server Faces, JavaServer Pages Standard Tag Library and others).<br />
<br />
Additional comments are welcome.</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/thread226821.html</guid>
		</item>
		<item>
			<title>deployment of online system project in windows using tomcat</title>
			<link>http://www.daniweb.com/forums/thread226687.html</link>
			<pubDate>Wed, 30 Sep 2009 04:29:01 GMT</pubDate>
			<description>hi all , I have finsihed my small project(online form system), I mean the development stage, now I am looking 
for how I deploy it in windows, exactly windows professional environment . what do I need in order to successfully access to online form project installed in windows professional. I would...</description>
			<content:encoded><![CDATA[<div>hi all , I have finsihed my small project(online form system), I mean the development stage, now I am looking<br />
for how I deploy it in windows, exactly windows professional environment . what do I need in order to successfully access to online form project installed in windows professional. I would like to inform you that I have installed the tomcat server to the machine which I will use to run my project . I did everything(installation tomcat , setting java home, class path)to my machine as I do in the development stage.<br />
or do I have to only change the port number from 8080 to 80.<br />
<br />
please guys tell me , what I did is correct,or wrong , or I miss something important<br />
actually I prefer if you give me the instruction of the full deployment of a project.<br />
thank you very much</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>alsoumhi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread226687.html</guid>
		</item>
		<item>
			<title>JSP for sending SMS</title>
			<link>http://www.daniweb.com/forums/thread226476.html</link>
			<pubDate>Tue, 29 Sep 2009 06:13:34 GMT</pubDate>
			<description>How i can make JSP as SMS sender to all celular operator. If someone has some reference or any source for more information. 
:) Thanks before.</description>
			<content:encoded><![CDATA[<div>How i can make JSP as SMS sender to all celular operator. If someone has some reference or any source for more information.<br />
:) Thanks before.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>Abdul Gaffar</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread226476.html</guid>
		</item>
		<item>
			<title>no-Cache Control in I.E causing back browser to show page not found</title>
			<link>http://www.daniweb.com/forums/thread226361.html</link>
			<pubDate>Mon, 28 Sep 2009 17:41:57 GMT</pubDate>
			<description><![CDATA[Hi All, 
We had an issue in our project that one user was able to see each other's data, we identified the problem as of caching by the proxy server of those users. 
On checking we found, we were not specifying any caching preference in our server side code and have learnt since then that by...]]></description>
			<content:encoded><![CDATA[<div>Hi All,<br />
We had an issue in our project that one user was able to see each other's data, we identified the problem as of caching by the proxy server of those users.<br />
On checking we found, we were not specifying any caching preference in our server side code and have learnt since then that by default many proxy servers and almost all browsers cache the data.<br />
After looking on net, we fixed this issue by adding following code in all load actions of our jsps:<br />
response.setHeader( &quot;cache-control&quot;,&quot;no-cache,no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform, pre-check=0, post-check=0, private&quot; );<br />
Now on doing browser since page was not cached back browser will have to come to server again and this is what we desired.<br />
This is working well in Mozilla but not in I.E(atleast not in i.e.6) <br />
In I.E., we are getting page not found and on refreshing the page an expired page message, on one more refresh it works.<br />
But is there a way that we can make back browser work in all browsers w/o user getting page not found or page can't be displayed?<br />
Also best solution for us will be if page was cached only for one user and for next user ist should go to server, i was hoping &quot;private&quot; control of cache would so, but it also doesn't seem to be working in I.E .<br />
<br />
Thanks.<br />
Ankit</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>ankitjain_dce</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread226361.html</guid>
		</item>
		<item>
			<title><![CDATA[package javax.servlet does not exist  :>]]></title>
			<link>http://www.daniweb.com/forums/thread226126.html</link>
			<pubDate>Sun, 27 Sep 2009 15:18:50 GMT</pubDate>
			<description><![CDATA[you've read it once you've read it a thousand times! probably responded to it just as many times. Now i ask that you respond one more time 
I've added as many details as possible becuase i've tried the solutions in an old thread in this forum but no luck. 
...]]></description>
			<content:encoded><![CDATA[<div>you've read it once you've read it a thousand times! probably responded to it just as many times. Now i ask that you respond one more time<br />
I've added as many details as possible becuase i've tried the solutions in an old thread in this forum but no luck.<br />
<br />
<a rel="nofollow" class="t" href="http://developers.sun.com/mobility/midp/articles/tutorial2/" target="_blank">http://developers.sun.com/mobility/m...les/tutorial2/</a> &lt;= I'm following what they're telling me to do step by step but i get JAVAC NOT RECOGNIZED when i try to compile the code from that website. It's called Writing Servlet Source Code<br />
<br />
1- I downloaded TOMACAT zip and unzipped it in my C drive =&gt; C:\jakarta-tomacat-4.1.31 Contents of hte zip are inside this directory.<br />
<br />
2- I went here C:\jakarta-tomacat-4.1.31\webapps\midp\WEB-INF\classes and put a copy of that java file here. I created the directory midp and its subdirectories.<br />
<br />
3- I went to C:\jakarta-tomacat-4.1.31\bin and pressed STARTUP. Now the server is running.<br />
<br />
4- I started a prompt and did as I was told where i set the path then i tried JAVAC and i failed.<br />
<br />
5- I went to ENV vars. There was no classpath. So i created one and added its value as C:\jakarta-tomacat-4.1.31\common\lib\servlet.jar<br />
<br />
6- I closed the prompt and the server then tried again. Failed.<br />
<br />
7- I tried going to the directory where my java file was and then tried javac and still i failed.<br />
<br />
8- I started NetBeans and checked plugins. To my luck, and surprise, i found tomacat plugin which I installed alongside another plugin called WebSomething. It says that this plugin will be installed as well since its dependant on it.<br />
<br />
9- I went to TOOLS then OPTIONS then MISCLANEOUS and pressed ADD JAR/ZIP next CLASSPATH and put this C:\jakarta-tomacat-4.1.31\common\lib\servlet.jar<br />
<br />
10- I started a new prj and created a java file with the same name as the one in the site. I copied hte code too. Red lines appeared on almost every line of code. Like import javax.servlet.http.*; was underlined and the tip said package javax.servlet does not exist<br />
<br />
<br />
So what now? I tried to make my post as detailed as possible. If you have a solution plz let me no. and in details if you plz :D<br />
My jdk directory is C:\Program Files\Java\jdk1.6.0</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>wildheart25c</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread226126.html</guid>
		</item>
		<item>
			<title>JSP Books</title>
			<link>http://www.daniweb.com/forums/thread226111.html</link>
			<pubDate>Sun, 27 Sep 2009 12:48:15 GMT</pubDate>
			<description>hai 
 
I am a PHP programmer and I likes to study JSP from the base level. Please advice me a right book to start. 
 
Thanks in advance 
Rajeesh</description>
			<content:encoded><![CDATA[<div>hai<br />
<br />
I am a PHP programmer and I likes to study JSP from the base level. Please advice me a right book to start.<br />
<br />
Thanks in advance<br />
Rajeesh</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>rajeesh_rsn</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread226111.html</guid>
		</item>
		<item>
			<title>Red5 and MySQL</title>
			<link>http://www.daniweb.com/forums/thread226101.html</link>
			<pubDate>Sun, 27 Sep 2009 11:16:48 GMT</pubDate>
			<description><![CDATA[I know this contains actionscript, but the server side is Java. I am trying to get a red5 server to insert into mysql, but I can't get eclipse to compile this client side code. 
 
Could someone tell me if this tutorial is up to date with galileo, the new version of eclipse? I can compile through...]]></description>
			<content:encoded><![CDATA[<div>I know this contains actionscript, but the server side is Java. I am trying to get a red5 server to insert into mysql, but I can't get eclipse to compile this client side code.<br />
<br />
Could someone tell me if this tutorial is up to date with galileo, the new version of eclipse? I can compile through the flex redistro (mxmlc.exe command line), and I can get the Java server running, but I do not know how to compile this client code:<br />
<br />
<a rel="nofollow" class="t" href="http://www.actionscript.org/resources/articles/617/2/Streaming-and-database-connection-with-red5-media-server/Page2.html" target="_blank">http://www.actionscript.org/resource...ver/Page2.html</a><br />
<br />
without the necessary flex xml to compile in the flex sdk (mxmlc.exe --strict)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>lukethedrifter</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread226101.html</guid>
		</item>
		<item>
			<title>video over internet</title>
			<link>http://www.daniweb.com/forums/thread225900.html</link>
			<pubDate>Sat, 26 Sep 2009 08:22:18 GMT</pubDate>
			<description>hello.. 
i need help on how to convert a video to byte stream and i must sent that comverted stream through internet and in client it must be again changed to a video ... 
what must i do??</description>
			<content:encoded><![CDATA[<div>hello..<br />
i need help on how to convert a video to byte stream and i must sent that comverted stream through internet and in client it must be again changed to a video ...<br />
what must i do??</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>britto</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread225900.html</guid>
		</item>
		<item>
			<title>JSP Bank Application</title>
			<link>http://www.daniweb.com/forums/thread225773.html</link>
			<pubDate>Fri, 25 Sep 2009 17:29:25 GMT</pubDate>
			<description>Does anyone know how to compile the file inside the bank.zip  with database ? Some of the pages can be view in Tomcat server others needs to bundle with the database</description>
			<content:encoded><![CDATA[<div>Does anyone know how to compile the file inside the bank.zip  with database ? Some of the pages can be view in Tomcat server others needs to bundle with the database</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/images/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=11797&amp;d=1253899508">bank.zip</a> (19.3 KB)</td> </tr><tr> <td><img class="inlineimg" src="http://www.daniweb.com/forums/images/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=11798&amp;d=1253899621">picture.zip</a> (45.4 KB)</td> </tr> </table> </fieldset>  </div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>low1988</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread225773.html</guid>
		</item>
		<item>
			<title>how do i send text from one page to another using javascript</title>
			<link>http://www.daniweb.com/forums/thread225642.html</link>
			<pubDate>Fri, 25 Sep 2009 08:24:58 GMT</pubDate>
			<description><![CDATA[i created a dropdown list containing university names e.g. 'oxford' 'cambridge' and so on. I would like the uni selected from the dropdown list to be sent to another page as the heading. 
I am having trouble doing this myself and I dont want to create a page for every single uni. can anyone help?]]></description>
			<content:encoded><![CDATA[<div>i created a dropdown list containing university names e.g. 'oxford' 'cambridge' and so on. I would like the uni selected from the dropdown list to be sent to another page as the heading.<br />
I am having trouble doing this myself and I dont want to create a page for every single uni. can anyone help?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>r1990</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread225642.html</guid>
		</item>
		<item>
			<title>reading jsp array in to java(servlet) program</title>
			<link>http://www.daniweb.com/forums/thread225366.html</link>
			<pubDate>Thu, 24 Sep 2009 08:33:19 GMT</pubDate>
			<description><![CDATA[hi helpers, 
        i'm trying to read an array from jsp in to java(servlet) page 
the code is 
JSP CODE (readingcheck box values): 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>hi helpers,<br />
        i'm trying to read an array from jsp in to java(servlet) page<br />
the code is<br />
JSP CODE (readingcheck box values):<br />
 <pre style="margin:20px; line-height:13px">String select[] = request.getParameterValues(&quot;sel&quot;); <br />
<br />
if (select != null &amp;&amp; select.length != 0) {<br />
<br />
for (int i = 0; i &lt; select.length; i++) {<br />
out.println(select[i]);</pre> its working ok!<br />
<br />
JAVA CODE(reading array values):<br />
 <pre style="margin:20px; line-height:13px">String select2[] = request.getParameterValues(&quot;select&quot;); <br />
for (int i = 0; i &lt; select2.length; i++) <br />
{<br />
System.out.println(select2[i]);<br />
}</pre>the above java code didnt worked.<br />
<br />
i also tried this <br />
 <pre style="margin:20px; line-height:13px">String[] select= new String[100];<br />
for (int i = 0; i &lt;10 ; i++)<br />
{<br />
select[i] = request.getParameter(select[i]);<br />
System.out.println(select[i]);<br />
}</pre>this didnt worked too<br />
is there any other way to read array values from jsp page? <br />
where am i wrong?<br />
<br />
thanks,<br />
BeanBoy !</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>beanboy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread225366.html</guid>
		</item>
		<item>
			<title>having problem calling JSP pages inside subdirectories of a web directory</title>
			<link>http://www.daniweb.com/forums/thread225295.html</link>
			<pubDate>Thu, 24 Sep 2009 02:15:28 GMT</pubDate>
			<description>Hi all, I am trying to access login page (html page) from subdirectory of my web directory , the login page calls loginServlet which is reponsible for authintication, then the loginServlet response back to the client a web page to the user(whether user or adminstrator) . 
my web directory called...</description>
			<content:encoded><![CDATA[<div>Hi all, I am trying to access login page (html page) from subdirectory of my web directory , the login page calls loginServlet which is reponsible for authintication, then the loginServlet response back to the client a web page to the user(whether user or adminstrator) .<br />
my web directory called project.<br />
my subdirectory for pages called pages.<br />
my problem is I can access to login by this <a rel="nofollow" class="t" href="http://localhost:8080/project/pages/login.html" target="_blank">http://localhost:8080/project/pages/login.html</a><br />
and once I get login page and submit the page I get this error<br />
(The requested resource (/project/pages/login) is not available.)<br />
why is that? please help me.<br />
I wrote like this in web.xml :<br />
&lt;servlet&gt;<br />
&lt;description&gt;<br />
this to the login page<br />
&lt;/description&gt;<br />
&lt;display-name&gt;this is for login servlet&lt;/display-name&gt;<br />
&lt;servlet-name&gt;loginServlet&lt;/servlet-name&gt;<br />
&lt;servlet-class&gt;<br />
projectPackage.login<br />
&lt;/servlet-class&gt;<br />
&lt;/servlet&gt;<br />
and I wrote this to call loginServlet in login page:<br />
&lt;form action=&quot;/pages/login&quot; method=&quot;post&quot; name=&quot;loginForm&quot; onsubmit=&quot;return ValidateContactForm();&quot;&gt;<br />
what is wrong I did please help me guys<br />
thank you very much.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>alsoumhi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread225295.html</guid>
		</item>
		<item>
			<title>struts and jsp weird error help.</title>
			<link>http://www.daniweb.com/forums/thread225220.html</link>
			<pubDate>Wed, 23 Sep 2009 18:45:32 GMT</pubDate>
			<description><![CDATA[I'm trying to learn some struts through this tutorial: http://www.netbeans.org/kb/docs/web/quickstart-webapps-struts.html 
 
Now I've completed everything but I'm getting this weird error in the browser: 
 
 
---Quote--- 
type Exception report 
 
message]]></description>
			<content:encoded><![CDATA[<div>I'm trying to learn some struts through this tutorial: <a rel="nofollow" class="t" href="http://www.netbeans.org/kb/docs/web/quickstart-webapps-struts.html" target="_blank">http://www.netbeans.org/kb/docs/web/...ps-struts.html</a><br />
<br />
Now I've completed everything but I'm getting this weird error in the browser:<br />
<br />
<div style="margin:20px; margin-top:5px; "> <div class="smallfont" style="margin-bottom:2px">Quote:</div> <table cellpadding="5" cellspacing="0" border="0" width="100%"> <tr> <td class="alt2"> <hr />  type Exception report<br />
<br />
message<br />
<br />
description The server encountered an internal error () that prevented it from fulfilling this request.<br />
<br />
exception<br />
<br />
org.apache.jasper.JasperException: An exception occurred processing JSP page /login.jsp at line 20<br />
<br />
17:     &lt;body&gt;<br />
18:        <br />
19:         <br />
<span style="font-weight:bold">20:         &lt;html:form action=&quot;/login&quot;&gt;</span><br />
21:        <br />
22:             &lt;table border=&quot;0&quot;&gt;<br />
23: <br />
<br />
<br />
Stacktrace:<br />
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)<br />
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)<br />
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)<br />
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)<br />
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br />
	org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)<br />
root cause<br />
<br />
javax.servlet.ServletException: javax.servlet.jsp.JspException: Exception creating bean of class LoginForm: {1}<br />
	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:852)<br />
	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)<br />
	org.apache.jsp.login_jsp._jspService(login_jsp.java:92)<br />
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<br />
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br />
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)<br />
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)<br />
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)<br />
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br />
	org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)  <hr /> </td> </tr> </table> </div>And here is file where I'm getting this error.  I followed everything as its said in the tutorial.<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;%@ taglib uri=&quot;http://struts.apache.org/tags-bean&quot; prefix=&quot;bean&quot; %&gt;<br />
&lt;%@ taglib uri=&quot;http://struts.apache.org/tags-html&quot; prefix=&quot;html&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;<br />
&nbsp; &nbsp; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&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;Login Script&lt;/title&gt;<br />
&nbsp; &nbsp; &lt;/head&gt;<br />
&nbsp; &nbsp; &lt;body&gt;<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; <span style="font-weight:bold">&nbsp; &lt;html:form action=&quot;/login&quot;&gt;</span><br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;table border=&quot;0&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tbody&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td colspan=&quot;2&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;bean:write name=&quot;LoginForm&quot; property=&quot;error&quot; filter=&quot;false&quot;/&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&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; &lt;td&gt; Enter your name:&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;html:text property = &quot;name&quot; /&gt; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&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; &lt;td&gt;Enter your email:&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;html:text property = &quot;email&quot; /&gt; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&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; &lt;td&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;html:submit value = &quot;Login&quot; /&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tbody&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &lt;/html:form&gt; <br />
&nbsp; &nbsp; &lt;/body&gt;<br />
&lt;/html&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>ryno365</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread225220.html</guid>
		</item>
		<item>
			<title>load database info in a JSP using a config file</title>
			<link>http://www.daniweb.com/forums/thread224934.html</link>
			<pubDate>Tue, 22 Sep 2009 20:30:41 GMT</pubDate>
			<description>I am new to JSPs. I would like to know how can I get the database info (drivername, url, username, password etc.) to load from a config file into the JSP rather than hard coding the values there. 
 
Thank you everyone in advance.</description>
			<content:encoded><![CDATA[<div>I am new to JSPs. I would like to know how can I get the database info (drivername, url, username, password etc.) to load from a config file into the JSP rather than hard coding the values there.<br />
<br />
Thank you everyone in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>ash2401</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread224934.html</guid>
		</item>
		<item>
			<title>ssl implementation using tomcat 6</title>
			<link>http://www.daniweb.com/forums/thread224854.html</link>
			<pubDate>Tue, 22 Sep 2009 13:23:42 GMT</pubDate>
			<description>hiiii, i have to build a secure web application using jsp, for which i have to implement SSL. I have generated the certificate using java keytool but as soon as i edit my server.xml file to enable connector port for https (8443) and add the other attributes like keystore,storepass and keypass in...</description>
			<content:encoded><![CDATA[<div>hiiii, i have to build a secure web application using jsp, for which i have to implement SSL. I have generated the certificate using java keytool but as soon as i edit my server.xml file to enable connector port for https (8443) and add the other attributes like keystore,storepass and keypass in the connector tag , my tomcat servers stops running even after system restart.<br />
can anyone plz help me out....</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>funlovingashish</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread224854.html</guid>
		</item>
		<item>
			<title>Problem with reading submitted document</title>
			<link>http://www.daniweb.com/forums/thread224659.html</link>
			<pubDate>Mon, 21 Sep 2009 19:39:48 GMT</pubDate>
			<description>I need to read XML document submitted to doPost() method ( I do not want to upload it, just read in and pass for further processing). Here is a general code that I use for now to see if file been received.  
 
 
public void doPost(HttpServletRequest request, HttpServletResponse response) throws...</description>
			<content:encoded><![CDATA[<div>I need to read XML document submitted to doPost() method ( I do not want to upload it, just read in and pass for further processing). Here is a general code that I use for now to see if file been received. <br />
<br />
 <pre style="margin:20px; line-height:13px">public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {<br />
&nbsp; &nbsp; &nbsp; &nbsp; ServletInputStream sis = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; try {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sis = request.getInputStream();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; catch (IllegalStateException e) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.printStackTrace();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (sis != null) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print(sis);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sis.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; private void print(ServletInputStream sis){<br />
&nbsp; &nbsp; &nbsp; &nbsp; java.io.BufferedReader br = null;<br />
&nbsp; &nbsp; &nbsp; &nbsp; try{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; br = new java.io.BufferedReader(new java.io.InputStreamReader(sis));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; StringBuilder sb = new StringBuilder();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String line = null;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while ((line = br.readLine()) != null) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sb.append(line + &quot;\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; br.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(sb.toString());<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; catch(IOException e){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.printStackTrace();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }</pre><br />
To test this I use curl utility to pass file to url as <br />
<br />
 <pre style="margin:20px; line-height:13px">curl URL --data-binary @FILENAME -H 'Content-type: application/atom+xml;type=entry'</pre><br />
However content of the file is not printed, only new line is added which means process get to this  <pre style="margin:20px; line-height:13px">sb.append(line + &quot;\n&quot;);</pre> command.<br />
<br />
Any advice is welcome.</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/thread224659.html</guid>
		</item>
		<item>
			<title>jsp statement help</title>
			<link>http://www.daniweb.com/forums/thread224557.html</link>
			<pubDate>Mon, 21 Sep 2009 10:06:54 GMT</pubDate>
			<description><![CDATA[hi im getting an error wen i give this syntax in order to retrieve info from my db into a txt box 
 
<input type="text" name="tname" <%out.println(rs.getString(1));%>/> 
 
pls help]]></description>
			<content:encoded><![CDATA[<div>hi im getting an error wen i give this syntax in order to retrieve info from my db into a txt box<br />
<br />
&lt;input type=&quot;text&quot; name=&quot;tname&quot; &lt;%out.println(rs.getString(1));%&gt;/&gt;<br />
<br />
pls help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>nazd28</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread224557.html</guid>
		</item>
		<item>
			<title>Prb with jsp and how to delete multiple rows</title>
			<link>http://www.daniweb.com/forums/thread224540.html</link>
			<pubDate>Mon, 21 Sep 2009 08:49:38 GMT</pubDate>
			<description>Hi i hve used the syntax provided by ul in order to del multiple rows using checkboxes but for some reason the code shows we an error wen i give the value of the checkbox as one of my feilds so that i cud del the rec on that bases. Pls help. Im using Ms access as my backend. An early reply wil be...</description>
			<content:encoded><![CDATA[<div>Hi i hve used the syntax provided by ul in order to del multiple rows using checkboxes but for some reason the code shows we an error wen i give the value of the checkbox as one of my feilds so that i cud del the rec on that bases. Pls help. Im using Ms access as my backend. An early reply wil be appreciated. Thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>nazd28</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread224540.html</guid>
		</item>
		<item>
			<title>Adding a submit button to each row generated</title>
			<link>http://www.daniweb.com/forums/thread224373.html</link>
			<pubDate>Sun, 20 Sep 2009 12:36:56 GMT</pubDate>
			<description>1. I have a simple application, which uses a html table to represent the data retrieved from the database. 
 
How can I add to each row from the Html Table, a submit button. 
The button can be something like delete or modify the dates from that specific row, so I need to take some parameters from...</description>
			<content:encoded><![CDATA[<div>1. I have a simple application, which uses a html table to represent the data retrieved from the database.<br />
<br />
How can I add to each row from the Html Table, a submit button.<br />
The button can be something like delete or modify the dates from that specific row, so I need to take some parameters from the row.<br />
<br />
2. I have another question.<br />
When I start the application, the app should querry the database, and show me the record, but the HTML table is empty. I need to press a button (which is mapped in web.xml) to see something.<br />
<br />
How can I see the records from the first time?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>TryingToDo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread224373.html</guid>
		</item>
		<item>
			<title>Stock Levels</title>
			<link>http://www.daniweb.com/forums/thread224284.html</link>
			<pubDate>Sat, 19 Sep 2009 20:28:30 GMT</pubDate>
			<description>Hello good citizens, 
Am trying to implement a simple web based shopping system, however I want to find out if there is a way in which i can reduce the quantity of goods in stock after customer buys just by using servlets without me having to go to the database to change the stock levels. 
 
Any...</description>
			<content:encoded><![CDATA[<div>Hello good citizens,<br />
Am trying to implement a simple web based shopping system, however I want to find out if there is a way in which i can reduce the quantity of goods in stock after customer buys just by using servlets without me having to go to the database to change the stock levels.<br />
<br />
Any feedback would be appreciated.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>timon_zed</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread224284.html</guid>
		</item>
		<item>
			<title>printed in server instead of client</title>
			<link>http://www.daniweb.com/forums/thread224146.html</link>
			<pubDate>Sat, 19 Sep 2009 04:54:18 GMT</pubDate>
			<description><![CDATA[I am using jBoss server . 
when we are giving print from the client it does it print in client but its get print in the server.. i don't know how to redirect it...so help me... 
 
this is the piece of code:: 
 
PrintRequestAttributeSet printRequestAttributeSet = new HashPrintRequestAttributeSet();...]]></description>
			<content:encoded><![CDATA[<div>I am using jBoss server .<br />
when we are giving print from the client it does it print in client but its get print in the server.. i don't know how to redirect it...so help me...<br />
<br />
this is the piece of code::<br />
<br />
PrintRequestAttributeSet printRequestAttributeSet = new HashPrintRequestAttributeSet();<br />
printRequestAttributeSet.add(OrientationRequested.PORTRAIT);<br />
printRequestAttributeSet.add(MediaSizeName.ISO_A4);<br />
PrintServiceAttributeSet printServiceAttributeSet = new HashPrintServiceAttributeSet();<br />
printServiceAttributeSet.add(new PrinterName(&quot;HP LJ P3005&quot;, null));<br />
exporter = new JRPrintServiceExporter();<br />
exporter.setParameter(JRPrintServiceExporterParameter.PRINT_REQUEST_ATTRIBUTE_SET, printRequestAttributeSet);<br />
exporter.setParameter(JRPrintServiceExporterParameter.PRINT_SERVICE_ATTRIBUTE_SET, printServiceAttributeSet);<br />
exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PAGE_DIALOG, Boolean.FALSE);<br />
exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PRINT_DIALOG, Boolean.FALSE);</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>jmodeveloper</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread224146.html</guid>
		</item>
		<item>
			<title>JSP and MySql connectivity</title>
			<link>http://www.daniweb.com/forums/thread223481.html</link>
			<pubDate>Wed, 16 Sep 2009 11:57:23 GMT</pubDate>
			<description>i am new in Jsp please tell me how to connect MySql to JSP ?</description>
			<content:encoded><![CDATA[<div>i am new in Jsp please tell me how to connect MySql to JSP ?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>Anjana sharma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread223481.html</guid>
		</item>
		<item>
			<title>How to access to servlets inside subdirectories inside (classes directory) of tomcat</title>
			<link>http://www.daniweb.com/forums/thread223427.html</link>
			<pubDate>Wed, 16 Sep 2009 08:07:32 GMT</pubDate>
			<description>hi all, I have simple question which is how to access to servlets inside subdirectories of classes directory? 
I know that for one subdirectory inside the classes directory , you can access to servlets like this  
http://host/servlet/packageName.ServletName 
but how about the servlet is inside one...</description>
			<content:encoded><![CDATA[<div>hi all, I have simple question which is how to access to servlets inside subdirectories of classes directory?<br />
I know that for one subdirectory inside the classes directory , you can access to servlets like this <br />
<a rel="nofollow" class="t" href="http://host/servlet/packageName.ServletName" target="_blank">http://host/servlet/packageName.ServletName</a><br />
but how about the servlet is inside one or more subdirectories? I have tried this <br />
<a rel="nofollow" class="t" href="http://host/servlet/packageName1/packageName2/packa" target="_blank">http://host/servlet/packageName1/packageName2/packa</a> geName3.ServletName<br />
but it doesn't work , please can some one help me .<br />
thank you</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>alsoumhi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread223427.html</guid>
		</item>
		<item>
			<title>Pagination in JSP</title>
			<link>http://www.daniweb.com/forums/thread223388.html</link>
			<pubDate>Wed, 16 Sep 2009 04:48:56 GMT</pubDate>
			<description>Hi all, 
 
I need to apply the pagination concept in my jsp page. The result set which is used to serve the jsp page is obtained through a dynamic query. Is it possible to apply the pagination concept in this case.. Please advice me .. 
Is it possible to do this type of  pagination thru client side...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I need to apply the pagination concept in my jsp page. The result set which is used to serve the jsp page is obtained through a dynamic query. Is it possible to apply the pagination concept in this case.. Please advice me ..<br />
Is it possible to do this type of  pagination thru client side scripting...<br />
Many thanks in advance..<br />
<br />
gk.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>gk0110</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread223388.html</guid>
		</item>
		<item>
			<title>Basics to understand pager-taglib and how to use it</title>
			<link>http://www.daniweb.com/forums/thread223190.html</link>
			<pubDate>Tue, 15 Sep 2009 09:49:08 GMT</pubDate>
			<description>I want to understant pager-taglib idea , how to use it , where to install it in which directory.  
please provide me with tutorials that can explain it with clear examples because I read about it and got confused  
thank you in advance</description>
			<content:encoded><![CDATA[<div>I want to understant pager-taglib idea , how to use it , where to install it in which directory. <br />
please provide me with tutorials that can explain it with clear examples because I read about it and got confused <br />
thank you in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>alsoumhi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread223190.html</guid>
		</item>
		<item>
			<title>Ideas needed!</title>
			<link>http://www.daniweb.com/forums/thread223180.html</link>
			<pubDate>Tue, 15 Sep 2009 09:22:14 GMT</pubDate>
			<description>I have a challenge. I need to provide a solution that would enable me capture images of occupants of several motor vehicles scattered around a geographical area. These images could be still images or video transmitted over the web to my server in my headquaters.  
 
I can program in JSP, ASP.NET,...</description>
			<content:encoded><![CDATA[<div>I have a challenge. I need to provide a solution that would enable me capture images of occupants of several motor vehicles scattered around a geographical area. These images could be still images or video transmitted over the web to my server in my headquaters. <br />
<br />
I can program in JSP, ASP.NET, PHP in the order of preference. I did not want to recieve an infraction by not multiposting under these languages.<br />
<br />
so idea(s) are welcome. What is the simplest, cost/time effective approach.<br />
<br />
Admin: Is there a part where these type of scenario can be taken care of. that is, Ideas or solutions discussed irrespective of language used. Please permit my idiocy! lol.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>jamello</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread223180.html</guid>
		</item>
		<item>
			<title>jsp pages</title>
			<link>http://www.daniweb.com/forums/thread223034.html</link>
			<pubDate>Mon, 14 Sep 2009 21:48:52 GMT</pubDate>
			<description>I need some one whos googd with jsp to help me with sessions</description>
			<content:encoded><![CDATA[<div>I need some one whos googd with jsp to help me with sessions</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>nonhlah</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread223034.html</guid>
		</item>
		<item>
			<title>Inserting data through JSP</title>
			<link>http://www.daniweb.com/forums/thread222880.html</link>
			<pubDate>Mon, 14 Sep 2009 08:51:20 GMT</pubDate>
			<description><![CDATA[Hii frnds, 
I want to know how to insert data into a table through JSP when u have the table name as a variable...Pls help me out. 
 
  <div class="codeblock"> <div class="spaced"> <div style="float:right; margin-right:10px"> <a...]]></description>
			<content:encoded><![CDATA[<div>Hii frnds,<br />
I want to know how to insert data into a table through JSP when u have the table name as a variable...Pls help me out.<br />
<br />
 <pre style="margin:20px; line-height:13px"> Statement stmt5=con.createStatement();<br />
&nbsp; &nbsp; &nbsp; String qry5=&quot;insert into t1(id) values('&quot;+dat0+&quot;')&quot;; <br />
&nbsp; &nbsp; &nbsp; int u5=stmt5.executeUpdate(qry5);</pre><br />
I know this stuff. Wat I want to know is how do we do it if I had some String tname=&quot;t1&quot;. I want to use the insert command using tname and not t1.<br />
<br />
Ive tried this:  <pre style="margin:20px; line-height:13px">insert into '&quot;+tname+&quot;' values(____);</pre>But ti dint work...Plz plz help me out....</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>gsd</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread222880.html</guid>
		</item>
		<item>
			<title>Limit the number of sessions in tomcat or iis</title>
			<link>http://www.daniweb.com/forums/thread222879.html</link>
			<pubDate>Mon, 14 Sep 2009 08:45:03 GMT</pubDate>
			<description>Hello, 
 
I have many jsp applications connected to Apache Tomcat 5 and IIS 6 i need to find a way to limit the number of active users in each application either in tomcat or in IIS, i know there is a way to configure server.xml in tomcat but will that limit the number of active users in all...</description>
			<content:encoded><![CDATA[<div>Hello,<br />
<br />
I have many jsp applications connected to Apache Tomcat 5 and IIS 6 i need to find a way to limit the number of active users in each application either in tomcat or in IIS, i know there is a way to configure server.xml in tomcat but will that limit the number of active users in all applications or in each individually?<br />
<br />
Thnx</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>joewazen</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread222879.html</guid>
		</item>
		<item>
			<title>data retrieval trouble</title>
			<link>http://www.daniweb.com/forums/thread222701.html</link>
			<pubDate>Sun, 13 Sep 2009 13:51:30 GMT</pubDate>
			<description>Hi there, 
I have a servlet which is meant to retrieve data from the database by compairing the number entered via a web form. The trouble is that, it only gives me the last record in the database and not any other record. I have 5 records in the database table and i want to be able to retrieve any...</description>
			<content:encoded><![CDATA[<div>Hi there,<br />
I have a servlet which is meant to retrieve data from the database by compairing the number entered via a web form. The trouble is that, it only gives me the last record in the database and not any other record. I have 5 records in the database table and i want to be able to retrieve any one of them using the servlet. The code for the jsp and the servlet is below. Can anyone please point out where my mistake is and how I can resolve it.<br />
Thanks in advance.<br />
<br />
*the JSP Code*<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Check Your data&lt;/title&gt;<br />
&lt;body&gt;<br />
&lt;form name=&quot;check&quot; method=&quot;post&quot; action=&quot;checkAvailable&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;table&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &lt;td&gt;&lt;input name=&quot;command&quot; type=&quot;hidden&quot; value=&quot;&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;Product No: &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;prodNum&quot; id=&quot;prodNum&quot; type=&quot;text&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;input name=&quot;check&quot; type=&quot;submit&quot; id=&quot;search&quot; value=&quot;Check&quot;&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&amp;nbsp;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/table&gt;<br />
&lt;/form&gt;&nbsp; <br />
&lt;/body&gt;<br />
&lt;/head&gt;<br />
&lt;/html&gt;</pre>the servlet<br />
 <pre style="margin:20px; line-height:13px">public class checkAvailable extends HttpServlet<br />
{&nbsp; &nbsp; <br />
&nbsp; &nbsp; protected void processRequest(HttpServletRequest request, HttpServletResponse response)<br />
&nbsp; &nbsp; throws ServletException, IOException <br />
&nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; response.setContentType(&quot;text/html;charset=UTF-8&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; PrintWriter out = response.getWriter();<br />
&nbsp; &nbsp; &nbsp; &nbsp; String ProdID = new String(&quot;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; String ProdName = new String(&quot;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; String PAmt = new String(&quot;&quot;);<br />
&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; try <br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Class.forName(&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;);//the driver manager string<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Connection con = DriverManager.getConnection(&quot;jdbc:odbc:Args&quot;,&quot;admin&quot;,&quot;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Statement st = con.createStatement();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ResultSet rs = st.executeQuery (&quot;SELECT ProductID,PName,Stock FROM Product&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while(rs.next())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ProdID = rs.getString(&quot;ProductID&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ProdName = rs.getString(&quot;PName&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PAmt = rs.getString(&quot;Stock&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; con.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs.close ();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; st.close ();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; catch(Exception e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.print(&quot;Unable to find DB&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(ProdID.equals(request.getParameter(&quot;prodNum&quot;)))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.print(&quot;Prodcut ID : &quot; +ProdID+ &quot; Product Name : &quot; +ProdName+ &quot; Quantity&quot;+PAmt);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; out.print(&quot;Please Enter Correct Product Number&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; out.close();<br />
&nbsp; &nbsp; }<br />
}</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>timon_zed</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread222701.html</guid>
		</item>
		<item>
			<title>Code to expire username and Password</title>
			<link>http://www.daniweb.com/forums/thread222429.html</link>
			<pubDate>Sat, 12 Sep 2009 04:55:09 GMT</pubDate>
			<description><![CDATA[I want JSP code to expire the username and password in JSP. 
Please help in this regards 
It's Urgent]]></description>
			<content:encoded><![CDATA[<div>I want JSP code to expire the username and password in JSP.<br />
Please help in this regards<br />
It's Urgent</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>rajshree13</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread222429.html</guid>
		</item>
		<item>
			<title>jsp problem</title>
			<link>http://www.daniweb.com/forums/thread222330.html</link>
			<pubDate>Fri, 11 Sep 2009 16:39:25 GMT</pubDate>
			<description>hi, everybody 
 
i have a question. can jsp get data from other pages? 
 
thank.</description>
			<content:encoded><![CDATA[<div>hi, everybody<br />
<br />
i have a question. can jsp get data from other pages?<br />
<br />
thank.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>redsunit</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread222330.html</guid>
		</item>
		<item>
			<title>Netbeans ex. of mvc  model 2 db connections</title>
			<link>http://www.daniweb.com/forums/thread222207.html</link>
			<pubDate>Fri, 11 Sep 2009 09:11:21 GMT</pubDate>
			<description>Topic 
The topic of this question is: school_http-Netbeans ex. Of  MVC model 2 db connections 
 
 
Hello and Thank you in advance for any assistance. 
……………………………………………………………………………………………………………………………………………………………………………………………… 
 
System:</description>
			<content:encoded><![CDATA[<div><span style="font-style:italic"><br />
Topic<br />
The topic of this question is: school_http-Netbeans ex. Of  MVC model 2 db connections<br />
</span><br />
 <pre style="margin:20px; line-height:13px">Hello and Thank you in advance for any assistance.</pre>………………………………………………………………………………………………………………………………………………………………………………………………<br />
<br />
System:<br />
<br />
System info: Netbeans6.7.1,jsf1.2,MySQL <br />
<br />
<br />
………………………………………………………………………………………………………………………………………………………………………………………………<br />
<br />
Purpose:<br />
<br />
The purpose of this post is: Understand why attached program compiles but after the initial login the server won’t find any .jsp<br />
<br />
………………………………………………………………………………………………………………………………………………………………………………………………<br />
<br />
Functionality:<br />
<br />
The functionality of this code is:  The tutorial will show simple example of a school login system, where after submitting correct user ID and password user is redirected to the next page in accordance with user group assignment<br />
·	student - will see his personal details<br />
·	teacher - will see his name on the top of the page with table of all students (user ID, first name, last name, email address and phone number)<br />
administrator - will see his name on the top of the page with tables of all teachers and all students (user ID, first name, last name, email address and phone number)<br />
<a rel="nofollow" class="t" href="http://www.daniweb.com/forums/thread141776.html" target="_blank">http://www.daniweb.com/forums/thread141776.html</a>		<br />
the program builds and the index page displays the user Id and password entry but then there are errors.	<br />
<br />
<br />
………………………………………………………………………………………………………………………………………………………………………………………………<br />
<br />
Question:<br />
<br />
My question concerning this code is: For this program to work.  Is there additional mapping needed in the faces-config.xml file?<br />
<br />
………………………………………………………………………………………………………………………………………………………………………………………………<br />
<br />
errors:<br />
<br />
The errors related to this code are:<br />
password 12345678 uid 12345678<br />
redirected to: error page.<br />
<br />
HTTP Status 404 -<br />
<br />
type Status report<br />
<br />
message<br />
<br />
<br />
<br />
descriptionThe requested resource () is not available.<br />
Sun GlassFish Enterprise Server v2.1<br />
<br />
………………………………………………………………………………………………………………………………………………………………………………………………<br />
………………………………………………………………………………………………………………………………………………………………………………………………<br />
<br />
errors:<br />
<br />
netbeans build -school(run)<br />
compile-jsps:<br />
Incrementally deploying school_localhost:4848_server<br />
Completed incremental distribution of school<br />
run-deploy:<br />
Browsing:<a rel="nofollow" class="t" href="http://localhost:8080/school/" target="_blank">http://localhost:8080/school/</a><br />
run-display-browser:<br />
run:<br />
BUILD SUCCESSFUL (total time: 6 seconds) <br />
<br />
………………………………………………………………………………………………………………………………………………………………………………………………<br />
<br />
Description:<br />
<br />
Code description:<br />
<br />
 <pre style="margin:20px; line-height:13px"></pre>………………………………………………………………………………………………………………………………………………………………………………………………<br />
<span style="font-style:italic"><br />
Thanks again.<br />
-ceyesuma<br />
</span><br />
………………………………………………………………………………………………………………………………………………………………………………………………<br />
<br />
Note:<br />
<br />
Note:<br />
The Program can be found and database can be found at:<br />
<a rel="nofollow" class="t" href="http://cid-b5cb457363230793.skydrive.live.com/self.aspx/.Public/school^_project^_and^_db.zip" target="_blank">http://cid-b5cb457363230793.skydrive...t^_and^_db.zip</a><br />
<br />
named school_project_and_db.zip<br />
<br />
………………………………………………………………………………………………………………………………………………………………………………………………<br />
<br />
<br />
………………………………………………………………………………………………………………………………………………………………………………………………<br />
<br />
Description:<br />
<br />
Code Description:<br />
<br />
………………………………………………………………………………………………………………………………………………………………………………………………</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>ceyesuma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread222207.html</guid>
		</item>
		<item>
			<title>problem with back button in jsf</title>
			<link>http://www.daniweb.com/forums/thread222190.html</link>
			<pubDate>Fri, 11 Sep 2009 07:46:49 GMT</pubDate>
			<description>Hi! 
When I click on h:outputLink after using the browsers back button I get a viewExpiredException. 
 
Som info of my setting in web.xml:  
org.apache.myfaces.SERIALIZE_STATE_IN_SESSION true 
 
javax.faces.STATE_SAVING_METHOD client 
 
How can I fix this or go around the problem. I am using jsf...</description>
			<content:encoded><![CDATA[<div>Hi!<br />
When I click on h:outputLink after using the browsers back button I get a viewExpiredException.<br />
<br />
Som info of my setting in web.xml: <br />
org.apache.myfaces.SERIALIZE_STATE_IN_SESSION true<br />
<br />
javax.faces.STATE_SAVING_METHOD client<br />
<br />
How can I fix this or go around the problem. I am using jsf 1.2.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>cissi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread222190.html</guid>
		</item>
		<item>
			<title>Problem:mysql</title>
			<link>http://www.daniweb.com/forums/thread222171.html</link>
			<pubDate>Fri, 11 Sep 2009 05:51:24 GMT</pubDate>
			<description>Hi all, 
 
I have downloaded mysql, please tell me how to create database, 
and tables in mysql,  .. just forward me the queries for how to create table, database, 
 
and how to make database connection in my jsp code...........reply me soon pls.......... 
give me example code,,,, i wil try to...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I have downloaded mysql, please tell me how to create database,<br />
and tables in mysql,  .. just forward me the queries for how to create table, database,<br />
<br />
and how to make database connection in my jsp code...........reply me soon pls..........<br />
give me example code,,,, i wil try to fallow it ...........<br />
<br />
<br />
Thanks <br />
Ishlux</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>ishlux</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread222171.html</guid>
		</item>
		<item>
			<title>jsp ide help</title>
			<link>http://www.daniweb.com/forums/thread221751.html</link>
			<pubDate>Wed, 09 Sep 2009 13:02:24 GMT</pubDate>
			<description>Hi guys, 
Is there any JSP IDE which facilitate the development of webpages as in ASP.NET using Visual studio with minimal written code. 
 
Thanks in advance</description>
			<content:encoded><![CDATA[<div>Hi guys,<br />
Is there any JSP IDE which facilitate the development of webpages as in ASP.NET using Visual studio with minimal written code.<br />
<br />
Thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>MxDev</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread221751.html</guid>
		</item>
		<item>
			<title>retrieve images from server location</title>
			<link>http://www.daniweb.com/forums/thread221720.html</link>
			<pubDate>Wed, 09 Sep 2009 09:01:29 GMT</pubDate>
			<description>hi, 
 
i managed to upload files from client to server hard disk using apache commons. 
 
how could iretrieve files to client from server again? 
plz gimme an idea of implementation 
 
thx 
beanboy.</description>
			<content:encoded><![CDATA[<div>hi,<br />
<br />
i managed to upload files from client to server hard disk using apache commons.<br />
<br />
how could iretrieve files to client from server again?<br />
plz gimme an idea of implementation<br />
<br />
thx<br />
beanboy.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>beanboy</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread221720.html</guid>
		</item>
		<item>
			<title>where to add othe java classes with JSP i tomcat</title>
			<link>http://www.daniweb.com/forums/thread221676.html</link>
			<pubDate>Wed, 09 Sep 2009 08:18:14 GMT</pubDate>
			<description>Hi all, I am having a problem in JSP, it is very simple. 
 I have a java class and a JSP program, my JSP program will call the a method of java program in order to work as one complete application  .however, I got an error says undetermined method.  
Based on what I know , java classes(not the...</description>
			<content:encoded><![CDATA[<div>Hi all, I am having a problem in JSP, it is very simple.<br />
 I have a java class and a JSP program, my JSP program will call the a method of java program in order to work as one complete application  .however, I got an error says undetermined method. <br />
Based on what I know , java classes(not the source code) under (WEB-INF/classes)  and the JSP under the root<br />
I did this , I still got errors.<br />
<br />
or may be I import my java program wrongly, I did this(&lt;%@ page import=&quot;classes.*&quot; %&gt;)<br />
please help me</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>alsoumhi</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread221676.html</guid>
		</item>
		<item>
			<title>mysql:Help me out</title>
			<link>http://www.daniweb.com/forums/thread221670.html</link>
			<pubDate>Wed, 09 Sep 2009 07:35:47 GMT</pubDate>
			<description>Hi all, 
 
I am New to jsp, i want to create database,, i have ms access, but it does not store more data, so i want to mysql database , give me the link , which version wil be better for my jsp application ......reply soon pls...and tel how to make settings after downloading... i mean setting...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I am New to jsp, i want to create database,, i have ms access, but it does not store more data, so i want to mysql database , give me the link , which version wil be better for my jsp application ......reply soon pls...and tel how to make settings after downloading... i mean setting classpath everything <br />
<br />
<br />
thanks <br />
ishlux</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>ishlux</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread221670.html</guid>
		</item>
		<item>
			<title>JSP database connectivity</title>
			<link>http://www.daniweb.com/forums/thread221652.html</link>
			<pubDate>Wed, 09 Sep 2009 06:34:54 GMT</pubDate>
			<description><![CDATA[Hello. 
I was studying the database connectivity tutorial . 
I set it up with the database in MySQL. 
 
However I tried to set it up using Netbeans6.7.1. just to see if I could get it to run. it's  not working out. 
 
Can this be setup in netbeans?  I have attached the program. 
at:...]]></description>
			<content:encoded><![CDATA[<div>Hello.<br />
I was studying the database connectivity tutorial .<br />
I set it up with the database in MySQL.<br />
<br />
However I tried to set it up using Netbeans6.7.1. just to see if I could get it to run. it's  not working out.<br />
<br />
Can this be setup in netbeans?  I have attached the program.<br />
at:<br />
<a rel="nofollow" class="t" href="http://cid-b5cb457363230793.skydrive.live.com/self.aspx/.Public/schoolTutorial.zip" target="_blank">http://cid-b5cb457363230793.skydrive...olTutorial.zip</a><br />
I also plan to try to recreate it step by step with netbeans if possible.<br />
<br />
any feed back on what is wrong with the example setup with netbeans would be appreciated.<br />
-ceyesumma</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>ceyesuma</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread221652.html</guid>
		</item>
	</channel>
</rss>
