Click to See Complete Forum and Search --> : url mapping


francois
11-19-2003, 01:04 PM
Hi there,

In web.xml, I know it's possible to do path mapping:

<path-mapping url-pattern="/aaa/*" real-path="C:\TEMP\"/>

So a call to myserver.com/mywebapp/aaa will redirect to c:\temp.

Is it possible to do the same but with a URL?:confused:

e.g.:
<kind-of-url-mapping url-pattern="/bbb/*" real-url="http://www.google.com" />

Thanks!

Frank

Sux0rZh@jc0rz
11-19-2003, 04:41 PM
thats a neat script. i know almost nothing about XML... but that is a neat function. could it be used on external javascripts to keep people from seeing the script? like u have a reference to an external javascript, and then with mapping if they try to grab the script page they get redirected to the homepage instead? (yeah... they could still get the script out their cache..)