This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 60050
    
  65

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: 60050
    
  65

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
 
Similar Threads
jar access
Problem with Params
Loading an exe in web page
Restrict JSP Page
automatically invoking jsp