<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>Christian Web Host, Java Programming - Cheap Web Hosting Blog</title>
	<link>http://jsp.armadillowebhosting.com</link>
	<description>WeBlog about Java developing and web site hosting</description>
	<pubDate>Tue, 10 Jun 2008 16:10:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>
	<language>en</language>
			<item>
		<title>702 Part V:  (1 on 1 web hosting) Internet Applications TABLE 20-1 VOTE.CONF</title>
		<link>http://jsp.armadillowebhosting.com/jsp/702-part-v-1-on-1-web-hosting-internet-applications-table-20-1-voteconf/</link>
		<comments>http://jsp.armadillowebhosting.com/jsp/702-part-v-1-on-1-web-hosting-internet-applications-table-20-1-voteconf/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 16:10:35 +0000</pubDate>
		<dc:creator>humphreyblogart</dc:creator>
		
	<category>JSP</category>
		<guid isPermaLink="false">http://jsp.armadillowebhosting.com/jsp/702-part-v-1-on-1-web-hosting-internet-applications-table-20-1-voteconf/</guid>
		<description><![CDATA[702 Part V: Internet Applications   TABLE 20-1 VOTE.CONF VARIABLES (Continued)   Configuration Variable Purpose   $ROOT_PATH Set to the root path of the application. $REL_ROOT_PATH Relative path to the root directory. $REL_APP_PATH Relative application path as seen from a Web browser. $TEMPLATE_DIR The fully qualified path to the template directory. $CLASS_DIR [...]]]></description>
			<content:encoded><![CDATA[<p>702 Part V: Internet Applications   TABLE 20-1 VOTE.CONF VARIABLES (Continued)   Configuration Variable Purpose   $ROOT_PATH Set to the root path of the application. $REL_ROOT_PATH Relative path to the root directory. $REL_APP_PATH Relative application path as seen from a Web browser. $TEMPLATE_DIR The fully qualified path to the template directory. $CLASS_DIR The fully qualified path to the class directory. $REL_TEMPLATE_DIR The Web-relative path to the template directory used. $VOTE_CLASS Name of the Vote class file. $VOTE_DB_URL The fully qualified URL for the database used to store the   VOTE information.  $VOTE_TBL Name of the VOTES table in the database.  $COOKIE_EXPIRATION_TIME The amount of time, in seconds, that specifies the cookie   expiration time for a vote.   You may need to tailor to your own system s requirements the directory structure used in the vote.conf file supplied in the ch20 directory on the CD-ROM. Here  is what the current directory structure looks like:   /&#8212;evoknow   |   +&#8212;intranet   |   +&#8212;htdocs ($ROOT_PATH)   |   +&#8212;vote (Voting Tool Applications)   |   +&#8212;apps (apps and configuration files)   |   +&#8212;class (class files)   |   +&#8212;templates (HTML templates)   |   +&#8212;images (images for the templates)
</p>
]]></content:encoded>
			<wfw:commentRSS>http://jsp.armadillowebhosting.com/jsp/702-part-v-1-on-1-web-hosting-internet-applications-table-20-1-voteconf/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Chapter 20: Web Site Tools 701 4. The  (Web site builder)</title>
		<link>http://jsp.armadillowebhosting.com/jsp/chapter-20-web-site-tools-701-4-the-web-site-builder/</link>
		<comments>http://jsp.armadillowebhosting.com/jsp/chapter-20-web-site-tools-701-4-the-web-site-builder/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 04:28:48 +0000</pubDate>
		<dc:creator>humphreyblogart</dc:creator>
		
	<category>JSP</category>
		<guid isPermaLink="false">http://jsp.armadillowebhosting.com/jsp/chapter-20-web-site-tools-701-4-the-web-site-builder/</guid>
		<description><![CDATA[Chapter 20: Web Site Tools 701   4. The row containing the number of votes is retrieved by fetching it from  the $result variable using the fetchRow() method.  5. Finally, the number of votes is returned from this method.  Creating the Application  Configuration Files   Like every other application [...]]]></description>
			<content:encoded><![CDATA[<p>Chapter 20: Web Site Tools 701   4. The row containing the number of votes is retrieved by fetching it from  the $result variable using the fetchRow() method.  5. Finally, the number of votes is returned from this method.  Creating the Application  Configuration Files   Like every other application developed in this book, the voting tool application also  uses a standard set of configuration and error files. These files are discussed in the  following sections.   Creating the main configuration file   The primary configuration file for the entire system is called vote.conf. Table 20-1  describes each configuration variable.   TABLE 20-1 VOTE.CONF VARIABLES   Configuration Variable Purpose  $PEAR_DIR Set to the directory containing the PEAR package;  specifically, the DB module needed for class.DBI.php in  our application framework.  $PHPLIB_DIR Set to the PHPLIB directory, which contains the PHPLIB  packages; specifically, the template.inc package  needed for template manipulation.  $APP_FRAMEWORK_DIR Set to our application framework directory.  $PATH Set to the combined directory path consisting of  $PEAR_DIR, $PHPLIB_DIR, and  $APP_FRAMEWORK_DIR. This path is used with the  ini_set() method to redefine the php.ini entry for  include_path to include $PATH ahead of the default path.  This enables PHP to find our application framework,  PHPLIB, and PEAR-related files.  $APPLICATION_NAME Internal name of the application.  $DEFAULT_LANGUAGE Set to the two-digit default language code.  Continued
</p>
]]></content:encoded>
			<wfw:commentRSS>http://jsp.armadillowebhosting.com/jsp/chapter-20-web-site-tools-701-4-the-web-site-builder/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>700 Part V:  (Web design) Internet Applications addVote() This method</title>
		<link>http://jsp.armadillowebhosting.com/jsp/700-part-v-web-design-internet-applications-addvote-this-method/</link>
		<comments>http://jsp.armadillowebhosting.com/jsp/700-part-v-web-design-internet-applications-addvote-this-method/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 17:24:22 +0000</pubDate>
		<dc:creator>humphreyblogart</dc:creator>
		
	<category>JSP</category>
		<guid isPermaLink="false">http://jsp.armadillowebhosting.com/jsp/700-part-v-web-design-internet-applications-addvote-this-method/</guid>
		<description><![CDATA[700 Part V: Internet Applications   addVote()   This method is used to add a vote to the database. This is how it works:   . It calls the setPollID() method to set the given poll ID to the member  variable pid.  . It stores the current time in a [...]]]></description>
			<content:encoded><![CDATA[<p>700 Part V: Internet Applications   addVote()   This method is used to add a vote to the database. This is how it works:   . It calls the setPollID() method to set the given poll ID to the member  variable pid.  . It stores the current time in a variable named $curTime.  . It builds a query statement, $stmt, to insert the poll ID, the given vote,  and the current timestamp into the database.  . Using the DBI object ($this->dbi), the $stmt statement is run via the  $this->dbi->query() method in the DBI object.  . The method returns TRUE or FALSE depending on the status of the insertion operation.  getVoteCountByChoice()   This method is used to retrieve the number of votes per option for a given poll. This  is how it works:   1. It first calls the setPollID() method to set the given poll ID to the member variable pid.  2. It builds a query statement, $stmt, to retrieve the number of votes posted  for the given option and poll ID.  3. Using the DBI object ($this->dbi), the $stmt statement is run via the  $this->dbi->query() method in the DBI object. The result of the query  is stored in the $result object.  4. The row containing the number of votes is retrieved by fetching it from  the $result variable using the fetchRow() method.  5. Finally, the number of votes is returned from this method.  getTotalVoteCount()   This method is used to retrieve the total number of votes posted for a given poll.  This is how it works:   1. It calls the setPollID() method to set the given poll ID to the member  variable pid.  2. It builds a query statement, $stmt, to retrieve the total number of votes  posted for the given poll ID.  3. Using the DBI object ($this->dbi), the $stmt statement is run via the  $this->dbi->query() method in the DBI object. The result of the query  is stored in the $result object.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://jsp.armadillowebhosting.com/jsp/700-part-v-web-design-internet-applications-addvote-this-method/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Chapter 20: Web Site Tools 699  (Web site development) Designing and</title>
		<link>http://jsp.armadillowebhosting.com/jsp/chapter-20-web-site-tools-699-web-site-development-designing-and/</link>
		<comments>http://jsp.armadillowebhosting.com/jsp/chapter-20-web-site-tools-699-web-site-development-designing-and/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 05:11:26 +0000</pubDate>
		<dc:creator>humphreyblogart</dc:creator>
		
	<category>JSP</category>
		<guid isPermaLink="false">http://jsp.armadillowebhosting.com/jsp/chapter-20-web-site-tools-699-web-site-development-designing-and/</guid>
		<description><![CDATA[Chapter 20: Web Site Tools 699   Designing and Implementing the  Voting Tool Application Class   As illustrated in the system diagram shown in Figure 20-2, only one object is  needed to implement the voting tool application.   In this section, you will develop the class that provides the only [...]]]></description>
			<content:encoded><![CDATA[<p>Chapter 20: Web Site Tools 699   Designing and Implementing the  Voting Tool Application Class   As illustrated in the system diagram shown in Figure 20-2, only one object is  needed to implement the voting tool application.   In this section, you will develop the class that provides the only object needed  for your voting tool application.   Vote Application  PHP Application Framework  Vote  Application  Vote Object class.Vote.php  Figure 20-2: Voting tool system diagram.   Designing and implementing the Vote class   The Vote class is used to manipulate each poll. It enables the application to add votes  and retrieve poll results. The ch20/apps/class/class.Vote.php file on the accompanying CD-ROM implements this class, which implements the following methods:   Vote()   This is the constructor method. It works as follows:   1. It sets a member variable named dbi to point to the object provided by  the class.DBI.php, which is passed to the constructor by an application.  The dbi member variable holds the DBI object, which is used to communicate with the back-end database.  2. It sets a member variable named vote_tbl to store the name of the vote  table.  3. It calls the setPollID() method to set the Poll ID that has been passed as  a parameter.  setPollID()   This method is used to set the Poll ID as the member variable  pid.  It takes the ID as a  parameter and returns it after setting it to the member variable if the ID is not empty.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://jsp.armadillowebhosting.com/jsp/chapter-20-web-site-tools-699-web-site-development-designing-and/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Business web site - 698 Part V: Internet Applications Note that there</title>
		<link>http://jsp.armadillowebhosting.com/jsp/business-web-site-698-part-v-internet-applications-note-that-there/</link>
		<comments>http://jsp.armadillowebhosting.com/jsp/business-web-site-698-part-v-internet-applications-note-that-there/#comments</comments>
		<pubDate>Sun, 08 Jun 2008 16:24:25 +0000</pubDate>
		<dc:creator>humphreyblogart</dc:creator>
		
	<category>JSP</category>
		<guid isPermaLink="false">http://jsp.armadillowebhosting.com/jsp/business-web-site-698-part-v-internet-applications-note-that-there/</guid>
		<description><![CDATA[698 Part V: Internet Applications    Note that there are several prefab voting tools available online. However,  sometimes it s better to create a simple, but custom application from scratch  than modify an existing application.   Understanding Prerequisites   This is an Internet application and does not require central [...]]]></description>
			<content:encoded><![CDATA[<p>698 Part V: Internet Applications    Note that there are several prefab voting tools available online. However,  sometimes it s better to create a simple, but custom application from scratch  than modify an existing application.   Understanding Prerequisites   This is an Internet application and does not require central authentication techniques.  Therefore, it is not dependent on the intranet tools discussed in earlier chapters.   However, it does require the application framework classes discussed in Chapter 4. You must install the application framework classes along with the PHPLIB  and PEAR packages.   Designing the Database   Figure 20-1 shows the VOTE database diagram for the voting tool. This section  describes the only table of the database.    Figure 20-1: VOTE database diagram.   VOTES Table   This table is the integral part of the application. It holds the Poll ID (POLL_ID), the  vote value (VOTE), and the submission timestamp of the vote (VOTE_TS).   Listing 20-1 shows an implementation of the VOTE database in MySQL. To  implement this survey database in MySQL, you can create a database called VOTE  in your MySQL database server by saving the code in Listing 20-1 in a text file  (named VOTE.mysql) and running the following command:   Listing 20-1: VOTE.mysql   mysql -u root -p -D VOTE < VOTE.mysql   Make sure you change the username (root) to whatever is appropriate for your  system.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://jsp.armadillowebhosting.com/jsp/business-web-site-698-part-v-internet-applications-note-that-there/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Adelphia web hosting - Chapter 20 Web Site Tools IN THIS CHAPTER</title>
		<link>http://jsp.armadillowebhosting.com/jsp/adelphia-web-hosting-chapter-20-web-site-tools-in-this-chapter/</link>
		<comments>http://jsp.armadillowebhosting.com/jsp/adelphia-web-hosting-chapter-20-web-site-tools-in-this-chapter/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 20:16:59 +0000</pubDate>
		<dc:creator>humphreyblogart</dc:creator>
		
	<category>JSP</category>
		<guid isPermaLink="false">http://jsp.armadillowebhosting.com/jsp/adelphia-web-hosting-chapter-20-web-site-tools-in-this-chapter/</guid>
		<description><![CDATA[Chapter 20   Web Site Tools   IN THIS CHAPTER   . Developing a voting tool  . Installing the voting tool  . Using the voting tool  IN THIS CHAPTER, WE WILL develop a simple voting tool that enables your visitors to  cast votes on a topic of your [...]]]></description>
			<content:encoded><![CDATA[<p>Chapter 20   Web Site Tools   IN THIS CHAPTER   . Developing a voting tool  . Installing the voting tool  . Using the voting tool  IN THIS CHAPTER, WE WILL develop a simple voting tool that enables your visitors to  cast votes on a topic of your choice. Such votes are typically gathered to review  user preferences. The following section describes the voting application s functionality requirements.   Functionality Requirements   The vote application will have the following features:   . A single database table. It will store all vote data in a single table.  . An unlimited number of surveys/polls. You can set up as many surveys or polls as you want. . An unlimited number of polling options. Users can select as many options as needed to generate the poll data. The options can be either radio buttons or checkboxes. However, each option value must be numeric. . A customizable results page. The results page is displayed using a custom template for each poll/survey; therefore, this page can be customized as needed.  . Control over multiple votes. You can decide if you want to allow multi ple votes from the same person or not. For example, you can set a time limit for the cookie used to identify Web visitors who have already voted. This time limit is configurable, so you can allow a visitor to vote on every visit, or disallow voting until a specified amount of time has passed. For example, you can set the expiration time such that a visitor can vote once per month.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://jsp.armadillowebhosting.com/jsp/adelphia-web-hosting-chapter-20-web-site-tools-in-this-chapter/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Mac os x web server - Chapter 19: Web Forms Manager 695 Summary In</title>
		<link>http://jsp.armadillowebhosting.com/jsp/mac-os-x-web-server-chapter-19-web-forms-manager-695-summary-in/</link>
		<comments>http://jsp.armadillowebhosting.com/jsp/mac-os-x-web-server-chapter-19-web-forms-manager-695-summary-in/#comments</comments>
		<pubDate>Thu, 05 Jun 2008 09:14:55 +0000</pubDate>
		<dc:creator>humphreyblogart</dc:creator>
		
	<category>JSP</category>
		<guid isPermaLink="false">http://jsp.armadillowebhosting.com/jsp/mac-os-x-web-server-chapter-19-web-forms-manager-695-summary-in/</guid>
		<description><![CDATA[Chapter 19: Web Forms Manager 695   Summary   In this chapter, you developed a set of Web applications that can manage single- page Web forms that do not have complex requirements. The application discussed  in this chapter also offers you a way to download data collected by using the Web  [...]]]></description>
			<content:encoded><![CDATA[<p>Chapter 19: Web Forms Manager 695   Summary   In this chapter, you developed a set of Web applications that can manage single- page Web forms that do not have complex requirements. The application discussed  in this chapter also offers you a way to download data collected by using the Web  forms or view reports on collected data.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://jsp.armadillowebhosting.com/jsp/mac-os-x-web-server-chapter-19-web-forms-manager-695-summary-in/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Professional web hosting - 694 Part V: Internet Applications In the restricted</title>
		<link>http://jsp.armadillowebhosting.com/jsp/professional-web-hosting-694-part-v-internet-applications-in-the-restricted/</link>
		<comments>http://jsp.armadillowebhosting.com/jsp/professional-web-hosting-694-part-v-internet-applications-in-the-restricted/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 22:14:49 +0000</pubDate>
		<dc:creator>humphreyblogart</dc:creator>
		
	<category>JSP</category>
		<guid isPermaLink="false">http://jsp.armadillowebhosting.com/jsp/professional-web-hosting-694-part-v-internet-applications-in-the-restricted/</guid>
		<description><![CDATA[694 Part V: Internet Applications   In the restricted directory, we can create symbolic links to apps/class, apps/  site_forms, apps/templates, webforms.conf, and webforms.error files and  directories, as shown here:   ln -s ../apps/webforms.conf webforms.conf  ln -s ../apps/webforms.errors webforms.errors  ln -s ../apps/templates templates  ln -s ../apps/class class  ln [...]]]></description>
			<content:encoded><![CDATA[<p>694 Part V: Internet Applications   In the restricted directory, we can create symbolic links to apps/class, apps/  site_forms, apps/templates, webforms.conf, and webforms.error files and  directories, as shown here:   ln -s ../apps/webforms.conf webforms.conf  ln -s ../apps/webforms.errors webforms.errors  ln -s ../apps/templates templates  ln -s ../apps/class class  ln -s ../apps/site_forms site_forms   The preceding code should produce the following results using the ls -l  command:   bash-2.03$ ls -l  total 32  -rw-r&#8211;r&#8211;CSVExporter.php  lrwxrwxrwx class -> ../apps/class  lrwxrwxrwx site_forms -> ../apps/site_forms  lrwxrwxrwx templates -> ../apps/templates  lrwxrwxrwx webforms.conf -> ../apps/webforms.conf  lrwxrwxrwx webforms.errors -> ../apps/webforms.errors  -rw-r&#8211;r&#8211;webformsreporter.php   In the restricted directory, create an .htaccess file such as the following:   AuthType Basic  AuthName  WebForm Administration    AuthUserFile /path/to/.users  Require valid-user   Make sure that you change the AuthUserFile from /path/to/.users to a path  that s outside your Web document tree but still readable by the Apache user. In this  file, create users using the htpasswd utility that comes with the Apache Web server.  For example, to create a user named joe in the nonexistent /path/to/.users file,  you can run the following:   htpasswd -c /path/to/.users joe   You will be asked to enter Joe s new password twice, after which Joe can access  the reporter and CSV Export applications of the Web Forms Management application  suite, using the http://server/webforms/restricted/webformsreporter.php  and http://server/webforms/restricted/CSVExporter.php URLs, respectively.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://jsp.armadillowebhosting.com/jsp/professional-web-hosting-694-part-v-internet-applications-in-the-restricted/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Chapter 19: Web Forms  (Michigan web site) Manager 693 Figure 19-8:</title>
		<link>http://jsp.armadillowebhosting.com/jsp/chapter-19-web-forms-michigan-web-site-manager-693-figure-19-8/</link>
		<comments>http://jsp.armadillowebhosting.com/jsp/chapter-19-web-forms-michigan-web-site-manager-693-figure-19-8/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 10:09:18 +0000</pubDate>
		<dc:creator>humphreyblogart</dc:creator>
		
	<category>JSP</category>
		<guid isPermaLink="false">http://jsp.armadillowebhosting.com/jsp/chapter-19-web-forms-michigan-web-site-manager-693-figure-19-8/</guid>
		<description><![CDATA[Chapter 19: Web Forms Manager 693    Figure 19-8: Downloading CSV data from the Web form.   When you click the Save button, the exporter-supplied file name will be given.  For example, because the ASK form is named using FORM_NAME in askform.conf as   ASK_FORM , the default filename is [...]]]></description>
			<content:encoded><![CDATA[<p>Chapter 19: Web Forms Manager 693    Figure 19-8: Downloading CSV data from the Web form.   When you click the Save button, the exporter-supplied file name will be given.  For example, because the ASK form is named using FORM_NAME in askform.conf as   ASK_FORM , the default filename is askform.csv. Therefore, if your form names  are unique, the file names will also be unique.   Figure 19-9 shows how the downloaded data file appears in MS Excel.    Figure 19-9: Viewing CSV data in Excel.   Security Considerations   The webformsreporter.php application and the CSVExporter.php application  should be restricted using your Web server s username/password authentication  scheme. In our example, we installed the Web forms application in %DocumentRoot%/  webforms/apps. We can create a directory called %DocumentRoot/webforms/  restricted and move CSVExporter.php and webformsreporter.php from the  /webforms/apps directory to this new directory.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://jsp.armadillowebhosting.com/jsp/chapter-19-web-forms-michigan-web-site-manager-693-figure-19-8/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>692 Part V: Internet Applications After  (Ecommerce web host) submitting two</title>
		<link>http://jsp.armadillowebhosting.com/jsp/692-part-v-internet-applications-after-ecommerce-web-host-submitting-two/</link>
		<comments>http://jsp.armadillowebhosting.com/jsp/692-part-v-internet-applications-after-ecommerce-web-host-submitting-two/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 23:06:21 +0000</pubDate>
		<dc:creator>humphreyblogart</dc:creator>
		
	<category>JSP</category>
		<guid isPermaLink="false">http://jsp.armadillowebhosting.com/jsp/692-part-v-internet-applications-after-ecommerce-web-host-submitting-two/</guid>
		<description><![CDATA[692 Part V: Internet Applications   After submitting two requests as test data, we access the reporter application  using http://server/webforms/apps/webformsreporter.php. It displays the  interface shown in Figure 19-6.    Figure 19-6: Selecting a form in the reporter interface.   Select a Web form such as the Ask Form and [...]]]></description>
			<content:encoded><![CDATA[<p>692 Part V: Internet Applications   After submitting two requests as test data, we access the reporter application  using http://server/webforms/apps/webformsreporter.php. It displays the  interface shown in Figure 19-6.    Figure 19-6: Selecting a form in the reporter interface.   Select a Web form such as the Ask Form and click the Show Report button, which  displays a report, as shown in Figure 19-7.    Figure 19-7: Viewing data available in a Web form database.   Downloading data from the form is as easy as clicking the Download all data  from this form link shown in the report. Figure 19-8 shows the dialog box that  appears after you click the link.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://jsp.armadillowebhosting.com/jsp/692-part-v-internet-applications-after-ecommerce-web-host-submitting-two/feed/</wfw:commentRSS>
		</item>
	</channel>
</rss>
