When writing a JSP file, for example, the JSP file is stored in Tomcat 5.0 / WebApps / X. When you use JavaBean, compiled .Class files should be stored in the X directory / web-inf / class, such as file root /Product/.jsp When using JavaBean, the BEAN file should be stored in root // web-inf / class!