Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

index page in jsp  RSS feed

 
Jenn Person
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Trying to make a long story short, I'm making a web application where a user can log in, and upon doing so their name would be printed on the page while they traverse throughout the rest of the application. I'm doing this using the MVC pattern. I'd like to make this jsp page my index.

But I know that when a user enters my page URL for example http://www.myWebApp.com the browser will search for an index.html or default.html file. Is there a way I can set my index to a jsp file??
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your web.xml file, create a welcome-file-list node:


Put it between the mime-mapping element and the error page mapping if you're using a pre-2.4 spec compliant container.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!