Commit | Line | Data |
---|---|---|
78f5d120 FT |
1 | package dolda.jsvc.j2ee; |
2 | ||
3 | import dolda.jsvc.*; | |
4 | import java.io.*; | |
5 | import javax.servlet.http.*; | |
6 | ||
7 | public class Servlet extends HttpServlet { | |
8 | private Responder root; | |
9 | ||
10 | public void init() { | |
11 | ||
12 | } | |
13 | ||
14 | public void service(HttpServletRequest req, HttpServletResponse resp) { | |
15 | try { | |
16 | req.setCharacterEncoding("UTF-8"); | |
17 | resp.setCharacterEncoding("UTF-8"); | |
18 | } catch(UnsupportedEncodingException e) { | |
19 | throw(new Error(e)); | |
20 | } | |
21 | Request rr = new J2eeRequest(getServletConfig(), req, resp); | |
22 | root.respond(rr); | |
23 | } | |
24 | } |