*/
@Override
public void doPost(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
Credentials credentials = new Credentials();
String host = req.getParameter("hostname");
credentials.setHost(host);
String user = req.getParameter("username");
credentials.setUser(user);
String password = req.getParameter("password");
credentials.setPassword(password);
credentials.setPort(993);
ServletOutputStream out = res.getOutputStream();
res.setContentType("text/html");
res.setCharacterEncoding("UTF-8");
out.println("<html><body bgcolor=\"#CCCCFF\">");