• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat problem

 
Stan Forest
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am attempting the first HTML (form.html with the web.xml file) in Chapter 3 of the Head First book. It opens in a browser but not in Tomcat. The example pages downloaded with Tomcat open normally. Is there a Tomcat installation problem? Any idea what I am doing wrong?
 
Jyothi Pathuri
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Stan,

Please check whether u have configured the web.xml file properly. check for the correct syntax of <servlet> and <servlet-mapping> tags. also in ur html form check whether the action specified is matching the url-pattern in the web.xml file. The url-pattern in web.xml should start with /
eg: <url-pattern>/SelectColor.do</url-pattern>

Regards,
Jyothi
 
Jyothi Pathuri
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If u r able to see the welcome page of tomcat then there are no installation problems.
 
Saurabh Chaubey
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Stan,

Just check the directory structure of your application.

Regards,
Saurabh
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic