tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hassan Schroeder" <hassan.schroe...@gmail.com>
Subject Re: Forward all subfolders/files to the root
Date Wed, 03 Dec 2008 22:10:24 GMT
On Tue, Dec 2, 2008 at 7:41 PM, tuckker <mingteikg@blizhosting.com> wrote:
>
> How do I redirect all subfolders/files to the root of the link domain.com?

If it's all one context, add something like this to your web.xml:

	<servlet>
		<servlet-name>whatever</servlet-name>
		<jsp-file>/index.jsp</jsp-file>
	</servlet>
	<servlet-mapping>
		<servlet-name>whatever</servlet-name>
		<url-pattern>/*</url-pattern>
	</servlet-mapping>
	
:: and of course, make sure there aren't other mappings that would
override that with higher specificity :-)

HTH!
-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message