aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Why tomcat act like it error? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Why tomcat act like it error?" Watch "Why tomcat act like it error?" New topic
Author

Why tomcat act like it error?

Tanakorn Numrubporn
Ranch Hand

Joined: Dec 11, 2006
Posts: 81
I use tomcat 5.5.20 and I following the chapter8 of HFSJ book. In the "type attribute" topic (page 353-355)
This is my servlet code.


and "attribute code"


and the result.jsp code



The problem is: when I use the above result.jsp the container will produce the error page. But if I modify the .jsp file to



Then the .jsp page will work fine and show the result without error.

Even if I edit the servlet code from



TO



The page is also work fine, even though the "new Person();" is exactly wrong syntax for java (Person is abstract class) but it work.

I don't understand the tomcat behavior, that act not according to the book.

PS. I recompile the code every time I change it, so it is not the "version" relate problem.

Thank you
Tanakorn
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Check your Tomcat error logs. It should provide you with more information about when the error happens.


A good workman is known by his tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why tomcat act like it error?