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

Merge branch 'revert-23018fcf' into 'master'

REVIRTIENDO ROMPI TODO XD

See merge request !2
parents 23018fcf 4401183d
No related branches found
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 { ...@@ -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 { ...@@ -25,8 +25,6 @@ public class propuesta extends HttpServlet {
HttpSession session = request.getSession(); HttpSession session = request.getSession();
String user = (String) session.getAttribute("userName"); String user = (String) session.getAttribute("userName");
conexionServidor sys = new conexionServidor();
switch (metodo) { switch (metodo) {
case "ExtenderFinanciación": case "ExtenderFinanciación":
...@@ -42,12 +40,7 @@ public class propuesta extends HttpServlet { ...@@ -42,12 +40,7 @@ public class propuesta extends HttpServlet {
* @parametro userId nick usuario * @parametro userId nick usuario
*/ */
propuestaId = getParameter(request, "propuestaId"); propuestaId = getParameter(request, "propuestaId");
if(user != null){ //user;
respuesta= sys.cancelarPropuesta(propuestaId, user);
}
else{
respuesta = "El usuario tinene que estar logeado.";
}
break; break;
case "Comentario": case "Comentario":
/* /*
...@@ -55,13 +48,8 @@ public class propuesta extends HttpServlet { ...@@ -55,13 +48,8 @@ public class propuesta extends HttpServlet {
* @parametro text msj a guardar * @parametro text msj a guardar
*/ */
propuestaId = getParameter(request, "propuestaId"); propuestaId = getParameter(request, "propuestaId");
//user;
text = getParameter(request, "text"); text = getParameter(request, "text");
if(user != null){
respuesta= sys.Comentario(propuestaId, user, text);
}
else{
respuesta = "El usuario tinene que estar logeado.";
}
break; break;
case "PropuestaCategoría": 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