This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Tomcat and the fly likes redirect to /folder with domain name. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » Tomcat
Bookmark "redirect to /folder with domain name." Watch "redirect to /folder with domain name." New topic

redirect to /folder with domain name.

Chris Royce

Joined: Feb 17, 2009
Posts: 1
Hi there,

I've looked around but can't find any guides (I understand) that help me on this...

I have tomcat 5.5 running my app (a war file placed in the webapp folder)

However I'd like it such that goes straight to the myApp folder (hidden if possible). eg.. ---MAPS_TO---->

without anyone seeing this?



Thanks for ANY pointers

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2904

Chris Royce wrote: ---MAPS_TO---->

Edit the index.html/jsp page in the ROOT directory in webapps. Add the jsp:forward tag to redirect the request for domain "/" to the "myApp".

And I thought, you might find this useful

[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2904

And welcome to JR
I agree. Here's the link:
subject: redirect to /folder with domain name.
It's not a secret anymore!