How to cite a web site - resin/bin/httpd -conf conf/resin.conf -compile Here, the URL is

resin/bin/httpd -conf conf/resin.conf -compile Here, the URL is a JSP resource within a web application installed in Resin. You can also use the command-line version, like this: resin/bin/httpd -e With this approach, you can compile only a single JSP page at a time, although you could easily create a script that went through your entire web application. An easier way to configure this is to use Ant, as discussed later in this chapter. 16.2.3.3 Precompiling JSP pages with WebLogic With WebLogic 6.0, you have to include a context-param element in the deployment descriptor for each web application. This will instruct WebLogic to compile every JSP page that is part of the web application when the application server starts up. The following context-param element must be added to the web.xml file:
weblogic.jsp.precompile true
WebLogic 6.0 will not deploy the web application if any one of the JSP pages fails to compile. Once it detects an error compiling a page, all compilation stops and the web application will not be deployed. You have to fix whatever is causing the problem and then restart WebLogic to start the process all over again. 16.2.4 Packaging EJB Resources with Struts If you’re communicating with EJBs in the middle tier, it might be necessary to package some of the EJB resources along with your web application package. Because the web tier acts as a client to the EJB server, certain resources are required to connect and communicate with the beans. The beans’ home and remote interfaces, for example, need to be packaged either in the classes directory or as a JAR file in the lib directory of the web application. Also, some of the JNDI classes need to be included so that clients can acquire home and remote objects. The actual client-side EJB stub classes are not required, however. This wasn’t always the case, but the latest specification now describes a mechanism that allows these to be automatically downloaded when a request is made using an EJB remote interface. In many cases, it’s enough to put the EJB container JAR file in the WEB-INF/lib directory. For example, if you are using WebLogic 6.0 or higher, you can put the weblogic.jar file in the web tier, as it contains all of the necessary client-side resources. 16.3 Packaging the Application as a WAR File Packaging your web applications using the WAR format is very convenient. The structure is precise, and because it is specified so carefully, porting your applications across the various web containers is
If you are searching for cheap webhost for your web application, please visit MySQL5 Web Hosting services.

Leave a Reply