In my FileServeServlet, the HTML file is served as follow;
---------------------------------------------------------------------------------

public void service(HttpServletRequest ...
//...
String path = req.getPathTranslated();
try {
   fis = new FileInputStream(path);
   byte[] buf = new byte[1024 * 4]; // 4K buffer
   int bytesRead;

   while ( (bytesRead=fis.read(buf)) != -1 ) {
    out.write(buf, 0 , bytesRead);
   }
//....
 ---------------------------------------------------------------------------------

It works fine. But, I have no idea about serving jsp files.

How can I serve jsp files in FileServeServlet?

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to