I don't have to worry about the javascript compatability now with browsers at all, thanks a lot John, that worked like a charm...
you make things really simple..... thanks again.. -Raj >>> [EMAIL PROTECTED] 10/23/02 08:43AM >>> No need to bust out the sledgehammer when a light tap will do. All you need is a META tag in the head of your index.html... <META HTTP-EQUIV="Refresh" CONTENT="0; URL=index.jsp"> The client browser will take care of resolving/translating "index.jsp" to "http://some.domain.com/index.jsp" John > -----Original Message----- > From: Raj Mettai [mailto:rmettai@;broward.edu] > Sent: Tuesday, October 22, 2002 11:55 AM > To: [EMAIL PROTECTED] > Subject: RE: Index.jsp page in apache and tomcat config.... > > > I didn't configure apache to include mod_rewrite during > installation. I > have to redo the whole process of apache setup again to use > mod_rewrite, > Instead I have created an index.html with javascript code(see > below) in > it to redirect to index.jsp, it is working for me well so for. > > > <script language="JavaScript"> > <!-- > var path = ""; > wholeurl = document.location.href; > x = wholeurl.length; > while((wholeurl.substring(x,x-1)) != "/"){ x--; } clipstart = x; > path = wholeurl.substring(0,wholeurl.length > -(wholeurl.length-clipstart)); > path += 'index.jsp'; > location.href = path; > //--> > </script> > > > thanks a lot to everybody who helped me with this issue...... > > -Raj > > > >>> [EMAIL PROTECTED] 10/18/02 05:58PM >>> > Just for clarification, > > Apache reads the LoadModule lines from the top down. If you put the > LoadModule line for mod_jk to the end of that section then > mod_rewrite > will be loaded first. > > rls > > > > > > "Turner, John" <[EMAIL PROTECTED]> > 10/18/2002 08:47 AM > Please respond to "Tomcat Users List" > > > To: 'Tomcat Users List' <[EMAIL PROTECTED]> > cc: > Subject: RE: Index.jsp page in apache and tomcat > config.... > > > You could try a mod_rewrite rule for /online/ that translated to > /online/index.jsp. Whether that worked or not would depend on the > sequence > of modules in Apache...would the rewrite rule happen before > or after the > JkMount rule? I'm not familiar enough with Apache module > internals to > know > which would happen first...if the JkMount rule happened first, the > mod_rewrite rule would have no effect. > > John > > > > -----Original Message----- > > From: Raj Mettai [mailto:rmettai@;broward.edu] > > Sent: Friday, October 18, 2002 11:41 AM > > To: [EMAIL PROTECTED] > > Subject: RE: Index.jsp page in apache and tomcat config.... > > > > > > I have already defined index.jsp to DirectoryIndex > listing....But I am > > wondering even if I have index.jsp in DirectoryIndex and > index.jsp is > > not on apache web-app directory, how would apache know to bring up > > index.jsp. I think I have to put some specific forwarding rules for > > Directory links in httpd.conf or else I have to go with your idea of > > putting index.html with a redirect to index.jsp. > > > > thanks > > > > -Raj > > > > > > > > > > > > >>> [EMAIL PROTECTED] 10/18/02 11:19AM >>> > > > > I checked, it is currently set to "index.html index.htm index.jsp". > > > > John > > > > > > > -----Original Message----- > > > From: Mark Eggers [mailto:its_toasted@;yahoo.com] > > > Sent: Friday, October 18, 2002 11:12 AM > > > To: Tomcat Users List > > > Subject: RE: Index.jsp page in apache and tomcat config.... > > > > > > > > > There is a DirectoryIndex option in the configuration > > > file. Out of the box it's set to index.html. Add > > > index.jsp to the list. > > > > > > /mde/ > > > > > > just my two cents . . . . > > > > > > > > > __________________________________________________ > > > Do you Yahoo!? > > > Faith Hill - Exclusive Performances, Videos & More > > > http://faith.yahoo.com > > > > > > -- > > > To unsubscribe, e-mail: > > > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> > > > For additional commands, e-mail: > > > <mailto:tomcat-user-help@;jakarta.apache.org> > > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> > > For additional commands, e-mail: > > <mailto:tomcat-user-help@;jakarta.apache.org> > > > > -- > To unsubscribe, e-mail: > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: > <mailto:tomcat-user-help@;jakarta.apache.org> > > > > > > -- > To unsubscribe, e-mail: > <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: > <mailto:tomcat-user-help@;jakarta.apache.org> > -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
