Skip to content
Snippets Groups Projects
Commit 4401183d authored by Mariano Ezequiel Burguete Sellanes's avatar Mariano Ezequiel Burguete Sellanes
Browse files

Revert "comentario y cancelar propuesta"

This reverts commit 23018fcf
parent 23018fcf
Branches revert-23018fcf
No related tags found
2 merge requests!2REVIRTIENDO ROMPI TODO XD,!1porqueria
No preview for this file type
No preview for this file type
......@@ -87,13 +87,5 @@ public class conexionServidor {
}
}
public static String cancelarPropuesta(String idPropuesta, String usr){
sys = Factory.getInstance();
return sys.CancelarPropuesta(idPropuesta, usr);
}
public static String Comentario(String propuestaId,String user,String text){
sys = Factory.getInstance();
return sys.Comentario(propuestaId, user, text);
}
}
......@@ -25,8 +25,6 @@ public class propuesta extends HttpServlet {
HttpSession session = request.getSession();
String user = (String) session.getAttribute("userName");
conexionServidor sys = new conexionServidor();
switch (metodo) {
case "ExtenderFinanciación":
......@@ -42,12 +40,7 @@ public class propuesta extends HttpServlet {
* @parametro userId nick usuario
*/
propuestaId = getParameter(request, "propuestaId");
if(user != null){
respuesta= sys.cancelarPropuesta(propuestaId, user);
}
else{
respuesta = "El usuario tinene que estar logeado.";
}
//user;
break;
case "Comentario":
/*
......@@ -55,13 +48,8 @@ public class propuesta extends HttpServlet {
* @parametro text msj a guardar
*/
propuestaId = getParameter(request, "propuestaId");
//user;
text = getParameter(request, "text");
if(user != null){
respuesta= sys.Comentario(propuestaId, user, text);
}
else{
respuesta = "El usuario tinene que estar logeado.";
}
break;
case "PropuestaCategoría":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment