Re: INDEX.JSP in webapps/ROOT
Tom Make sure to test your tomcat mapping configuration if you plan to put apache or iis in front of it. For example mapping index.html to index.jsp in tomcat can lead to having your request served by the web server. To avoid this you need to configure the modjk directives in accordance with your requierments, host, vhost and webapp config. Hope this helps. Bruno Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 - Original Message - From: Tom Spence [EMAIL PROTECTED] Sent: 24.08.2005 15:23 To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: INDEX.JSP in webapps/ROOT GREAT! It works! Also many thanks for giving the URl about web.xml that I am going to learn how to use. David Delbecq [EMAIL PROTECTED] wrote:Le Mercredi 24 Août 2005 14:58, Tom Spence a écrit : Hello... I understand that TomCat's front page (index.jsp) that I can't change it cuz it is precompiled. Yes and no, you can't simply replace it's content, but you also have to change web.xml remove those lines to suppres use of precompiled index.jsp : org.apache.jsp.index_jsp org.apache.jsp.index_jsp org.apache.jsp.index_jsp /index.jsp I want to change something on my own website from index.jsp to index.html? just remove index.jsp mapping in web.xml, tomcat will then do the default searching (index.jsp, index.html, index.htm if my memory is not too corrupted) Also I am trying to learn (of course I am newbie) how to change in web.xml in ROOT/WEB-INF. with a text editor (better if text editor support xml enlighting) More seriously, i suggest you read some documentations on java web servers tu understand what is in the web.xml there is list of tags in web.xml: http://e-docs.bea.com/wls/docs61/webapp/web_xml.html I appreciate your assist... (__[TomCigar]___~~~ -- David Delbecq Royal Meteorological Institute of Belgium - Is there life after /sbin/halt -p? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] (__[TomCigar]___~~~ * * LEGAL DISCLAIMER * This message contains confidential information for * the exclusive use of the person mentioned above. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
INDEX.JSP in webapps/ROOT
Hello... I understand that TomCat's front page (index.jsp) that I can't change it cuz it is precompiled. I want to change something on my own website from index.jsp to index.html? Also I am trying to learn (of course I am newbie) how to change in web.xml in ROOT/WEB-INF. I appreciate your assist... (__[TomCigar]___~~~
Re: INDEX.JSP in webapps/ROOT
Le Mercredi 24 Août 2005 14:58, Tom Spence a écrit : Hello... I understand that TomCat's front page (index.jsp) that I can't change it cuz it is precompiled. Yes and no, you can't simply replace it's content, but you also have to change web.xml remove those lines to suppres use of precompiled index.jsp : servlet servlet-nameorg.apache.jsp.index_jsp/servlet-name servlet-classorg.apache.jsp.index_jsp/servlet-class /servlet servlet-mapping servlet-nameorg.apache.jsp.index_jsp/servlet-name url-pattern/index.jsp/url-pattern /servlet-mapping I want to change something on my own website from index.jsp to index.html? just remove index.jsp mapping in web.xml, tomcat will then do the default searching (index.jsp, index.html, index.htm if my memory is not too corrupted) Also I am trying to learn (of course I am newbie) how to change in web.xml in ROOT/WEB-INF. with a text editor (better if text editor support xml enlighting) More seriously, i suggest you read some documentations on java web servers tu understand what is in the web.xml there is list of tags in web.xml: http://e-docs.bea.com/wls/docs61/webapp/web_xml.html I appreciate your assist... (__[TomCigar]___~~~ -- David Delbecq Royal Meteorological Institute of Belgium - Is there life after /sbin/halt -p? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: INDEX.JSP in webapps/ROOT
GREAT! It works! Also many thanks for giving the URl about web.xml that I am going to learn how to use. David Delbecq [EMAIL PROTECTED] wrote:Le Mercredi 24 Août 2005 14:58, Tom Spence a écrit : Hello... I understand that TomCat's front page (index.jsp) that I can't change it cuz it is precompiled. Yes and no, you can't simply replace it's content, but you also have to change web.xml remove those lines to suppres use of precompiled index.jsp : org.apache.jsp.index_jsp org.apache.jsp.index_jsp org.apache.jsp.index_jsp /index.jsp I want to change something on my own website from index.jsp to index.html? just remove index.jsp mapping in web.xml, tomcat will then do the default searching (index.jsp, index.html, index.htm if my memory is not too corrupted) Also I am trying to learn (of course I am newbie) how to change in web.xml in ROOT/WEB-INF. with a text editor (better if text editor support xml enlighting) More seriously, i suggest you read some documentations on java web servers tu understand what is in the web.xml there is list of tags in web.xml: http://e-docs.bea.com/wls/docs61/webapp/web_xml.html I appreciate your assist... (__[TomCigar]___~~~ -- David Delbecq Royal Meteorological Institute of Belgium - Is there life after /sbin/halt -p? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] (__[TomCigar]___~~~
Re: INDEX.JSP in webapps/ROOT
Change your $TOMCAT_HOME/webapps/ROOT/WEB-INF/web.xml like this web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 display-nameWelcome to Tomcat/display-name description Welcome to Tomcat /description !-- JSPC servlet mappings start -- !-- servlet servlet-nameorg.apache.jsp.index_jsp/servlet-name servlet-classorg.apache.jsp.index_jsp/servlet-class /servlet servlet-mapping servlet-nameorg.apache.jsp.index_jsp/servlet-name url-pattern/index.jsp/url-pattern /servlet-mapping -- !-- JSPC servlet mappings end -- welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list /web-app Regards, Praveen Soni STMicroelectronics Pvt. Ltd. Tom Spence wrote, On 08/24/2005 06:28 PM: Hello... I understand that TomCat's front page (index.jsp) that I can't change it cuz it is precompiled. I want to change something on my own website from index.jsp to index.html? Also I am trying to learn (of course I am newbie) how to change in web.xml in ROOT/WEB-INF. I appreciate your assist... (__[TomCigar]___~~~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]