Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to map my website URL to a Servlet  RSS feed

 
Mahtab Alam
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.
 
Dave Tolls
Ranch Hand
Posts: 2504
27
  • 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
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65830
134
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!