Web host music - 450 CHAPTER 11 ADVANCED FILTERING TECHNIQUES Make

450 CHAPTER 11 ADVANCED FILTERING TECHNIQUES Make sure that you ve configured the starthour and stophour variables to make the current time outside of the allowable range, and create a games directory off the filters2 web-application directory that contains an appropriate index.html file. Start Tomcat and try to access the following URL through a browser: http://localhost:8080/filters2/games/index.html You should see an access denied message as shown in Figure 11-8. Figure 11-8. When a request is made outside allowable hours, the filter blocks the request. This is the custom-generated response straight from the filter. Now, modify the element in web.xml to include the current time within the range. Reload the web application by using Tomcat s management tool, or restart Tomcat, and try to access the same URL. Figure 11-9 shows the page you should now see. Figure 11-9. When a request is made within allowable hours, the filter passes the request down the chain.
If you are looking for cheap and quality webhost to host and run your website check Jboss Web Hosting services.

Leave a Reply