Hello,
Here is my servlet code
Code:
Public class Servlet_File exends HttpServlet {
Public void init(ServletConfig config) throws ServletException {
great.init(config);
}
Public void destroy() {
}
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, java.io.IOException {
String ty = request.getParameter( "ty" );
String fn = request.getParameter( "fn" );
String ex = request.getParameter( "ex" );
Servlet_Utils.Send_file(true, response, fn, ty +"/"+ ex,1024,8);
}
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, java.io.IOException {
processRequest(request, response);
}
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, java.io.IOException {
processRequest(request, response);
}
}
Bookmarks