Re: Apache-Tomcat configuration
Hi ... i've changed the path adding the context name. It worked only using tomcat but it still doesn't work using apache. Alexis Neelakshi wrote: Are you trying to load images from the relative path? You will have to specify the path as /mycontext/images/myimage.gif instead of images/myimage.gif as later works only with tomcat, former with both. Alexis Alarcón Barra wrote: Hi, i'm using Apache 1.3.12 and Tomcat 3.2.3. They work separately. Then i'll join them. This works but when i'm trying to load a jsp page, it works(executes the code) but it doesn't load any images. Anyone knows why ? Alexis _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Creating object for the application
Hi, anyone knows how to create an object from the startup of the server and make it available for the application. I don't want to call a servlet to get it from a JSP page. Is there another way? Alexis _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Creating object for the application
ok ... i've done already that, but how can get the object from a jsp page to manipulate it? Alexis Craig R. McClanahan wrote: On Mon, 30 Jul 2001, Alexis Alarcón Barra wrote: Hi, anyone knows how to create an object from the startup of the server and make it available for the application. I don't want to call a servlet to get it from a JSP page. Is there another way? In any servlet container that implements 2.2 or later, you can create a servlet that is marked load-on-startup in the web.xml file, and then create your objects in the init() method of that servlet. For more info about web.xml, see the Servlet Specification at http://java.sun.com/products/servlet/download.html For servlet 2.3 containers (i.e. Tomcat 4.0 for now, others soon), you can also use the new Application Event Listener mechanism to register a class that is told about the context startup and context shutdown events. This is a perfect place to initialize things at startup time. Alexis Craig McClanahan _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Creating object for the application
ok ... i've done already that, but how can get the object on a jsp page to manipulate it? Alexis Craig R. McClanahan wrote: On Mon, 30 Jul 2001, Alexis Alarcón Barra wrote: Hi, anyone knows how to create an object from the startup of the server and make it available for the application. I don't want to call a servlet to get it from a JSP page. Is there another way? In any servlet container that implements 2.2 or later, you can create a servlet that is marked load-on-startup in the web.xml file, and then create your objects in the init() method of that servlet. For more info about web.xml, see the Servlet Specification at http://java.sun.com/products/servlet/download.html For servlet 2.3 containers (i.e. Tomcat 4.0 for now, others soon), you can also use the new Application Event Listener mechanism to register a class that is told about the context startup and context shutdown events. This is a perfect place to initialize things at startup time. Alexis Craig McClanahan _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Creating object for the application
Thanks Craig!! It worked !! Alexis Craig R. McClanahan wrote: On Mon, 30 Jul 2001, Alexis Alarcón Barra wrote: ok ... i've done already that, but how can get the object from a jsp page to manipulate it? If you create a servlet context attribute, then it's just a jsp:useBean declaration with application scope. Alexis Craig McClanahan Craig R. McClanahan wrote: On Mon, 30 Jul 2001, Alexis Alarcón Barra wrote: Hi, anyone knows how to create an object from the startup of the server and make it available for the application. I don't want to call a servlet to get it from a JSP page. Is there another way? In any servlet container that implements 2.2 or later, you can create a servlet that is marked load-on-startup in the web.xml file, and then create your objects in the init() method of that servlet. For more info about web.xml, see the Servlet Specification at http://java.sun.com/products/servlet/download.html For servlet 2.3 containers (i.e. Tomcat 4.0 for now, others soon), you can also use the new Application Event Listener mechanism to register a class that is told about the context startup and context shutdown events. This is a perfect place to initialize things at startup time. Alexis Craig McClanahan _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Creating Object for Application
Hi, I'm using Tomcat 3.2.3. I'm trying to create an object from the startup of the server and make it available for an application. How can i do this ? Thanks in advance, Alexis begin:vcard n:Alarcón Barra;Alexis tel;work:(56)(2)6380329 x-mozilla-html:FALSE org:Omega Ingeniería de Software Ltda. adr:;;Miraflores 222 Piso 28;Santiago;;6500786;Chile version:2.1 email;internet:[EMAIL PROTECTED] title:Ingeniero de Software fn:Alexis Alarcón Barra end:vcard