DEF_RENDERER = config.getInitParameter("captchaBean");
}
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException,
IOException {
CapSecurityCaptcha captcha = CapAppContext.getBean(DEF_RENDERER);
BufferedImage img = captcha.crateImage();
resp.setContentType("image/jpeg");
OutputStream os = resp.getOutputStream();
ImageIO.write(img, "jpg", os);
os.close();