tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "neal" <nealcab...@yahoo.com>
Subject RE: auto-redirect to default page - undesired
Date Tue, 19 Nov 2002 00:12:29 GMT
Well, cool idea but there's still a problem:

I mean...The requestDispatcher *does* redirect to the right page *BUT* all
my relative links are broken.  So, I tried mapping the forward servlet to
the path "/test" instead of just "/" and sure enough *that* url worked ...
relative paths just fine.  So even though mapping to "/" did get the page to
call correctly, nothing in that page resolved correctly.  Somehow its
context was off I guess. Do you know of some alternative syntax to "/" that
could be specified to indicate the root of the domain?  I tried everything I
could think of and nothing else worked (e.g. "", "/*", "*", "*/", etc).

Thanks.
Neal


-----Original Message-----
From: Reynir Hübner [mailto:reynir@hugsmidjan.is]
Sent: Monday, November 18, 2002 2:54 PM
To: Tomcat Users List
Subject: RE: auto-redirect to default page - undesired


You could map a servlet or jsp to the path / that dispatches the request
using RequestDispatcher.forward("/path_to_somewhere" to what ever place you
want, then remove the welcome-files from web.xml, if you don't want that
functionality.

I think that might work for you.

Hope it helps
-reynir@hugsmidjan.is



> -----Original Message-----
> From: neal [mailto:nealcabage@yahoo.com]
> Sent: 18. nóvember 2002 20:53
> To: Tomcat Users List
> Subject: auto-redirect to default page - undesired
>
>
> Tomcat appears to auto-redirect to the default page rather
> than leaving the url of the default url (www.mysite.com)
> while displaying the default page. In otherwords, if the url
(www.mysite.com) is requested, the url is actually redirected (the url of
the window will change) to www.mysite.com/index.jsp. This presumes use of
tomcat as standalone.

>From what I have been reading this can have adverse effects on search engine
placement and is thus not a desired effect.  Does anyone know how to
configure tomcat to behave as most other web servers and *not* redirect the
user?  I think the difference here may be to forward the user versus
redirecting them.

Thanks.
Neal


--
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>


Mime
View raw message