473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

url mapping

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?

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

Thanks!

Frank
Jul 17 '05 #1
2 5501
Frank wrote:
In web.xml, I know it's possible to do path mapping:

<path-mapping url-pattern="/aaa/*" real-path="C:\TEMP\"/>
I think you are mistaken. This tag is not part of the DTD for the Servlet
x.y deployment descriptor, at least not up until version 2.3. See for
yourself: <http://java.sun.com/dtd/web-app_2_3.dtd>
Is it possible to do the same but with a URL?

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


Here is one way of doing it:

(1) Create a servlet that will redirect incoming requests to
<http://www.google.com>.

(2) Define a servlet mapping in web.xml which maps "/bbb/*" to the servlet
you just created.

--
Jonas Kongslund
Jul 17 '05 #2
Your right, path mapping is not part of actual DTD. Actually it's a
node added by Resin container.

I will write a servlet unless there is no possible configuration.

Thank you Jonas.
Jonas Kongslund <do**@mail.me.at.all> wrote in message news:<Mb****************@news.get2net.dk>...
Frank wrote:
In web.xml, I know it's possible to do path mapping:

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


I think you are mistaken. This tag is not part of the DTD for the Servlet
x.y deployment descriptor, at least not up until version 2.3. See for
yourself: <http://java.sun.com/dtd/web-app_2_3.dtd>
Is it possible to do the same but with a URL?

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


Here is one way of doing it:

(1) Create a servlet that will redirect incoming requests to
<http://www.google.com>.

(2) Define a servlet mapping in web.xml which maps "/bbb/*" to the servlet
you just created.

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: Pierre Fortin | last post by:
Hi! "Python Essential Reference" - 2nd Ed, on P. 47 states that a string format can include "*" for a field width (no restrictions noted); yet... >>> "%*d" % (6,2) # works as expected ' ...
6
by: naruto | last post by:
Hi all, I have the following being defined in a A.cxx file. // define in source file. Not exported to the outside world (this cannot be // moved to the header file ) #define CHANNEL_0 0...
10
by: mike | last post by:
regards: Where to find tag mapping-table of HTML translated to XHTML1.0 Any positive suggestion is welcome. thank you May goodness be with you all
1
by: Tamas Hegedus | last post by:
Hi! I am looking for an xml-object mapping tool ('XML Data Binding-design time product') where I can define the mapping rules in 'binding files' and the parser is generated automatically. ...
3
by: Elder Hyde | last post by:
I was reading this interview with Hejlsberg, when suddenly the conversation turned to O/R mapping. Hejlsberg talked as if he had had to design an O/R mapping for .NET (he said ".NET had each one of...
4
by: BentleyInc | last post by:
I'm trying to find a way to add a whildcard application mapping to aspnet_isapi.dll in IIS programmatically.... been looking into IIS administrator reference but didn't find the right function to...
1
by: none | last post by:
Hi, I'm trying to establish table mappings, and I've hit a snag. At the point to where I try to fill the schema (DB_adapter.FillSchema), I get an exception, and the message is as follows:...
1
by: Ram | last post by:
Hey, I'm having a trouble mapping a connecting between 2 of my tables. We have 2 tables - the simplest "dept", "emp" tables which are mapped to 2 classes. Class Dept contains 2 properties for...
6
by: Jan Kucera | last post by:
Hi, does anybody know about wildcard mapping ASP.NET 2 in IIS6? Any tutorial? Thanks, Jan
0
by: edurazee | last post by:
I am trying to create a Unidirectional one-to-one relationship using NHibernate. Example: An Order is given by a Customer. Customer{ID, Name, Address} OrderN{ID, Customer, OrderDate} Here,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.