Package utn.frsf.gabinete.fw.dao

Examples of utn.frsf.gabinete.fw.dao.GenericDAO


  public void doGet(HttpServletRequest req, HttpServletResponse resp){}
 
  public void doPost(HttpServletRequest req, HttpServletResponse resp)
      throws IOException {
    String nombreClase = "utn.frsf.gabinete.fw.sample."+req.getParameter("ent");
    GenericDAO dao = new GenericDAO();
    ObjectMapper mapper = new ObjectMapper(); // can reuse, share globally
    Object obj = null;
    try {
      obj = dao.crearInstancia(mapper.readValue(req.getParameter("datos"),Class.forName(nombreClase)));
    } catch (ClassNotFoundException e) {
      e.printStackTrace();
    }
    System.out.println("obj"+obj.toString()+" / "+mapper.writeValueAsString(obj));
    resp.setContentType("application/json");
View Full Code Here

TOP

Related Classes of utn.frsf.gabinete.fw.dao.GenericDAO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.