Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet in welcome file list Error  RSS feed

 
praveen sharma
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good Morning Everyone,

I want to add my servlet in web.xml tag but when i deploy my war file it never run .so anyone who can help me Execute when i deploy my war file.


Waiting ....Urgent

Praveen
scjp1.4
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "it never run"? URLs listed in the welcome-file-list aren't run at startup - they're used to determine what to send to the client if the root URL (or the root of a directory) is accessed.
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not necessarily only the root. You can have a welcome file run if you try to access a directory under the root as well. Yo can have a welcome file for each directory under the root as well as the root itself
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf, I just re-read your comment. Are we saying the same thing? If we are, my apologies :-)
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like we are indeed saying the same thing. No harm done :-)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!