aspose file tools*
The moose likes JSP and the fly likes Loading url from index.jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Loading url from index.jsp page" Watch "Loading url from index.jsp page" New topic
Author

Loading url from index.jsp page

maganti suryanarayana
Ranch Hand

Joined: Mar 30, 2010
Posts: 53

I am using index.jsp in web.xml. When i am running my web app, i am getting http://localhost/app/index.jsp

I dont want the index.jsp to be printed on the url. I just want http://localhost/app and it should display the webapplication

Any ideas please.


surya
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61434
    
  67

Remove any mention of it from the deployment descriptor and let the default deployment descriptor do its thing (which finds index.jsp if not explicitly referenced)


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
maganti suryanarayana
Ranch Hand

Joined: Mar 30, 2010
Posts: 53

Bear Bibeault wrote:Remove any mention of it from the deployment descriptor and let the default deployment descriptor do its thing (which finds index.jsp if not explicitly referenced)


Hi bear, i have done that and i am getting 404 error. If we pull up yahoo.com or gmail.com we wont fine yahoo.com/index.jsp and gmail.com/index.html. I want my app to run like localhost/app

thanks

surya
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61434
    
  67

Is index.jsp in the root of the context?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Loading url from index.jsp page