Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

configuring struts with tomcat 6.0

 
Krishna Acharya
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there!
i am using the apache tomcat webserver of version 6.0 and struts 1.3.8 jar files(full distribution downloaded from http://struts.apache.org/download.cgi).i have jdk 1.5 installed in my machine. i have a root folder named "simplest" inside the webapp folder. inside which, i have a jsp page homepage.jsp.
The homepage.jsp runs smoothly when i give the url: http://localhost:8080/simplest/homepage.jsp but it doesnot run when i give the url withoug homepage.jsp i.e. http://localhost:8080/simplest/
the error is like:
type: status report
message: /simplest/
description: The required resource(/simplest/) is not avialable.
What might be the problem?
I will be pleased for you if i can get the answers...
Please help me.if you need the files that i am using then email me at khanepal@gmail.com then i will send all. Bye....
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In order to have a JSP be loaded automatically when a user specifies only the web context path, you need to include it in the "welcome file" list in your web.xml file. Example:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic