heres some sample code, works great in netscape, garbage in ie. according to
docs from netscape, it is supported in navigator 1.1+
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class multipartServlet extends HttpServlet{
public void init (ServletConfig config) throws ServletException {
super.init(config);
}
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
{
res.setContentType("multipart/x-mixed-replace;boundary=---BoundaryString---");
PrintWriter out = res.getWriter();
out.println("");
out.println("---BoundaryString---");
out.println("Content-Type: text/html");
out.println("");
out.println("<html><body>blah</body></html>");
out.println("---BoundaryString---");
out.flush();
try {
Thread.sleep(5000);
}
catch (Exception e) {}
out.println("Content-Type: text/html");
out.println("");
out.println("<html><body>success</body></html>");
out.close();
}
}
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]