<?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>Sat, 21 Nov 2009 05:39:09 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><![CDATA[<jsp-file>/****.jsp</jsp-file> is not working with my application]]></title>
			<link>http://www.daniweb.com/forums/thread239981.html</link>
			<pubDate>Fri, 20 Nov 2009 10:23:27 GMT</pubDate>
			<description>Hi all , I am trying to map a user to a jsp page when he tries to enter to a directory of my application using URL. let say my web directory is called school and it has a directory called pages . now I need to map a user to error page when he tries to access to pages directory using URL 
something...</description>
			<content:encoded><![CDATA[<div>Hi all , I am trying to map a user to a jsp page when he tries to enter to a directory of my application using URL. let say my web directory is called school and it has a directory called pages . now I need to map a user to error page when he tries to access to pages directory using URL<br />
something like this:<br />
http;//ip_address/school/pages<br />
I have done this in web.xml but it is not working why!!!:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;servlet&gt;<br />
&lt;servlet-name&gt;myjsp&lt;/servlet-name&gt;<br />
&lt;jsp-file&gt;/school/errorPage.jsp&lt;/jsp-file&gt;<br />
&lt;/servlet&gt;<br />
&lt;servlet-mapping&gt;<br />
&lt;servlet-name&gt;myjsp&lt;/servlet-name&gt;<br />
&lt;url-pattern&gt;/school/pages&lt;/url-pattern&gt;<br />
&lt;/servlet-mapping&gt;</pre><br />
but it is not working ,<br />
please tell me if I am wrong and how I correct it , please if you have another idea please tell me<br />
I need it to apply it in my application<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/thread239981.html</guid>
		</item>
		<item>
			<title>Session Expire</title>
			<link>http://www.daniweb.com/forums/thread239935.html</link>
			<pubDate>Fri, 20 Nov 2009 06:04:58 GMT</pubDate>
			<description>While Session Expire, i need to Call One Method... Normally when i click Logout, it will calls one method, the user status also set to logged out, then the session will also expire,.,.,But in this case, suppose the user directly closing the window means, after sometime the session will...</description>
			<content:encoded><![CDATA[<div>While Session Expire, i need to Call One Method... Normally when i click Logout, it will calls one method, the user status also set to logged out, then the session will also expire,.,.,But in this case, suppose the user directly closing the window means, after sometime the session will automatically expire, at that time i have to do changes in database(i.e.Updating the status for that user)...<br />
<br />
Thanks in advance, Seetharaman.G</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>moyphus</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239935.html</guid>
		</item>
		<item>
			<title><![CDATA[Works within <% %> but not within <%! %>.  How can I fix this?]]></title>
			<link>http://www.daniweb.com/forums/thread239781.html</link>
			<pubDate>Thu, 19 Nov 2009 15:28:02 GMT</pubDate>
			<description><![CDATA[JSP Newbie: 
 
I have a piece of code that works perfectly within the <% %> brackets but I need it to work within the <%! %> brackets. 
 
Here is the code: 
------------------------ 
com.newatlanta.cfc.CFCProxy myCFC = new com.newatlanta.cfc.CFCProxy("xmpp", request, response); 
		 
		    String...]]></description>
			<content:encoded><![CDATA[<div>JSP Newbie:<br />
<br />
I have a piece of code that works perfectly within the &lt;% %&gt; brackets but I need it to work within the &lt;%! %&gt; brackets.<br />
<br />
Here is the code:<br />
------------------------<br />
 <pre style="margin:20px; line-height:13px">com.newatlanta.cfc.CFCProxy myCFC = new com.newatlanta.cfc.CFCProxy(&quot;xmpp&quot;, request, response);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String jsonMsgData = &quot;A test message&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Object&#91;&#93; myArgs = {jsonMsgData};<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; java.util.Map map = (java.util.Map)myCFC.invoke(&quot;OnAvailabilityChange&quot;, myArgs);</pre>-------------------------<br />
<br />
I am working with XMPP / Jabber using Smack and I need for this piece of code to be triggered when there is a change in user presence.  I already have the trigger code working within the &lt;%! %&gt; brackets and just need to plug this piece in it to be executed.  Right now, what I have the trigger code doing is sending me an IM of the user presence.  I want to replace the &quot;IM message code&quot; with the above code to be executed.  <br />
<br />
Obviously the code above is some sort of servlet and I know it works for sure -BUT ONLY- within the &lt;% %&gt; brackets as mentioned previously.  Is there a way I can call that piece of code a as a function like doCFCProxy(arg1, arg2...); into the trigger code (that is surrpunded by &lt;%! %&gt;)?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>rickprospers</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239781.html</guid>
		</item>
		<item>
			<title>dynamic table in jsp</title>
			<link>http://www.daniweb.com/forums/thread239498.html</link>
			<pubDate>Wed, 18 Nov 2009 16:34:43 GMT</pubDate>
			<description>Hi, 
 
I need to create dynamic table in jsp and submit data to the server. What is the best way to do this? 
Anyone has sample code? 
 
thanks in advance, 
bvssn</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I need to create dynamic table in jsp and submit data to the server. What is the best way to do this?<br />
Anyone has sample code?<br />
<br />
thanks in advance,<br />
bvssn</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>bvssn</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239498.html</guid>
		</item>
		<item>
			<title>three JSF questions and (related to Oracle)</title>
			<link>http://www.daniweb.com/forums/thread239480.html</link>
			<pubDate>Wed, 18 Nov 2009 15:16:04 GMT</pubDate>
			<description>The name of this question is “three JSF questions” 
Hello and Thank you in advance for any assistance. 
 
 *  
System info: 
* 
Netbeans,MySQL,glassfish 
 *  
The Purpose of this post is: 
*</description>
			<content:encoded><![CDATA[<div>The name of this question is “three JSF questions”<br />
Hello and Thank you in advance for any assistance.<br />
<br />
 <span style="font-weight:bold"> <br />
System info:<br />
</span><br />
Netbeans,MySQL,glassfish<br />
 <span style="font-weight:bold"> <br />
The Purpose of this post is:<br />
</span><br />
have someone look at the excel file (subscribe_app_notes2)at :<br />
<br />
<a rel="nofollow" class="t" href="http://cid-b5cb457363230793.skydrive.live.com/browse.aspx/Public" target="_blank">http://cid-b5cb457363230793.skydrive...se.aspx/Public</a><br />
<br />
 <span style="font-weight:bold"><br />
The functionality of this code is:<br />
</span><br />
I have the whole package I am creating (pseudo code) stated there along with 3 questions I am presently trying to figure out.<br />
 <span style="font-weight:bold"><br />
My question is: <br />
</span> <br />
<br />
One: I am using MySQL and the tutorial I am studying uses Oracle so I need to resolve the resource tag?<br />
<br />
Two: My web.xml is different from the one presented in the tutorial.  Could someone point out what needs to be added or changed to get it to work with my project?<br />
<br />
Three: One of my classes (TopLinkSubscriberDAO.java) is using imports related to Oracle.  I am exploring oracle to resolve this.  Is anyone able to explain how to resolve errors in this class?<br />
<span style="font-weight:bold"><br />
The errors related to this code are:<br />
</span><br />
 <span style="font-weight:bold"><br />
Code description: <br />
</span><br />
 <pre style="margin:20px; line-height:13px"></pre>Thanks again.<br />
-ceyesumma <br />
 <span style="font-weight:bold"><br />
Note: If you are note willing to look at the exel file that is understandable.  I just use it to present every single aspect of the project I am trying to build.<br />
</span> ………………………………………………………………………………………………<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/thread239480.html</guid>
		</item>
		<item>
			<title>Sending SMS through web app</title>
			<link>http://www.daniweb.com/forums/thread239418.html</link>
			<pubDate>Wed, 18 Nov 2009 10:36:57 GMT</pubDate>
			<description><![CDATA[Hi. 
 
I am working on a HRMS system in J2EE. Here i need to verify mobile number through sms. 
 
I am reading about it from 2 days but didn't get anything except SMPP. It will take a long time for me to learn this and implement whole. 
 
I need suggestion for this. And if SMPP is the only solution...]]></description>
			<content:encoded><![CDATA[<div>Hi.<br />
<br />
I am working on a HRMS system in J2EE. Here i need to verify mobile number through sms.<br />
<br />
I am reading about it from 2 days but didn't get anything except SMPP. It will take a long time for me to learn this and implement whole.<br />
<br />
I need suggestion for this. And if SMPP is the only solution then good resource link for that.<br />
<br />
Thanks</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>hardik.rajani</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239418.html</guid>
		</item>
		<item>
			<title>suggestion needed</title>
			<link>http://www.daniweb.com/forums/thread239412.html</link>
			<pubDate>Wed, 18 Nov 2009 10:22:05 GMT</pubDate>
			<description>Hi, 
plz guide me which server side programming is good for current scenario and which should be learn,coz im going to learn JSP.Im confused coz there r numbr of langs there.. 
 
 
 
plz guide me. 
 
thnx in advance.</description>
			<content:encoded><![CDATA[<div>Hi,<br />
plz guide me which server side programming is good for current scenario and which should be learn,coz im going to learn JSP.Im confused coz there r numbr of langs there..<br />
<br />
<br />
<br />
plz guide me.<br />
<br />
thnx in advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>dearjee</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239412.html</guid>
		</item>
		<item>
			<title>Pagination with Struts and hibernate</title>
			<link>http://www.daniweb.com/forums/thread239359.html</link>
			<pubDate>Wed, 18 Nov 2009 05:40:19 GMT</pubDate>
			<description>Currently i am developing a discussion forum like daniweb with struts and hibernate for that i need a pagination using the same (struts and hibernate). 
 
Actually i tried pagination using display tag in struts but not using hibernate and but it is not suitable for my requirement. If you have any...</description>
			<content:encoded><![CDATA[<div>Currently i am developing a discussion forum like daniweb with struts and hibernate for that i need a pagination using the same (struts and hibernate).<br />
<br />
Actually i tried pagination using display tag in struts but not using hibernate and but it is not suitable for my requirement. If you have any idea about this please guide me.<br />
<br />
Thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>ijerald</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239359.html</guid>
		</item>
		<item>
			<title>seperating model from view in jsf</title>
			<link>http://www.daniweb.com/forums/thread239186.html</link>
			<pubDate>Tue, 17 Nov 2009 11:51:27 GMT</pubDate>
			<description>The name of this question is seperatin_view_model 
Hello and Thank you in advance for any assistance. 
 
 *  
System info: 
* 
Netbeans,MySql,glassfish,   
 *  
The Purpose of this post is: 
*</description>
			<content:encoded><![CDATA[<div>The name of this question is seperatin_view_model<br />
Hello and Thank you in advance for any assistance.<br />
<br />
 <span style="font-weight:bold"> <br />
System info:<br />
</span><br />
Netbeans,MySql,glassfish,  <br />
 <span style="font-weight:bold"> <br />
The Purpose of this post is:<br />
</span><br />
to have someone look at my exel file where my question concerning packaging,and beans and faces-conf.xml and the concept of seperation of view and model concept<br />
 <span style="font-weight:bold"><br />
The functionality of this code is:<br />
</span><br />
I am building an exel file with the package structure and adding classes etc along with notes so I can build my app in netbeans and keep track of all it complexitities.<br />
 <span style="font-weight:bold"><br />
My question is: <br />
</span> <br />
the question is in the exel file at:<br />
<a rel="nofollow" class="t" href="http://cid-b5cb457363230793.skydrive.live.com/browse.aspx/Public" target="_blank">http://cid-b5cb457363230793.skydrive...se.aspx/Public</a><br />
<br />
(the first one is exel.xls and the second is exel.xlsx)<br />
<span style="font-weight:bold"><br />
The errors related to this code are:<br />
</span><br />
 <span style="font-weight:bold"><br />
Code description: <br />
</span><br />
 <pre style="margin:20px; line-height:13px"></pre>Thanks again.<br />
-ceyesumma <br />
 <span style="font-weight:bold"><br />
Note:<br />
</span> <br />
a simple yes or no is sufficient.  I just want to see if I understand the concept because the total app (at the link below is using Oracle which I will have to change and it is complicated to say the least.<br />
<br />
<a rel="nofollow" class="t" href="http://www.oracle.com/technology/pub/articles/cioroianu_jsfdb.htm" target="_blank">http://www.oracle.com/technology/pub...ianu_jsfdb.htm</a><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/thread239186.html</guid>
		</item>
		<item>
			<title>How to get an integer value from controller to jsp</title>
			<link>http://www.daniweb.com/forums/thread239131.html</link>
			<pubDate>Tue, 17 Nov 2009 06:50:20 GMT</pubDate>
			<description>i have a list of size 3 
 
in my controller i say 
 
int noofcards=List1.size(); which returns me the value 3 
 
i want to print this value in my jsp. How do i do it ? 
 
i tried this way</description>
			<content:encoded><![CDATA[<div>i have a list of size 3<br />
<br />
in my controller i say<br />
<br />
int noofcards=List1.size(); which returns me the value 3<br />
<br />
i want to print this value in my jsp. How do i do it ?<br />
<br />
i tried this way<br />
<br />
Controller<br />
 <pre style="margin:20px; line-height:13px">request.setAttribute(&quot;noofcards&quot;,noofcards);</pre><br />
jsp<br />
 <pre style="margin:20px; line-height:13px">&lt;%= request.getAttribute(&quot;noofcards&quot;); %&gt;</pre><br />
Thanks in Advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>madhu28</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread239131.html</guid>
		</item>
		<item>
			<title>File Search in jsp</title>
			<link>http://www.daniweb.com/forums/thread238834.html</link>
			<pubDate>Mon, 16 Nov 2009 05:07:48 GMT</pubDate>
			<description><![CDATA[I have written a code to search a file in a given directory. This runs fine on console. But the same code when i run in jsp does not work as expected.  
        if(target != null && target.isDirectory()) 
        { 
            for(File f:target.listFiles()) 
            { 
               ...]]></description>
			<content:encoded><![CDATA[<div>I have written a code to search a file in a given directory. This runs fine on console. But the same code when i run in jsp does not work as expected. <br />
 <pre style="margin:20px; line-height:13px">&nbsp; &nbsp; &nbsp; &nbsp; if(target != null &amp;&amp; target.isDirectory())<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(File f:target.listFiles())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(f.isFile())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p = Pattern.compile(fileName);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m = p.matcher(f.getName());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(m.find())<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;File Found:&nbsp; &quot;+f.getAbsolutePath());<br />
&nbsp;else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;File not found: &quot;+fileName);<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; &nbsp; &nbsp; search(f,fileName);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }</pre><br />
<br />
i have used jsp declaration tag embedding the function which does the above task.<br />
<br />
Please guide me to search a file in a given directory using jsp.<br />
<br />
The code i have tried in jsp is something like this:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;%!<br />
public static String search(String fileName, String target)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
}<br />
<br />
%&gt;<br />
<br />
<br />
&lt;%<br />
List showFiles = search(....);<br />
<br />
%&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>Pranesh_Ashrit</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238834.html</guid>
		</item>
		<item>
			<title>HttpServlet error</title>
			<link>http://www.daniweb.com/forums/thread238529.html</link>
			<pubDate>Sat, 14 Nov 2009 19:25:38 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I'm doing an assignment for University that requires us to make a servlet. I haven't been able to start it yet as I am having trouble compiling the java files. I started of in Linux but could not get Tomcat working so I've resorted to Windows XP. I now have Tomcat installed which is a step...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I'm doing an assignment for University that requires us to make a servlet. I haven't been able to start it yet as I am having trouble compiling the java files. I started of in Linux but could not get Tomcat working so I've resorted to Windows XP. I now have Tomcat installed which is a step in the right direction but there are still problems... I have made a test file to see if it is all working (just a simple Hello World Java servlet). I then go to the Windows command prompt and try to compile it using javac helloWorld.java and 7 errors get spit out into the prompt window. I have Java EE installed but the errors look like it cant find the Java directory. Anyone mind helping me out? because I cant get on with my assignment.<br />
<br />
Thank you<br />
<br />
Errors in command prompt:<br />
<a rel="nofollow" class="t" href="http://img171.imageshack.us/img171/126/drbobforumhelp.png" target="_blank">http://img171.imageshack.us/img171/1...bforumhelp.png</a></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>dsmush</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238529.html</guid>
		</item>
		<item>
			<title>How to create aglet externally</title>
			<link>http://www.daniweb.com/forums/thread238407.html</link>
			<pubDate>Fri, 13 Nov 2009 23:52:02 GMT</pubDate>
			<description>Hi 
Actually i require that as soon as a jsp gets loaded , An Aglet is created and dispatched to remote site. 
I am able to do dis directly in java..but how to do it through jsp page. 
Plz help</description>
			<content:encoded><![CDATA[<div>Hi<br />
Actually i require that as soon as a jsp gets loaded , An Aglet is created and dispatched to remote site.<br />
I am able to do dis directly in java..but how to do it through jsp page.<br />
Plz help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>gshockneo</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238407.html</guid>
		</item>
		<item>
			<title>Genealogy stuff</title>
			<link>http://www.daniweb.com/forums/thread238301.html</link>
			<pubDate>Fri, 13 Nov 2009 15:34:24 GMT</pubDate>
			<description><![CDATA[Hi! All 
 
I would like to have a way to do my application using a simple way. 
 
I have a genealogy site, since a long time ago. I have near 10,000 
pages (10,000 names) on a free hoster. Everything works fine. But I'd like to 
do the conversion from my FTW (Familky tree maker) to html page...]]></description>
			<content:encoded><![CDATA[<div>Hi! All<br />
<br />
I would like to have a way to do my application using a simple way.<br />
<br />
I have a genealogy site, since a long time ago. I have near 10,000<br />
pages (10,000 names) on a free hoster. Everything works fine. But I'd like to<br />
do the conversion from my FTW (Familky tree maker) to html page ,myself. I've use<br />
VB6 (Visula Basic 6) to do the conversion of all the pages, including all the <br />
html code on each page to link to other page. Like ,click on the father's name <br />
or the childre's name and it load the html page of this INDIVIDUAL. <br />
<br />
<br />
First  : I know very well VB6 , moderate in HTML , poor in Javascript.<br />
<br />
Second : I have 10,000 pages (One for each individual), so is there a way<br />
         to only have a template page (on the server side = my hoster) and<br />
         a few text file (.txt) to pick up the data. Cause there are only 40-50<br />
         string data to put on each page but a lot of html code to make a <br />
         good looking page. So having a template html page that we can just <br />
         add at the right place ,the data of this individual then send it<br />
         would be much smaller. So instead of a lot of pages there will be only a few.<br />
<br />
Third  : I'd like to place on the viewable page, 3 cascading &quot;selection list&quot;.<br />
         The first one will be populated with the letter from A to Z , from the<br />
         HTML code. The second list would have all the name of the family , like <br />
         Smith, Johnson, rimes etc , ordered. I already have a text file of <br />
         those names. And the third list , will have all the first name like Daniel<br />
         Steve, Leann, ordered too, and I also have this ordered text file.<br />
         So in a few click , we will be able to go to another individual.<br />
<br />
<br />
Have try a lot of things but never been able to do it.<br />
I like to keep the text file for data, as it's very easy <br />
to change using VB6 and easy to read, too. <br />
         <br />
As written before, it must be easy to understand. <br />
I don't mind giving a small donation to have it, cause I really<br />
try hard to do it without been able to do it working.<br />
And it could be useful to other, too.<br />
<br />
Thanks at advance.</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>dj_dan23</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238301.html</guid>
		</item>
		<item>
			<title>my first jsf app</title>
			<link>http://www.daniweb.com/forums/thread238222.html</link>
			<pubDate>Fri, 13 Nov 2009 07:29:26 GMT</pubDate>
			<description>The name of this question is 
Hello and Thank you in advance for any assistance. 
 
 *  
System info: 
* 
JSF,netbeans6.7 
 *  
The Purpose of this post is: 
*</description>
			<content:encoded><![CDATA[<div>The name of this question is<br />
Hello and Thank you in advance for any assistance.<br />
<br />
 <span style="font-weight:bold"> <br />
System info:<br />
</span><br />
JSF,netbeans6.7<br />
 <span style="font-weight:bold"> <br />
The Purpose of this post is:<br />
</span><br />
My first successful JSF app.  If someone wants to check it out.<br />
Found at:<br />
<a rel="nofollow" class="t" href="http://cid-b5cb457363230793.skydrive.live.com/self.aspx/.Public/guessNumber.zip" target="_blank">http://cid-b5cb457363230793.skydrive...uessNumber.zip</a><br />
 <span style="font-weight:bold"><br />
The functionality of this code is:<br />
</span><br />
program(jsf app from tutorial ejb) GuessNumber .  simple random number guess.<br />
 <span style="font-weight:bold"><br />
My question is: <br />
</span> <br />
If anyone has a good example for JSF and databases I’d like to see it. thanks<br />
<span style="font-weight:bold"><br />
The errors related to this code are:<br />
</span><br />
 [B]<br />
none<br />
Thanks again.<br />
-ceyesumma <br />
 <span style="font-weight:bold"><br />
Note:<br />
</span> ………………………………………………………………………………………………</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/thread238222.html</guid>
		</item>
		<item>
			<title>Print different colour for different columns</title>
			<link>http://www.daniweb.com/forums/thread238172.html</link>
			<pubDate>Fri, 13 Nov 2009 01:28:44 GMT</pubDate>
			<description><![CDATA[Hi all, 
 
I'm a beginner in jsp and need help in this. How do you write a jsp code to print different colours for different columns in a table of 5 by 5 squares?  
 
Any help would be appreciated.  
 
:)]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I'm a beginner in jsp and need help in this. How do you write a jsp code to print different colours for different columns in a table of 5 by 5 squares? <br />
<br />
Any help would be appreciated. <br />
<br />
:)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>ag1021</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238172.html</guid>
		</item>
		<item>
			<title>javax.servlet.ServletException: java.lang.NoClassDefFoundError</title>
			<link>http://www.daniweb.com/forums/thread238105.html</link>
			<pubDate>Thu, 12 Nov 2009 19:59:45 GMT</pubDate>
			<description><![CDATA[Hey guys, 
 I've very new to JSP, Java, and Netbeans and I'm having an issue... So I've got an ArrayList of User objects and I'm trying to iterate over the list in a JSP page to display the info. I've included the JSTL 1.1 jstl and standard libraries. Here is my code for the JSP: 
 
  <div...]]></description>
			<content:encoded><![CDATA[<div>Hey guys,<br />
 I've very new to JSP, Java, and Netbeans and I'm having an issue... So I've got an ArrayList of User objects and I'm trying to iterate over the list in a JSP page to display the info. I've included the JSTL 1.1 jstl and standard libraries. Here is my code for the JSP:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;% include business.User %&gt;<br />
...html stuff...<br />
&lt;%@ taglib uri=&quot;http://java.sun.com/jsp/jstl/core&quot; prefix=&quot;c&quot; %&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;c:forEach items =&quot;${phonelist}&quot; var=&quot;item&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;font face=&quot;verdana&quot; size=&quot;2&quot;&gt;&lt;% item.getFirstName; %&gt;&lt;/font&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;font face=&quot;verdana&quot; size=&quot;2&quot;&gt;&lt;% item.getLastName; %&gt;&lt;/font&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;font face=&quot;verdana&quot; size=&quot;2&quot;&gt;&lt;% item.getPhoneMobile; %&gt;&lt;/font&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;font face=&quot;verdana&quot; size=&quot;2&quot;&gt;&lt;% item.getPhoneOffice; %&gt;&lt;/font&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;font face=&quot;verdana&quot; size=&quot;2&quot;&gt;&lt;% item.getPhoneHome; %&gt;&lt;/font&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;font face=&quot;verdana&quot; size=&quot;2&quot;&gt;&lt;% item.getAddressStreet; %&gt;&lt;/font&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;font face=&quot;verdana&quot; size=&quot;2&quot;&gt;&lt;% item.getAddressCity; %&gt;&lt;/font&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;font face=&quot;verdana&quot; size=&quot;2&quot;&gt;&lt;% item.getAddressState; %&gt;&lt;/font&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;font face=&quot;verdana&quot; size=&quot;2&quot;&gt;&lt;% item.getAddressCountry; %&gt;&lt;/font&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;font face=&quot;verdana&quot; size=&quot;2&quot;&gt;&lt;% item.getAddressState; %&gt;&lt;/font&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;font face=&quot;verdana&quot; size=&quot;2&quot;&gt;&lt;% item.getAddressCountry; %&gt;&lt;/font&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;font face=&quot;verdana&quot; size=&quot;2&quot;&gt;&lt;% item.getAddressZip; %&gt;&lt;/font&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;font face=&quot;verdana&quot; size=&quot;2&quot;&gt;&lt;% item.getCompany; %&gt;&lt;/font&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;&lt;font face=&quot;verdana&quot; size=&quot;2&quot;&gt;&lt;% item.getEmail; %&gt;&lt;/font&gt;&lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/c:forEach&gt;</pre><br />
...and here is the error I'm getting when I try to run the page:<br />
<br />
description The server encountered an internal error () that prevented it from fulfilling this request.<br />
<br />
exception<br />
<br />
javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator<br />
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:275)<br />
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br />
	controllers.display_phonebook.processRequest(display_phonebook.java:41)<br />
	controllers.display_phonebook.doGet(display_phonebook.java:56)<br />
	javax.servlet.http.HttpServlet.service(HttpServlet.java:617)<br />
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br />
<br />
root cause<br />
<br />
java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator<br />
	java.lang.ClassLoader.defineClass1(Native Method)<br />
	java.lang.ClassLoader.defineClass(ClassLoader.java:621)<br />
	java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)<br />
	java.net.URLClassLoader.defineClass(URLClassLoader.java:260)<br />
	java.net.URLClassLoader.access$000(URLClassLoader.java:56)<br />
	java.net.URLClassLoader$1.run(URLClassLoader.java:195)<br />
<br />
...and it goes further with more lines of similar stuff...<br />
<br />
Any suggestions would be very helpful!!<br />
<br />
Thanks in advance,<br />
 - Jeff</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/thread238105.html</guid>
		</item>
		<item>
			<title>HI</title>
			<link>http://www.daniweb.com/forums/thread238003.html</link>
			<pubDate>Thu, 12 Nov 2009 11:24:55 GMT</pubDate>
			<description>hi to all, 
i am new to jsp..i want to update the table using stored procedure in jsp program..can any one please solve my problem.need code to execute that..anyone help me..</description>
			<content:encoded><![CDATA[<div>hi to all,<br />
i am new to jsp..i want to update the table using stored procedure in jsp program..can any one please solve my problem.need code to execute that..anyone help me..</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>9944574568</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread238003.html</guid>
		</item>
		<item>
			<title>Display JSP page after certain event</title>
			<link>http://www.daniweb.com/forums/thread237914.html</link>
			<pubDate>Thu, 12 Nov 2009 04:17:12 GMT</pubDate>
			<description><![CDATA[I am developing a Tic-Tac-Toe game which can be played between two players who are on two different machines. 
When the first player comes to the Welcome page he will redirected to a Waiting Page when he clicks on the 'Start' button.  
When the second player comes to the Welcome page he will be...]]></description>
			<content:encoded><![CDATA[<div>I am developing a Tic-Tac-Toe game which can be played between two players who are on two different machines.<br />
When the first player comes to the Welcome page he will redirected to a Waiting Page when he clicks on the 'Start' button. <br />
When the second player comes to the Welcome page he will be redirected directly to the Game page, on clicking the 'Start' button.<br />
<br />
So how can i redirect the first player to the Game page after the second player is available for the game.<br />
And if i want to manage multiple instances of my game how can i do that//<br />
I am using JSP, javascript and MySQL for developing my project, and I am new to all these tools, but i would still like to carry on with all these only</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/thread237914.html</guid>
		</item>
		<item>
			<title>login detail verification from oracle DB</title>
			<link>http://www.daniweb.com/forums/thread237755.html</link>
			<pubDate>Wed, 11 Nov 2009 13:00:28 GMT</pubDate>
			<description>Hi, 
 
Can anyone provide a sample application that usses a login page, in which users can login and the login details will be checked from the oracle db. 
 
Thanks in advance.:)</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
Can anyone provide a sample application that usses a login page, in which users can login and the login details will be checked from the oracle db.<br />
<br />
Thanks in advance.:)</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>ArunRaj.SRM</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237755.html</guid>
		</item>
		<item>
			<title>how to make forems using jsp</title>
			<link>http://www.daniweb.com/forums/thread237741.html</link>
			<pubDate>Wed, 11 Nov 2009 12:03:23 GMT</pubDate>
			<description>can any one say how to make forems using jsp</description>
			<content:encoded><![CDATA[<div>can any one say how to make forems using jsp</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>jeswanth</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237741.html</guid>
		</item>
		<item>
			<title>uploading files in JSP</title>
			<link>http://www.daniweb.com/forums/thread237538.html</link>
			<pubDate>Tue, 10 Nov 2009 19:06:38 GMT</pubDate>
			<description><![CDATA[hiii    
can u please help me in uploading files in JSP??? 
I have a code but it can only upload small sized files(only few bytes or kb) , please help me in uploading large files.I tried  to upload a large file but it could not, although it didn't show any error 
 
my code is: 
 
 
 
  <%@ page 
 ...]]></description>
			<content:encoded><![CDATA[<div>hiii   <br />
can u please help me in uploading files in JSP???<br />
I have a code but it can only upload small sized files(only few bytes or kb) , please help me in uploading large files.I tried  to upload a large file but it could not, although it didn't show any error<br />
<br />
my code is:<br />
<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">&nbsp; &lt;%@ page<br />
&nbsp; import=&quot;java.io.*,javax.servlet.http.HttpServletRequest,javax.servlet.ServletInputStream&quot; %&gt;<br />
&nbsp; &lt;%@ page import=&quot;java.io.FileWriter,java.io.IOException&quot; %&gt;<br />
&lt;%<br />
&nbsp;String savePath = &quot;&quot;,filepath = &quot;&quot;,filename = &quot;&quot;;<br />
&nbsp;String contentType = &quot;&quot;, fileData = &quot;&quot;, strLocalFileName = &quot;&quot;;<br />
&nbsp;int startPos = 0;<br />
&nbsp;int endPos = 0;<br />
%&gt;<br />
&lt;%!<br />
&nbsp;//copy specified number of bytes from main data buffer to temp data buffer<br />
&nbsp;void copyByte(byte &#91;&#93; fromBytes, byte &#91;&#93; toBytes, int start, int len)<br />
&nbsp;{&nbsp; <br />
&nbsp; for(int i=start;i&lt;(start+len);i++)<br />
&nbsp; {<br />
&nbsp;  toBytes&#91;i - start&#93; = fromBytes&#91;i&#93;;<br />
&nbsp; }<br />
&nbsp;}<br />
%&gt;<br />
&lt;%<br />
&nbsp;int BOF = 0, EOF = 0;<br />
&nbsp;contentType = request.getContentType();<br />
&nbsp;out.println(&quot;&lt;br&gt;Content type is :: &quot; +contentType);<br />
&nbsp;if ((contentType != null) &amp;&amp; (contentType.indexOf(&quot;multipart/form-data&quot;) &gt;=<br />
0))<br />
&nbsp;{<br />
&nbsp; DataInputStream in = new DataInputStream(request.getInputStream());<br />
&nbsp; DataInputStream in1 = in;<br />
&nbsp; int formDataLength = request.getContentLength();<br />
&nbsp; byte dataBytes&#91;&#93; = new byte&#91;formDataLength&#93;;<br />
&nbsp; int byteRead = 0;<br />
&nbsp; int totalBytesRead = 0;<br />
&nbsp; while (totalBytesRead &lt; formDataLength)<br />
&nbsp; {<br />
&nbsp;  byteRead = in1.read(dataBytes, totalBytesRead, formDataLength);<br />
&nbsp;  totalBytesRead += byteRead;<br />
&nbsp; }<br />
&nbsp; out.println(&quot;&lt;br&gt;totalBytesRead : &quot; + totalBytesRead + &quot;&nbsp; &nbsp; :&nbsp; formDataLength = &quot; + formDataLength);<br />
<br />
&nbsp; //String file = new String(dataBytes);<br />
&nbsp; //out.println(&quot;&lt;br&gt;File<br />
//Contents:&lt;br&gt;&lt;br&gt;&quot; + file +&nbsp; &quot;&lt;br&gt;&lt;br&gt;&quot;);<br />
<br />
&nbsp; byte&#91;&#93; line = new byte&#91;128&#93;;<br />
&nbsp; if (totalBytesRead &lt; 3)<br />
&nbsp; {<br />
&nbsp; &nbsp; return; //exit if file length is not sufficiently large<br />
&nbsp; }<br />
<br />
&nbsp; String boundary = &quot;&quot;;<br />
&nbsp; String s = &quot;&quot;;<br />
&nbsp; int count = 0;<br />
&nbsp; int pos = 0;<br />
<br />
&nbsp; //loop for extracting boundry of file<br />
&nbsp; //could also be extracted from request.getContentType()<br />
&nbsp; do<br />
&nbsp; {<br />
&nbsp;  copyByte(dataBytes, line, count ,1); //read 1 byte at a time<br />
&nbsp;  count+=1;<br />
&nbsp;  s = new String(line, 0, 1);<br />
&nbsp;  fileData = fileData + s;<br />
&nbsp;  pos = fileData.indexOf(&quot;Content-Disposition: form-data; name=\&quot;&quot;); //set&nbsp; the file name<br />
&nbsp;  if(pos != -1)<br />
&nbsp; &nbsp; endPos = pos;<br />
&nbsp; }while(pos == -1);<br />
&nbsp; boundary = fileData.substring(startPos, endPos);<br />
<br />
&nbsp; //loop for extracting filename<br />
&nbsp; startPos = endPos;<br />
&nbsp; do<br />
&nbsp; {<br />
&nbsp;  copyByte(dataBytes, line, count ,1); //read 1 byte at a time<br />
&nbsp;  count+=1;<br />
&nbsp;  s = new String(line, 0, 1);<br />
&nbsp;  fileData = fileData + s;<br />
&nbsp;  pos = fileData.indexOf(&quot;filename=\&quot;&quot;, startPos); //set the file name<br />
&nbsp;  if(pos != -1)<br />
&nbsp; &nbsp; startPos = pos;<br />
&nbsp; }while(pos == -1);<br />
&nbsp; do<br />
&nbsp; {<br />
&nbsp;  copyByte(dataBytes, line, count ,1); //read 1 byte at a time<br />
&nbsp;  count+=1;<br />
&nbsp;  s = new String(line, 0, 1);<br />
&nbsp;  fileData = fileData + s;<br />
&nbsp;  pos = fileData.indexOf(&quot;Content-Type: &quot;, startPos);<br />
&nbsp;  if(pos != -1)<br />
&nbsp; &nbsp; endPos = pos;<br />
&nbsp; }while(pos == -1);<br />
&nbsp; filename = fileData.substring(startPos + 10, endPos - 3); //to eliminate &quot;&nbsp; from start &amp; end<br />
&nbsp; strLocalFileName = filename;<br />
&nbsp; int index = filename.lastIndexOf(&quot;\\&quot;);<br />
&nbsp; if(index != -1)<br />
&nbsp;  filename = filename.substring(index + 1);<br />
&nbsp; else<br />
&nbsp;  filename = filename;<br />
<br />
&nbsp; //loop for extracting ContentType<br />
&nbsp; boolean blnNewlnFlag = false;<br />
&nbsp; startPos = endPos; //added length of &quot;Content-Type: &quot;<br />
&nbsp; do<br />
&nbsp; {<br />
&nbsp;  copyByte(dataBytes, line, count ,1); //read 1 byte at a time<br />
&nbsp;  count+=1;<br />
&nbsp;  s = new String(line, 0, 1);<br />
&nbsp;  fileData = fileData + s;<br />
&nbsp;  pos = fileData.indexOf(&quot;\n&quot;, startPos);<br />
&nbsp;  if(pos != -1)<br />
&nbsp;  {<br />
&nbsp; &nbsp; if(blnNewlnFlag == true)<br />
&nbsp; &nbsp;  endPos = pos;<br />
&nbsp; &nbsp; else<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp;  blnNewlnFlag = true;<br />
&nbsp; &nbsp;  pos = -1;<br />
&nbsp; &nbsp; }<br />
&nbsp;  }<br />
&nbsp; }while(pos == -1);<br />
&nbsp; contentType = fileData.substring(startPos + 14, endPos);<br />
<br />
&nbsp; //loop for extracting actual file data (any type of file)<br />
&nbsp; startPos = count + 1;<br />
&nbsp; do<br />
&nbsp; {<br />
&nbsp;  copyByte(dataBytes, line, count ,1); //read 1 byte at a time<br />
&nbsp;  count+=1;<br />
&nbsp;  s = new String(line, 0, 1);<br />
&nbsp;  fileData = fileData + s;<br />
&nbsp;  pos = fileData.indexOf(boundary, startPos); //check for end of file data&nbsp; i.e boundry value<br />
&nbsp; }while(pos == -1);<br />
&nbsp; endPos = count - boundary.length();<br />
&nbsp; //file data extracted<br />
<br />
&nbsp; out.println(&quot;&lt;br&gt;&lt;br&gt;0. Local File Name = &quot; + strLocalFileName);<br />
&nbsp; out.println(&quot;&lt;br&gt;&lt;br&gt;1. filename = &quot; + filename);<br />
&nbsp; out.println(&quot;&lt;br&gt;2. contentType = &quot; + contentType);<br />
&nbsp; out.println(&quot;&lt;br&gt;3. startPos = &quot; + startPos);<br />
&nbsp; out.println(&quot;&lt;br&gt;4. endPos = &quot; + endPos);<br />
&nbsp; out.println(&quot;&lt;br&gt;5. boundary = &quot; + boundary);<br />
<br />
&nbsp; //create destination path &amp; save file there<br />
&nbsp; String appPath = application.getRealPath(&quot;/&quot;);<br />
&nbsp; out.println(&quot;&lt;br&gt;appPath : &quot; + appPath);<br />
&nbsp; String destFolder = appPath + &quot;uploads/&quot;;<br />
&nbsp; filename= destFolder + filename;<br />
&nbsp; FileOutputStream fileOut = new FileOutputStream(filename);<br />
&nbsp; fileOut.write(dataBytes, startPos, (endPos - startPos));<br />
&nbsp; fileOut.flush();<br />
&nbsp; fileOut.close();<br />
&nbsp; out.println(&quot;&lt;br&gt;File saved as &gt;&gt; &quot; + filename);<br />
&nbsp; //file saved at destination<br />
&nbsp; //out.println(&quot;&lt;br&gt;File data : &lt;br&gt;&lt;br&gt;**************************&lt;br&gt;&quot; +&nbsp; (new String(dataBytes,startPos, (endPos - startPos))) +&nbsp; &quot;&lt;br&gt;&lt;br&gt;**************************&quot;);<br />
&nbsp;}<br />
&nbsp;else<br />
&nbsp;{<br />
&nbsp; out.println(&quot;Error in uploading &quot;);<br />
&nbsp;}<br />
<br />
%&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>shalabhgarg</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237538.html</guid>
		</item>
		<item>
			<title>Input to servlet</title>
			<link>http://www.daniweb.com/forums/thread237460.html</link>
			<pubDate>Tue, 10 Nov 2009 11:02:44 GMT</pubDate>
			<description>I wrote some html code that lets the user choose an input from a drop down menu then it is passed into a servlet and that creates an HTML document with the output.  How does the servlet get the input from the user.  In other words, what code do i have to write in the servlet .java file to get the...</description>
			<content:encoded><![CDATA[<div>I wrote some html code that lets the user choose an input from a drop down menu then it is passed into a servlet and that creates an HTML document with the output.  How does the servlet get the input from the user.  In other words, what code do i have to write in the servlet .java file to get the input from the html?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>glendavis</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237460.html</guid>
		</item>
		<item>
			<title>Servlet to JSP</title>
			<link>http://www.daniweb.com/forums/thread237439.html</link>
			<pubDate>Tue, 10 Nov 2009 09:30:32 GMT</pubDate>
			<description><![CDATA[I need to pass a vector<String> from a servlet to a JSP file. The vector contains data retrieved by a database. Sending from the url is not suitable(because there is lot of data). So what is the proper way to do that?]]></description>
			<content:encoded><![CDATA[<div>I need to pass a vector&lt;String&gt; from a servlet to a JSP file. The vector contains data retrieved by a database. Sending from the url is not suitable(because there is lot of data). So what is the proper way to do that?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>isuruj</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237439.html</guid>
		</item>
		<item>
			<title>Display image on jsp page</title>
			<link>http://www.daniweb.com/forums/thread237438.html</link>
			<pubDate>Tue, 10 Nov 2009 09:29:41 GMT</pubDate>
			<description>I have to display image on jsp page with some text output. This image is already saved at a location parallel to web-inf and is generated dynamically using a servlet. I have used img tag html to display the image. Other outputs are taking their values from database. 
First problem is that image...</description>
			<content:encoded><![CDATA[<div>I have to display image on jsp page with some text output. This image is already saved at a location parallel to web-inf and is generated dynamically using a servlet. I have used img tag html to display the image. Other outputs are taking their values from database.<br />
First problem is that image will be taking time to display in comparision of other outputs from database. I have to refresh the page to get image on my page. <br />
Second is that if I save image in a folder parallel to web-inf in my project then it will not be displaying the image. <br />
Can I use any jsp functionality to display image with other outputs from database. I have used &quot;include&quot;. but it shows only that image and not other outputs.</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/thread237438.html</guid>
		</item>
		<item>
			<title>onChange</title>
			<link>http://www.daniweb.com/forums/thread237407.html</link>
			<pubDate>Tue, 10 Nov 2009 07:06:53 GMT</pubDate>
			<description>How to trigger onChange event if the same option value is selected from the dropdown list. 
 
Presently, only the same value is chosen by selecting different option value and then the same value. Is there any overloading possible for onChange function 
 
Thanks in Advance</description>
			<content:encoded><![CDATA[<div>How to trigger onChange event if the same option value is selected from the dropdown list.<br />
<br />
Presently, only the same value is chosen by selecting different option value and then the same value. Is there any overloading possible for onChange function<br />
<br />
Thanks in Advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>Pranesh_Ashrit</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237407.html</guid>
		</item>
		<item>
			<title>Query on Dropdown list</title>
			<link>http://www.daniweb.com/forums/thread237402.html</link>
			<pubDate>Tue, 10 Nov 2009 06:28:34 GMT</pubDate>
			<description><![CDATA[I have three dropdown list. Each has "Select" as the first option. 
 
The user shall choose atleast one option from atleast one dropdown list. if not an alert has to shown. 
 
How to accomplish this?]]></description>
			<content:encoded><![CDATA[<div>I have three dropdown list. Each has &quot;Select&quot; as the first option.<br />
<br />
The user shall choose atleast one option from atleast one dropdown list. if not an alert has to shown.<br />
<br />
How to accomplish this?</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>Pranesh_Ashrit</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237402.html</guid>
		</item>
		<item>
			<title>Increment value of MySQL columnJSP button</title>
			<link>http://www.daniweb.com/forums/thread237310.html</link>
			<pubDate>Mon, 09 Nov 2009 20:48:56 GMT</pubDate>
			<description><![CDATA[the following is the code: 
 
  <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>...]]></description>
			<content:encoded><![CDATA[<div>the following is the code:<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;%@ page import=&quot;java.util.*&quot; import=&quot;java.sql.*&quot; import=&quot;java.io.*&quot; 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;%<br />
Integer hit = 0;<br />
Connection con = null;<br />
Statement stmt=null;<br />
ResultSet rs = null;<br />
%&gt;<br />
<br />
&lt;%<br />
try<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  out.println();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Class.forName(&quot;com.mysql.jdbc.Driver&quot;).newInstance();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  con = DriverManager.getConnection(&quot;jdbc:mysql://localhost/lab2&quot;,&quot;root&quot;,&quot;root&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  stmt=con.createStatement();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  rs=stmt.executeQuery(&quot;SELECT hitCount from table1&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hit = rs.getInt(&quot;hitCount&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hit = hit + 1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs=stmt.executeQuery(&quot;UPDATE table1 set hitCount=10&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rs.close(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stmt.close(); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; con.close();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
}<br />
catch(Exception ex)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  out.println(ex);<br />
}<br />
<br />
%&gt;<br />
<br />
<br />
&nbsp;<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 />
<br />
<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;Welcome!!&lt;/title&gt;<br />
&lt;script language=&quot;javascript&quot;&gt;<br />
var hitCount=0;<br />
var jsvar=&quot;Hello World&quot;;<br />
function counter()<br />
{<br />
hitCount = hitCount + 1;<br />
alert(hitCount);<br />
<br />
}<br />
<br />
<br />
&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;FORM name=&quot;welcome&quot; method=&quot;post&quot;&gt;<br />
&lt;marquee&gt; Welcome to the Tic-Tac-Toe game!!!!&lt;/marquee&gt;<br />
&lt;table width=&quot;100%&quot; border=0 cellspacing=0 cellpadding=0 align=center&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;&lt;br&gt;&lt;/br&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
&lt;div align=&quot;center&quot;&gt; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;images/tictacimg.jpg&quot; name=&quot;1.jpg&quot;&gt;&lt;/img&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;br&gt;&lt;/br&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 below to start the game&lt;/span&gt;&lt;br&gt;&lt;/br&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &lt;/div&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&lt;td&gt;<br />
&lt;div align=&quot;center&quot;&gt;<br />
&lt;input type=&quot;button&quot; name=&quot;start&quot; value=&quot;START GAME&quot; onClick=&quot;counter()&quot;&gt;&lt;/input&gt;<br />
&lt;/div&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;&lt;td&gt;&lt;div id='counter' style=&quot;display:&quot;&gt;&lt;%= hit %&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;<br />
<br />
&lt;/table&gt;<br />
&lt;/FORM&gt; <br />
&lt;/body&gt;<br />
&lt;/html&gt;</pre><br />
With the above I m not able to increment the value of hitCount in the MySQL each time when the button is clicked..<br />
tell me wats wrong with my 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/thread237310.html</guid>
		</item>
		<item>
			<title>Table locked and session was invalidated</title>
			<link>http://www.daniweb.com/forums/thread237207.html</link>
			<pubDate>Mon, 09 Nov 2009 11:41:22 GMT</pubDate>
			<description>I have a simple question, I developed a java application, which runs on Oracle application server and Oracle database. This application depends on multiple JSPs on which multiple users can access a single JSP in the same time, some problems occurs due to the excessive usage of this application and...</description>
			<content:encoded><![CDATA[<div>I have a simple question, I developed a java application, which runs on Oracle application server and Oracle database. This application depends on multiple JSPs on which multiple users can access a single JSP in the same time, some problems occurs due to the excessive usage of this application and I have some questions about them:<br />
<br />
1. Is there any danger or disadvantages in connecting to the database using the jdbc directly from the JSP ?!!<br />
<br />
2. An error occurs almost once a week (most probably at the point of time when an excessive usage happens). This error stops the users from submitting or accessing the some JSPs. I ran the following query on the DB to find any locked items:<br />
<br />
SELECT o.owner, o.object_name, o.object_type, o.last_ddl_time, o.status,l.session_id, l.oracle_username, l.locked_mode<br />
FROM dba_objects o, gv$locked_object l<br />
WHERE o.object_id = l.object_id; <br />
<br />
I found that the table I use to select from in the halted JSPs is a result of this query.<br />
<br />
In order to solve this problem temporarily, i use the sql developer to add a record to this table and commit, i find that the problem is solved and the halted jsps involved are running.<br />
<br />
These are the exceptions that appears in the log files of the application server right after I press commit:<br />
<br />
	a.java.lang.IllegalStateException: Session was invalidated (all the time)<br />
	b.java.sql.SQLException: Closed Connection (some times)<br />
<br />
I do not know exactly where to start debugging, since i use synchronization in all of my code. Also I made sure that each user accessing the same JSP has a separate connection.<br />
<br />
Thanks in advance</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>tarek.mostafa</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237207.html</guid>
		</item>
		<item>
			<title>Eclipse Tomcat Not Responding</title>
			<link>http://www.daniweb.com/forums/thread237149.html</link>
			<pubDate>Mon, 09 Nov 2009 06:51:28 GMT</pubDate>
			<description><![CDATA[Hi Everyone  
 
  I've Installed Myeclipse and Tomcat 6.x , Everythings fine , the Server starts in 60 ms time which is not usual , I mean it'll take loger time.  Eclipse shows that server is started , but when I run the  
project , There's nothing happens , not a single msg or anything  
 
tried a...]]></description>
			<content:encoded><![CDATA[<div>Hi Everyone <br />
<br />
  I've Installed Myeclipse and Tomcat 6.x , Everythings fine , the Server starts in 60 ms time which is not usual , I mean it'll take loger time.  Eclipse shows that server is started , but when I run the <br />
project , There's nothing happens , not a single msg or anything <br />
<br />
tried a lot , hope you'll help</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>vjlogin</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread237149.html</guid>
		</item>
		<item>
			<title>sending email by using JSP</title>
			<link>http://www.daniweb.com/forums/thread236973.html</link>
			<pubDate>Sun, 08 Nov 2009 12:04:26 GMT</pubDate>
			<description><![CDATA[hey everybody i have question regarding JSP 
i'm new to this language and it's required from me to send emails by jsp and i'm using dreamweaver for that  
i worked and did the codes but still get errors: 
type Exception report 
 
message  
 
description The server encountered an internal error ()...]]></description>
			<content:encoded><![CDATA[<div>hey everybody i have question regarding JSP<br />
i'm new to this language and it's required from me to send emails by jsp and i'm using dreamweaver for that <br />
i worked and did the codes but still get errors:<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: 20 in the jsp file: /SendMail.jsp<br />
Authenticator cannot be resolved to a type<br />
17: 	props.put(&quot;mail.debug&quot;, &quot;true&quot;);<br />
18: 	props.put (&quot;mail.smtp.starttls.enable&quot;, &quot;true&quot;);<br />
19:  	props.put(&quot;mail.transport.protocol&quot;, &quot;smtp&quot;);<br />
20: 	Authenticator auth = new Authenticator() {<br />
21: protected PasswordAuthentication getPasswordAuthentication(){<br />
22: return new PasswordAuthentication(&quot;XXXXXX&quot;, &quot;XXXXXX&quot;);<br />
23: }<br />
<br />
<br />
An error occurred at line: 20 in the jsp file: /SendMail.jsp<br />
Authenticator cannot be resolved to a type<br />
17: 	props.put(&quot;mail.debug&quot;, &quot;true&quot;);<br />
18: 	props.put (&quot;mail.smtp.starttls.enable&quot;, &quot;true&quot;);<br />
19:  	props.put(&quot;mail.transport.protocol&quot;, &quot;smtp&quot;);<br />
20: 	Authenticator auth = new Authenticator() {<br />
21: protected PasswordAuthentication getPasswordAuthentication(){<br />
22: return new PasswordAuthentication(&quot;XXXXXXXX&quot;, &quot;XXXXX&quot;);<br />
23: }<br />
<br />
================================================<br />
<br />
The jsp page :<br />
<br />
<br />
 <pre style="margin:20px; line-height:13px">&lt;%@ page import=&quot;java.util.*&quot; %&gt;<br />
&lt;%@ page import=&quot;javax.mail.*&quot; %&gt;<br />
&lt;%@ page import=&quot;javax.mail.internet.*&quot; %&gt;<br />
&lt;%@ page import=&quot;javax.activation.*&quot; %&gt;<br />
&nbsp; <br />
&lt;%<br />
<br />
//&nbsp; public static void main (String args&#91;&#93;) throws Exception { <br />
&nbsp; &nbsp; String host = &quot;XXXXXXXXX&quot;; <br />
&nbsp; &nbsp; String to = &quot;XXXXXXXXXX&quot;; <br />
&nbsp; &nbsp; String from = &quot;XXXXXXXXXX&quot;; <br />
&nbsp; &nbsp; Properties props = System.getProperties();<br />
&nbsp; &nbsp; props.put(&quot;mail.smtp.host&quot;, host); <br />
&nbsp; &nbsp; props.put(&quot;mail.smtp.auth&quot;,&quot;true&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; props.put(&quot;mail.smtp.port&quot;, &quot;25&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; props.put(&quot;mail.debug&quot;, &quot;true&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; props.put (&quot;mail.smtp.starttls.enable&quot;, &quot;true&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  props.put(&quot;mail.transport.protocol&quot;, &quot;smtp&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; Session session = Session.getDefaultInstance(props, null); <br />
&nbsp; &nbsp; session.setDebug(true); <br />
&nbsp; &nbsp; MimeMessage message = new MimeMessage(session); <br />
&nbsp; &nbsp; message.setFrom(new InternetAddress(from)); <br />
&nbsp; &nbsp; message.addRecipient(Message.RecipientType.TO,&nbsp; <br />
&nbsp; &nbsp; &nbsp; new InternetAddress(to));&nbsp;  <br />
&nbsp; &nbsp; message.setSubject(&quot;Hello JavaMail&quot;); <br />
&nbsp; &nbsp; message.setText(&quot;Welcome to JavaMail&quot;); <br />
&nbsp; &nbsp; // Send message <br />
&nbsp; &nbsp; Transport.send(message); <br />
&nbsp;  <br />
//}<br />
%&gt;</pre></div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum24.html">JSP</category>
			<dc:creator>amer2812</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread236973.html</guid>
		</item>
		<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>
	</channel>
</rss>
