• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to map my website URL to a Servlet  RSS feed

 
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have my mapping as below



So that I can map the first request coming say www.xyz.net to my first page , it does the work but some of my css and images is not getting displayed .

So I did as below



By doing this my css and images get displayed and everything works fine.

But the problem is I want to display my first page as user puts the url www.xyz.net not www.xyz.net/first

I am putting my jsp pages in WEB-INF/jsps , I am not putting it directly under WEB-CONTENT directory.
 
Rancher
Posts: 3492
39
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the welcome-file-list and add in a welcome-file which would point to your "first" mapping.
 
Mahtab Alam
Ranch Hand
Posts: 391
1
Java MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem resolved

I just put

<welcome-file-list>
<welcome-file>first</welcome-file>
</welcome-file-list>

Thank you man , you pointed to right thing.

I thought we can only mention html or jsp file in welcome-file-list
 
Author and ninkuma
Marshal
Posts: 66676
167
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Mahtab Alam wrote:I thought we can only mention html or jsp file in welcome-file-list


That changed a long time ago.
 
You are HERE! The other map is obviously wrong. Better confirm with this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!