Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

*welcome-file-list* on tomcat 4.0.3

 
Asher Tarnopolski
Ranch Hand
Posts: 260
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey folks,
<welcome-file-list> doesn't work at all on my
tc 4.0.3. the server continues its default behavour and loads the list of the files in the chosen directory instead of the <welcome-file>.
did anyone have such problem?
10x.
Ash.
 
Engin Okucu
Ranch Hand
Posts: 174
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Asher,
put your <welcome-file-list> after the <servlet> and restart Tomcat to try it again. I give you here an example of my own web application:
<web-app>
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>MyFirstServlet</servlet-class>
<init-param>
<param-name>msg</param-name>
<param-value>My parameter works</param-value>
</init-param>
</servlet>
<welcome-file-list>
<welcome-file>ShowMessage.html</welcome-file>
</welcome-file-list>
</web-app>
I hope it can help you.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic