[Simpleweb-Support] Problem of trying simple
Brought to you by:
niallg
From: Carfield Y. <car...@ca...> - 2005-09-27 19:11:52
|
Like to try out simple to see if it is work better than normal servlet. However I am not sure how to port some method from servlet to simple api: 1) HttpServletResponse.setStatus(HttpServletResponse.SC_NOT_FOUND) , how do I set response header status? 2) HttpServletResponse.sendRedirect(), how do I redirect user to some liink= ? 3) HttpServlet.getServletContext().getMimeType(file), is it possible to get the typical MIME type of a file? Context.getMimeType() is the correct method? 4) Any example of how http request work? E.g. how to handle multipart reque= st? |