hi how I have problems with my servlet code because here where it says account is a parameter of my table and in fact before putting what is in the goGET I had put something like that
//InsertarPublication ObtenerIdRedS= new InsertarPublication(pool);
//String id=ObtenerIdRedIM.procedure("juan barragan") ;
//response.getOutputStream().write(id.getBytes());
The above is in the doGet and I was returning an int value that is what I need to return but that was just to put a parameter in hard and I wanted to assign a parameter that the client side can enter
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
String cadena = (String)req.getAttribute("cuenta");
resp.getWriter().print("<p> RedKM" + cadena + "</p>");
req.getSession().setAttribute("cuenta",new Integer(22));
}
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
}
}