CHAPTER 3 CONTENT CHUNKING PATTERN In this (How to cite a web site)
CHAPTER 3 CONTENT CHUNKING PATTERN In this example, there are three buttons (GoodReplace, BadReplace, and TestTable), and the HTML elements table, table row, and row cell have added identifiers. The GoodReplace button will perform a legal HTML injection. The BadReplace button will perform an illegal HTML injection. And the TestTable button is used to test the validity of an object model. The TestTable button is used as a way of verifying the result of the HTML injection performed by either GoodReplace or BadReplace. Downloading the HTML page and presenting it in the browser results in something similar to Figure 3-5. E B V N Figure 3-5. Initial generation of the HTML page To check that the HTML page is in a valid state, the button TestTable is clicked. Clicking the button calls the function TestTable, which tests whether the content within a table cell exists by outputting the content in a dialog box. The generated output appears similar to Figure 3-6. The dialog box in Figure 3-6 confirms that the table cell contains the value Nothing. This means our HTML page is in a stable state. If the GoodReplace button is clicked, the function GoodReplace is called, which changes the table cell contents from Nothing to Hello. To verify that the HTML page is still valid, the TestTable button is clicked. If the HTML page is valid, a dialog with the text Hello should appear, and it does, as is illustrated in Figure 3-7.
Check Tomcat Web Hosting services for best quality webspace to host your web application.