Don’t add the tiles.jar file to the classpath (Web hosting asp)

Don’t add the tiles.jar file to the classpath of your servlet container in an attempt to avoid placing it in the WEB-INF/lib directory of each individual web application. Doing so will cause s to be thrown. You should put the tiles-config.dtd file in the WEB-INF directory, too. This DTD is used to validate Tiles definition files, which we’ll discuss later in this chapter. 14.2.3 Adding the Tiles Tag Library As with any other JSP tag library, you must add the Tiles library to the web application deployment descriptor before you can use it. Add the following taglibelement to the web.xml file: /WEB-INF/tiles.tld /WEB-INF/tiles.tld There should already be taglib elements present if you are using any of the standard Struts tag libraries. Each page that needs to use the Tiles tag library must include the following line at the top: <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> 14.2.4 Configuring Tiles to Work with Struts The Tiles framework can be used with or without Struts. Depending on how you use it, there are several options for configuring it for a web application. Because this book is about Struts, we’ll focus on how to bind it to a Struts application. With earlier versions of the Tiles framework, you had to configure a special ActionServlet called ActionComponentServlet in the web.xml file. It was also necessary to configure a special RequestProcessor in the Struts controller element. This is no longer true a Tiles plug-in is now available that will take care of all the initialization. The Tiles plug-in is really necessary only if you are planning on using Tiles definitions. It is possible to use the Tiles libraries with Struts without configuring the plug-in. However, it doesn’t hurt to configure it, and it may save you time later if you decide to use definitions. To add the Tiles plug-in to a Struts application, add the following plug-in element to the Struts configuration file:

Note: If you are looking for cheap and reliable webhost to host and run your mysql application check mysql web server services.

Leave a Reply