File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Set to go to a url without jsp file name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Set to go to a url without jsp file name" Watch "Set to go to a url without jsp file name" New topic
Author

Set to go to a url without jsp file name

Garden Pak
Greenhorn

Joined: Apr 23, 2013
Posts: 4
I set an Apache Tomcat WAS.

http://localhost:8080/test.jsp

This URL OK.

But I want to make my website available to the following URL(forward the test.jsp file automatically by the following URL).

http://localhost:8080/

How can I set this?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61601
    
  67

Set it as the welcome-file in the deployment descriptor.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
K. Gil
Ranch Hand

Joined: Apr 29, 2011
Posts: 75

and here is how to do this:
How do I override the default home page loaded by Tomcat?
http://wiki.apache.org/tomcat/HowTo#How_do_I_override_the_default_home_page_loaded_by_Tomcat.3F

Your can also set it for your application only, not globally. Depends on your requirements.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Set to go to a url without jsp file name