<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Java Server Pages Forum RSS Feed (Replies Included)</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the 'Java Server Pages' forum at Programmer's Heaven, including replies.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 11:21:40 -0700</pubDate>
    <lastBuildDate>Wed, 19 Jun 2013 11:21:40 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Re: Programming a chat room...</title>
      <link>http://www.programmersheaven.com/mb/jsp/211214/426250/re-programming-a-chat-room/#426250</link>
      <description>I wanna have the same tutorial, it will help me cause i want to do the same project. Send it at fabrilous@yahoo.fr&lt;br /&gt;
Thx a loooooooot!!!!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/211214/426250/re-programming-a-chat-room/#426250</guid>
      <pubDate>Sun, 11 Dec 2011 09:24:46 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>pls i need help on pagination in jsp</title>
      <link>http://www.programmersheaven.com/mb/jsp/425858/425858/pls-i-need-help-on-pagination-in-jsp/</link>
      <description>I want to paginate my jsp page to have just 10 records at a time then my page will have previous and next links to go through the records and hw can achieve it with JSTL here is my code so far &lt;br /&gt;
&amp;lt;sql:query var="fnames" datasource="myDB"&amp;gt;&lt;br /&gt;
select * from employee&lt;br /&gt;
 &amp;lt;/sql:query&amp;gt;&lt;br /&gt;
&amp;lt;table&amp;gt;&lt;br /&gt;
&amp;lt;c:forEach var="employee" values="${fnames.rows}"&amp;gt;&lt;br /&gt;
${employee.firstname}&lt;br /&gt;
&amp;lt;/c:forEach&amp;gt;&amp;lt;/table&amp;gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/425858/425858/pls-i-need-help-on-pagination-in-jsp/</guid>
      <pubDate>Thu, 17 Nov 2011 03:26:51 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>pls i need help on pagination in jsp</title>
      <link>http://www.programmersheaven.com/mb/jsp/425857/425857/pls-i-need-help-on-pagination-in-jsp/</link>
      <description>I want to paginate my jsp page to have just 10 records at a time then my page will have previous and next links to go through the records and hw can achieve it with JSTL here is my code so far &lt;br /&gt;
&amp;lt;sql:query var="fnames" datasource="myDB"&amp;gt;&lt;br /&gt;
select * from employee&lt;br /&gt;
 &amp;lt;/sql:query&amp;gt;&lt;br /&gt;
&amp;lt;table&amp;gt;&lt;br /&gt;
&amp;lt;c:forEach var="employee" values="${fnames.rows}"&amp;gt;&lt;br /&gt;
${employee.firstname}&lt;br /&gt;
&amp;lt;/c:forEach&amp;gt;&amp;lt;/table&amp;gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/425857/425857/pls-i-need-help-on-pagination-in-jsp/</guid>
      <pubDate>Thu, 17 Nov 2011 03:25:01 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>reliable host.</title>
      <link>http://www.programmersheaven.com/mb/jsp/422881/422881/reliable-host/</link>
      <description>Hello evryOne.please I have finish the development of my new project and i am in need of a web host. The break down of the proj is as follows:&lt;br /&gt;
&lt;br /&gt;
Server scripting language:   Jsp.&lt;br /&gt;
Database:                    Mysql database.&lt;br /&gt;
Server:                      Apache server5.1 or 6++.&lt;br /&gt;
&lt;br /&gt;
concurrent users of about 30 users.&lt;br /&gt;
&lt;br /&gt;
please anyone who does a web host that could provide me this features should please kindly contact me please.&lt;br /&gt;
One love(donmorris)</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/422881/422881/reliable-host/</guid>
      <pubDate>Wed, 30 Mar 2011 09:14:16 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: Running apache tomcat using ip address</title>
      <link>http://www.programmersheaven.com/mb/jsp/415240/421836/re-running-apache-tomcat-using-ip-address/#421836</link>
      <description>&lt;br /&gt;
make sure tomcat is up and running!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/415240/421836/re-running-apache-tomcat-using-ip-address/#421836</guid>
      <pubDate>Fri, 18 Feb 2011 14:02:19 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>How can I use Spring and Spring-MVC ?</title>
      <link>http://www.programmersheaven.com/mb/jsp/420761/420761/how-can-i-use-spring-and-spring-mvc-/</link>
      <description>How to best apply Spring, Spring MVC and Hibernate frameworks&lt;br /&gt;
I'm an individual programmer, developer and (in the corporate world, Only) I see a huge demand for the frameworks: Spring, Spring MVC, webflow, and Hibernate.  Popular today: Spring MVC, webflow, GWT.&lt;br /&gt;
&lt;br /&gt;
I've been going through the tutorials, and the technology looks awesome !  What I would like to know, is.. How can I apply these frameworks in building websites ?&lt;br /&gt;
&lt;br /&gt;
I can't imaging doing any kind of serious website building without a modern CMS or Portal layout (whether in Java/php-opensource),  And yes, MVC gives you the validation and authentication hooks to be used.  &lt;br /&gt;
&lt;br /&gt;
All the demo's on Spring, cover some elementary, contrived example.  &lt;br /&gt;
If I learn these technologies (and I'm well on my way), how do I put them into practice, and in what context (no pun intented) do I use them ? I don't want to rebuild a CMS system.  Maybe these are meant to be used in a Portal structured system.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/420761/420761/how-can-i-use-spring-and-spring-mvc-/</guid>
      <pubDate>Wed, 05 Jan 2011 13:31:56 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: SSL Socket HTTPS - no cipher suites in common</title>
      <link>http://www.programmersheaven.com/mb/jsp/371412/420194/re-ssl-socket-https---no-cipher-suites-in-common/#420194</link>
      <description>No.  I never solved it. &lt;br /&gt;
&lt;br /&gt;
Maybe you can register with an official signing company but you have to pay a fee to get that service.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/371412/420194/re-ssl-socket-https---no-cipher-suites-in-common/#420194</guid>
      <pubDate>Sun, 12 Dec 2010 20:07:32 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: SSL Socket HTTPS - no cipher suites in common</title>
      <link>http://www.programmersheaven.com/mb/jsp/371412/420193/re-ssl-socket-https---no-cipher-suites-in-common/#420193</link>
      <description>Did ytou solve this problem?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/371412/420193/re-ssl-socket-https---no-cipher-suites-in-common/#420193</guid>
      <pubDate>Sun, 12 Dec 2010 19:55:55 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: Running apache tomcat using ip address</title>
      <link>http://www.programmersheaven.com/mb/jsp/415240/415259/re-running-apache-tomcat-using-ip-address/#415259</link>
      <description>: Check your firewall settings.&lt;br /&gt;
--&amp;gt;Firewall shows that it is not blocking any communication regarding this i.p.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/415240/415259/re-running-apache-tomcat-using-ip-address/#415259</guid>
      <pubDate>Wed, 07 Apr 2010 20:43:20 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: Running apache tomcat using ip address</title>
      <link>http://www.programmersheaven.com/mb/jsp/415240/415243/re-running-apache-tomcat-using-ip-address/#415243</link>
      <description>Check your firewall settings.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/415240/415243/re-running-apache-tomcat-using-ip-address/#415243</guid>
      <pubDate>Wed, 07 Apr 2010 10:26:39 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Running apache tomcat using ip address</title>
      <link>http://www.programmersheaven.com/mb/jsp/415240/415240/running-apache-tomcat-using-ip-address/</link>
      <description>i am making a project on search engine across a LAN technologies being used are:-&lt;br /&gt;
&lt;br /&gt;
-Apache tomcat 6.0.16&lt;br /&gt;
-Java Server Pages.&lt;br /&gt;
-Servlets.&lt;br /&gt;
-HTML.&lt;br /&gt;
&lt;br /&gt;
The problem is that after entering the fields for registration, when user clicks on submit button then following error message is shown on the browser screen:-&lt;br /&gt;
&lt;br /&gt;
Unable to connect&lt;br /&gt;
&lt;br /&gt;
Firefox can't establish a connection to the server at 192.168.1.23:8080.&lt;br /&gt;
&lt;br /&gt;
i am running server as a localhost and using following fields within the form tag of jsp for directing it to a servlet MainController:-&lt;br /&gt;
&lt;br /&gt;
&amp;lt;form name="form1" method="post" action="http://192.168.1.23:8080/SearchEngineServer/MainController?ACTION=regist
erme"&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This problem is also there for existing user's when they try to login directly from home page.&lt;br /&gt;
&lt;br /&gt;
i am using MYSQL server database 5.0.&lt;br /&gt;
&lt;br /&gt;
Please help...</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/415240/415240/running-apache-tomcat-using-ip-address/</guid>
      <pubDate>Wed, 07 Apr 2010 07:20:12 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>UDP server</title>
      <link>http://www.programmersheaven.com/mb/jsp/415128/415128/udp-server/</link>
      <description>i'm newbie in java network programming,can anyone help me to explain anything about UDP server and client? thanx a lot!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/415128/415128/udp-server/</guid>
      <pubDate>Fri, 02 Apr 2010 21:42:35 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>serverside Java applet support check?</title>
      <link>http://www.programmersheaven.com/mb/jsp/414241/414241/serverside-java-applet-support-check/</link>
      <description>Is there a way to check Java applet support on the server?&lt;br /&gt;
&lt;br /&gt;
I noticed google analytics having a place listing how many visitors had Java applet support and wonder how they might do that check.  I'd like to serve different content based on knowing if the client's browser supports Java.&lt;br /&gt;
&lt;br /&gt;
I know the client could check it by having a small Java applet that sends a signal indicating support when it loads but I want to avoid slowing computers down just to make this test and I'd prefer putting everything on the server end.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/414241/414241/serverside-java-applet-support-check/</guid>
      <pubDate>Sat, 06 Mar 2010 00:35:50 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>load balancing through jsp/servlets</title>
      <link>http://www.programmersheaven.com/mb/jsp/411583/411583/load-balancing-through-jspservlets/</link>
      <description>Hai,&lt;br /&gt;
 &lt;br /&gt;
     Iam using Apache server2.2.14 on windows platform, For that server iam using  2 Apache tomcat 6.0.20 one is on C drive another one is on E drive. For load balancing iam using mod_jk, for my academic project, I want to develop a module like mod_jk to load balance those 2 tomcats by Apache server using java &amp;amp; j2EE,servlets , jsp's. Please let me know what are the API's that are available in apache to develop module like mod_jk, what are the concepts that i have to know?what are the books and web sites that i hava to refer?&lt;br /&gt;
Please help me.&lt;br /&gt;
 &lt;br /&gt;
     Thanking you,&lt;br /&gt;
 &lt;br /&gt;
Regards,&lt;br /&gt;
jarasadil &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/411583/411583/load-balancing-through-jspservlets/</guid>
      <pubDate>Wed, 06 Jan 2010 05:48:35 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: Programming a chat room...</title>
      <link>http://www.programmersheaven.com/mb/jsp/211214/411413/re-programming-a-chat-room/#411413</link>
      <description>Hi,&lt;br /&gt;
I'm also interested in developing a similar application. Can you send me the tutorial on developing a java chat server as well?&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/211214/411413/re-programming-a-chat-room/#411413</guid>
      <pubDate>Thu, 31 Dec 2009 04:44:12 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: Displaying BLOB in JSP</title>
      <link>http://www.programmersheaven.com/mb/jsp/375551/410300/re-displaying-blob-in-jsp/#410300</link>
      <description>please visit the URL:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://fdegrelle.over-blog.com/categorie-275139.html"&gt;http://fdegrelle.over-blog.com/categorie-275139.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
there is an example, hope it can give you some help&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.raqsoft.com"&gt;RAQ Report---Enjoy Products and Services of RAQSOFT &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/375551/410300/re-displaying-blob-in-jsp/#410300</guid>
      <pubDate>Thu, 03 Dec 2009 23:50:02 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: no pageEncoding</title>
      <link>http://www.programmersheaven.com/mb/jsp/391547/410298/re-no-pageencoding/#410298</link>
      <description>pageEncoding：The encoding used for the JSP page file, as well as &lt;br /&gt;
the response charset if no charset is specified by contentType. &lt;br /&gt;
&lt;br /&gt;
If this attribute is omitted, but a charset is specified for contentType, &lt;br /&gt;
that charset is also used of the page; if contentType doesn't specify a charset, ISO-8859-1 is used for a regular JSP page, and UTF-8 is used for a JSP Document. &lt;br /&gt;
&lt;br /&gt;
you can use response.setCharaterEncoding() to set the charset for jsp&lt;br /&gt;
&lt;br /&gt;
hope it helps&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.raqsoft.com/"&gt;RAQ Report---Enjoy Products and Services of RAQSOFT &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/391547/410298/re-no-pageencoding/#410298</guid>
      <pubDate>Thu, 03 Dec 2009 23:27:19 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: Inserting Date into Ms- Access Using jsp</title>
      <link>http://www.programmersheaven.com/mb/jsp/391909/410295/re-inserting-date-into-ms--access-using-jsp/#410295</link>
      <description>you can try to use the sql statement as:&lt;br /&gt;
"insert into Services(name, [date]) values(name,FormatdateTime('#yyyy-mm-dd#',strtodate(rDate)+')), rDate is the date."&lt;br /&gt;
&lt;br /&gt;
Hope it hopes&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.raqsoft.com/"&gt;RAQ Report---Enjoy Products and Services of RAQSOFT &lt;/a&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/391909/410295/re-inserting-date-into-ms--access-using-jsp/#410295</guid>
      <pubDate>Thu, 03 Dec 2009 23:17:59 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: Inserting Date into Ms- Access Using jsp</title>
      <link>http://www.programmersheaven.com/mb/jsp/391909/410294/re-inserting-date-into-ms--access-using-jsp/#410294</link>
      <description>you can try to use the sql statement as:&lt;br /&gt;
"insert into Services(name, [date]) values(name,FormatdateTime('#yyyy-mm-dd#',strtodate(rDate)+')), rDate is the date."&lt;br /&gt;
&lt;br /&gt;
Hope it hopes&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.raqsoft.com/"&gt;RAQ Report---Enjoy Products and Services of RAQSOFT &lt;/a&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/391909/410294/re-inserting-date-into-ms--access-using-jsp/#410294</guid>
      <pubDate>Thu, 03 Dec 2009 23:16:16 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: SSL Socket HTTPS - no cipher suites in common</title>
      <link>http://www.programmersheaven.com/mb/jsp/371412/409029/re-ssl-socket-https---no-cipher-suites-in-common/#409029</link>
      <description>Hi&lt;br /&gt;
&lt;br /&gt;
I'm stuck exactly with the same problem (set up an own HTTPS-Server). Did you come to any conclusion?&lt;br /&gt;
&lt;br /&gt;
cheerioh&lt;br /&gt;
SiS&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/371412/409029/re-ssl-socket-https---no-cipher-suites-in-common/#409029</guid>
      <pubDate>Tue, 10 Nov 2009 08:26:18 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Re: Inserting Date into Ms- Access Using jsp</title>
      <link>http://www.programmersheaven.com/mb/jsp/391909/408799/re-inserting-date-into-ms--access-using-jsp/#408799</link>
      <description>&lt;span style="color: Green;"&gt;Have a look at this  !&lt;/span&gt;&lt;br /&gt;
&lt;a href="http://forums.sun.com/thread.jspa?threadID=5372982"&gt;http://forums.sun.com/thread.jspa?threadID=5372982&lt;/a&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/391909/408799/re-inserting-date-into-ms--access-using-jsp/#408799</guid>
      <pubDate>Tue, 03 Nov 2009 21:57:46 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>HELP.. LOGIN IN JSP USING MYSQLYOG</title>
      <link>http://www.programmersheaven.com/mb/jsp/401295/401295/help-login-in-jsp-using-mysqlyog/</link>
      <description>&lt;strong&gt;THE ERROR:&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="sourcecode"&gt;org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 21 in the jsp file: /registration.jsp
Duplicate local variable rs
18: 		Class.forName("com.mysql.jdbc.Driver");
19: 		Connection con =DriverManager.getConnection ("jdbc:mysql://localhost:8080/dbstudent", "root", "");
20: 		Statement stmt = con.createStatement();	
21: 		ResultSet rs = stmt.executeQuery("Select * from tbladmin where user='" + user + "'");
22: 		while(rs.next())
23: 		{
24: 			if(pass.equals(rs.getString("pass")))	

&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;MY CODE:&lt;/strong&gt;&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;%@ page import="java.sql.*,java.io.*" %&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Registration&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;%


String user = request.getParameter("username");
String pass = request.getParameter("pass");



try {
		Class.forName("com.mysql.jdbc.Driver");
		Connection con =DriverManager.getConnection ("jdbc:mysql://localhost/dbstudent", "root", "");
		Statement stmt = con.createStatement();	
		ResultSet rs = stmt.executeQuery("Select * from tbladmin where user='" + user + "'");
		while(rs.next())
		{
			if(pass.equals(rs.getString("pass")))	
			{
		%&amp;gt;
Registration&amp;lt;br&amp;gt;
&amp;lt;form action="../glenenaje/confirm.jsp" method=post&amp;gt;
Student No: &amp;lt;input type=text name=studno&amp;gt;&amp;lt;br&amp;gt;
Name: &amp;lt;input type=text name=studname&amp;gt;&amp;lt;br&amp;gt;
Gender:&amp;lt;br&amp;gt;
&amp;lt;input type=radio name=gender value=Male&amp;gt;Male&amp;lt;br&amp;gt;
&amp;lt;input type=radio name=gender value=Female&amp;gt;Female&amp;lt;br&amp;gt;
Course: &amp;lt;input type=text name=course value=DCET&amp;gt;&amp;lt;br&amp;gt;
&amp;lt;input type=submit value=Register&amp;gt;&amp;lt;br&amp;gt;
&amp;lt;/form&amp;gt;
		&amp;lt;%

			}
			else
			out.println("Incorrect Password");
		}







			rs.close();					
			stmt.close();					
			con.close();


	     } 
	catch (SQLException e) 
	     {
			throw new ServletException("Servlet Could not display records.", e);
	     } 

%&amp;gt;


&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/401295/401295/help-login-in-jsp-using-mysqlyog/</guid>
      <pubDate>Tue, 29 Sep 2009 23:23:52 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>Does a Portlet JSP get complied into a servlet?</title>
      <link>http://www.programmersheaven.com/mb/jsp/396469/396469/does-a-portlet-jsp-get-complied-into-a-servlet/</link>
      <description>Hi&lt;br /&gt;
&lt;br /&gt;
I am using the IBM JSP Server Portlet. I have a content management system that allows a content editor to change HTML content in the JSP. The updated JSP file is then deployed to a Network File System that is essentially mounted to the Portal Application server where the JSP Server portlet is installed. My question is, Does a portlet JSP get complied into a servlet every time a new version of that JSP is deployed with it's content changed?&lt;br /&gt;
&lt;br /&gt;
Thank you</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/396469/396469/does-a-portlet-jsp-get-complied-into-a-servlet/</guid>
      <pubDate>Thu, 03 Sep 2009 19:52:55 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>SQLException</title>
      <link>http://www.programmersheaven.com/mb/jsp/396456/396456/sqlexception/</link>
      <description>Hi,&lt;br /&gt;
I am trying to view all  records in a Database through an html page called via a servlet. However the page  returns the first row(record) only. I keep getting the following error in Apache Tomcat console window:&lt;br /&gt;
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Invalid Descriptor Index&lt;br /&gt;
&lt;br /&gt;
below is a code snippet from my servlet&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
Statement myStatement = databaseConnection.createStatement();  ResultSet results = myStatement.executeQuery("SELECT * FROM Classmates");

out.println("&amp;lt;TABLE BORDER=2, HSPACE=7&amp;gt;");
out.println("&amp;lt;TH&amp;gt;Name&amp;lt;TH&amp;gt;Address&amp;lt;TH&amp;gt;Town&amp;lt;TH&amp;gt;County&amp;lt
;TH&amp;gt;Telephone&amp;lt;TH&amp;gt;");
while (results.next())
{
out.println("&amp;lt;TR&amp;gt;");
out.println("&amp;lt;TD&amp;gt;" + results.getString(1) + "&amp;lt;/TD&amp;gt;");
out.println("&amp;lt;TD&amp;gt;" + results.getString(2) + "&amp;lt;/TD&amp;gt;");
out.println("&amp;lt;TD&amp;gt;" + results.getString(3) + "&amp;lt;/TD&amp;gt;");
out.println("&amp;lt;TD&amp;gt;" + results.getString(4) + "&amp;lt;/TD&amp;gt;");
out.println("&amp;lt;TD&amp;gt;" + results.getString(5) + "&amp;lt;/TD&amp;gt;");
out.println("&amp;lt;TD&amp;gt;" + results.getString(6) + "&amp;lt;/TD&amp;gt;");
out.println("&amp;lt;/TR&amp;gt;");
}
results.close();
out.println("&amp;lt;/TABLE&amp;gt;");
out.println("&amp;lt;/BODY&amp;gt;&amp;lt;/HTML&amp;gt;");
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
How can i fix this error?&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/396456/396456/sqlexception/</guid>
      <pubDate>Thu, 03 Sep 2009 15:56:34 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
    <item>
      <title>******Need help on shopping cart javaBean code*******</title>
      <link>http://www.programmersheaven.com/mb/jsp/394333/394333/need-help-on-shopping-cart-javabean-code/</link>
      <description>Compiling the following code outputs the error that the javaBean curItem does not exist. However, my other code depends on a javaBean curItem. I don't understand why I cannot update the quantity property of a specific object (curItem) in the arrayList lineitems if I am declaring curItem to be an object inside lineitems using the var attribute. Please clarify and perhaps help update the quantity property in an object in lineitems using a curItem javabean. Thanks!&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;&amp;lt;%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %&amp;gt;
&amp;lt;%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %&amp;gt;
&amp;lt;%@ taglib prefix="wxshop" uri="http://www.wrox.com/begjsp/eshop-functions-taglib" %&amp;gt;
 
&amp;lt;%@ page session="true" %&amp;gt;
 
&amp;lt;c:set var="EXAMPLE" value="/example1"/&amp;gt;
&amp;lt;c:set var="SHOP_PAGE" value="/estore.jsp"/&amp;gt;
&amp;lt;c:set var="CART_PAGE" value="/shopcart.jsp"/&amp;gt;
 
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Endivian.com Shopping Cart&amp;lt;/title&amp;gt;
&amp;lt;link rel=stylesheet type="text/css" href="store.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;c:if test="${!(empty param.sku)}"&amp;gt;
&amp;lt;c:set var="prod" value="${wxshop:getItem(param.sku)}"/&amp;gt;
&amp;lt;/c:if&amp;gt;
 
&amp;lt;jsp:useBean id="lineitems" class="java.util.ArrayList" scope="session"/&amp;gt;
 
&amp;lt;c:choose&amp;gt;
&amp;lt;c:when test="${param.action == 'clear'}"&amp;gt;
${wxshop:clearList(lineitems)}
&amp;lt;/c:when&amp;gt;
 
&amp;lt;c:when test="${param.action == 'inc' || param.action=='buy'}"&amp;gt;
&amp;lt;c:set var="found" value="false"/&amp;gt;
 
&amp;lt;c:forEach var="curItem" items="${lineitems}"&amp;gt;
 
&amp;lt;c:if test="${(curItem.sku) == (prod.sku)}"&amp;gt;
&amp;lt;jsp:setProperty name="curItem" property="quantity"
value="${curItem.quantity  +1}"/&amp;gt;+
+&amp;lt;c:set var="found" value="true" /&amp;gt;+
+&amp;lt;/c:if&amp;gt;+        
+&amp;lt;/c:forEach&amp;gt;+
+&amp;lt;c:if test="${!found}"&amp;gt;+
+&amp;lt;c:remove var="tmpitem"/&amp;gt;+
+&amp;lt;jsp:useBean id="tmpitem" class="com.wrox.begjsp.ch03.LineItem"&amp;gt;+
+&amp;lt;jsp:setProperty name="tmpitem" property="quantity" value="1"/&amp;gt;+ 
+&amp;lt;jsp:setProperty name="tmpitem" property="sku" value="${prod.sku}"/&amp;gt;+ 
+&amp;lt;jsp:setProperty name="tmpitem" property="desc" value="${prod.name}"/&amp;gt;+ 
+&amp;lt;jsp:setProperty name="tmpitem" property="price" value="${prod.price}"/&amp;gt;+ 
+&amp;lt;/jsp:useBean&amp;gt;+
+${wxshop:addList(lineitems, tmpitem)}+
+&amp;lt;/c:if&amp;gt;+
+&amp;lt;/c:when&amp;gt;+
+&amp;lt;/c:choose&amp;gt;+  
 
+&amp;lt;c:set var="total" value="0"/&amp;gt;+
+&amp;lt;table width="640"&amp;gt;+
+&amp;lt;tr&amp;gt;&amp;lt;td class="mainHead"&amp;gt;Wrox JSTL Web Store&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;+
+&amp;lt;tr&amp;gt;+
+&amp;lt;td&amp;gt;+
+&amp;lt;h1&amp;gt;&amp;lt;/h1&amp;gt;+
+&amp;lt;table border="1" width="640"&amp;gt;+
 
+&amp;lt;tr&amp;gt;&amp;lt;th colspan="5" class="shopCart"&amp;gt;Your Shopping Cart&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;+
+&amp;lt;tr&amp;gt;&amp;lt;th align="left"&amp;gt;Quantity&amp;lt;/th&amp;gt;&amp;lt;th align="left"&amp;gt;Item&amp;lt;/th&amp;gt;&amp;lt;th align="right"&amp;gt;Price&amp;lt;/th&amp;gt;+
+&amp;lt;th align="right"&amp;gt;Extended&amp;lt;/th&amp;gt;+
+&amp;lt;th align="left"&amp;gt;Add&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;+
+&amp;lt;c:forEach var="curItem" items="${lineitems}"&amp;gt;+
+&amp;lt;c:set var="extended" value="${curItem.quantity * curItem.price}"/&amp;gt;+
+&amp;lt;c:set var="total" value="${total+  extended}"/&amp;gt;   
&amp;lt;tr&amp;gt;
&amp;lt;td&amp;gt;${curItem.quantity}&amp;lt;/td&amp;gt;
&amp;lt;td&amp;gt;${curItem.desc}&amp;lt;/td&amp;gt;
&amp;lt;td align="right"&amp;gt;
&amp;lt;fmt:formatNumber value="${curItem.price / 100}" type="currency"/&amp;gt;
&amp;lt;/td&amp;gt;
&amp;lt;td align="right"&amp;gt;
&amp;lt;fmt:formatNumber value="${extended / 100}" type="currency"/&amp;gt;
&amp;lt;/td&amp;gt;
&amp;lt;td&amp;gt;
 
&amp;lt;c:url value="${CART_PAGE}" var="localURL"&amp;gt;
&amp;lt;c:param name="action" value="inc"/&amp;gt;
&amp;lt;c:param name="sku" value="${curItem.sku}"/&amp;gt;
&amp;lt;/c:url&amp;gt;
&amp;lt;a href="${localURL}"&amp;gt;&amp;lt;b&amp;gt;Add 1&amp;lt;/b&amp;gt;&amp;lt;/a&amp;gt;
&amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&amp;lt;/c:forEach&amp;gt;
&amp;lt;tr&amp;gt;
&amp;lt;td colspan="5"&amp;gt;  
&amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&amp;lt;tr&amp;gt;
&amp;lt;td colspan="3" align="right"&amp;gt;&amp;lt;b&amp;gt;Total:&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;
&amp;lt;td align="right" class="grandTotal"&amp;gt;
&amp;lt;fmt:formatNumber value="${total / 100}" type="currency"/&amp;gt;
&amp;lt;/td&amp;gt;
&amp;lt;td&amp;gt; &amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
 
&amp;lt;tr&amp;gt;
&amp;lt;td colspan="5"&amp;gt;
&amp;lt;c:url value="${CART_PAGE}" var="localURL"&amp;gt;
&amp;lt;c:param name="action" value="clear"/&amp;gt;
&amp;lt;/c:url&amp;gt;
&amp;lt;a href="${localURL}"&amp;gt;Clear the cart&amp;lt;/a&amp;gt;
&amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
 
 
&amp;lt;tr&amp;gt;
&amp;lt;td colspan="5"&amp;gt;
&amp;lt;c:url value="${SHOP_PAGE}" var="localURL"/&amp;gt;
&amp;lt;a href="${localURL}"&amp;gt;Return to Shopping&amp;lt;/a&amp;gt;
&amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;Error(34,37):  This bean name does not exist.
&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/jsp/394333/394333/need-help-on-shopping-cart-javabean-code/</guid>
      <pubDate>Tue, 28 Jul 2009 17:31:23 -0700</pubDate>
      <category>Java Server Pages</category>
    </item>
  </channel>
</rss>