File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes URL mapping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "URL mapping" Watch "URL mapping" New topic

URL mapping

Bala RThiagarajan

Joined: Dec 21, 2007
Posts: 8
For my app, i have a req. where in i have to use different URLs and map the same app..

For example


all should point to the same action calss. i am not sure about how to have URL mapping like this. can any one suggest me..?
arulk pillai
Ranch Hand

Joined: May 31, 2007
Posts: 3371
In your web.xml

[] | [Java job hunting know how] | [Java resumes]
Bala RThiagarajan

Joined: Dec 21, 2007
Posts: 8
Hi thanks for you rpley ,

But when
I made /app as the context root and added /group*/*.do in the servlet mapping part of the WEB.xml. But when try to access the app using

http://localhost:8080/app/group1/ i am getting a 404 error..
am i missing some thing here..?
I agree. Here's the link:
subject: URL mapping
jQuery in Action, 3rd edition