tomcat « Tomcat « JSP-Servlet Q&A

1. Bytes that should be written to ServletOutPutStream

I am wondering if there are specific rules or best practices when creating a byte[] whose content is written to the ServletOutputStream?

  byte[] buffer = new byte[1024];   

2. Tomcat JavaServlet Problem

Hi, Please help me. I am new in JavaServlet I made following configuration.... PATH :C:\Program Files\Java\jdk1.5.0_04\bin;C:\Tomcat 5.5\bin; CLASSPATH :C:\Tomcat 5.5\common\lib\servlet-api.jar;C:\Tomcat 5.5\common\lib\jsp-api.jar;C:\Tomcat 5.5\webapps\ROOT\WEB-INF\classes;C:\Tomcat 5.5\common\lib\commons-el.jar; JAVA_HOME :C:\Program Files\Java\jdk1.5.0_04; I put my servlet class file in C:\Tomcat 5.5\webapps\ROOT\WEB-INF\classes\test.class but the tomcat's index.jsp file is runnig well but my file is not running its gives an error "File not found" Please help me