Completed

Calculadora restful

Published on the April 29, 2018 in IT & Programming

About this project

Open

En el index.jsp, se ingresa los numeros, se selecciona la operacion por medio de unos radio button,en el restful en los metodos ya implementa la validacion de la operacion
@GET
@Path("/calculadora/suma")
public String Suma(@QueryParam("num1") double num1,@QueryParam("num2") double num2, @QueryParam("operacion") String operacion )    {
if(operacion.equals("suma")){   
return Double.toString($Suma(num1,num2));
}
return null;
}
double $Suma(double num1,double num2) {
double resultado;
resultado = num1 + num2;
return resultado;
}
pero al ingresar los numeros y calcular no funciona
http://localhost:8080/RESTFulCalculator/webresources/calculadora?num1=2&num2=3&operacion=suma&Calcular=calcular&resultado=
aparece el error:HTTP Status 404 - Not Found

Category IT & Programming
Subcategory Web development
What is the scope of the project? Small change or bug
Is this a project or a position? Project
I currently have Not applicable
Required availability As needed
Experience in this type of projects No (I haven’t managed this kind of project before)
Roles needed Developer

Delivery term: April 30, 2018

Skills needed

Other projects posted by I. R.