Java - usar web servicie en aplicacion jsp

 
Vista:

usar web servicie en aplicacion jsp

Publicado por Jonathan Martinez (1 intervención) el 06/06/2017 21:56:45
al parecer el metodo no recibe los valores de variable1 y variable2 me podrían ayudar

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>
        action ="miservelet" method="post" >
            <input type="text" name="variable1"/>
             <input type="text" name="variable2"/>
            <input type="submit" name="calcular"/>
            <br>
            el resultado es ;    <%-- start web service invocation --%><hr/>
 
 
 
    <%
    try {
	sv.edu.ufg.ws.Wstriangulo_Service service = new sv.edu.ufg.ws.Wstriangulo_Service();
	sv.edu.ufg.ws.Wstriangulo port = service.getWstrianguloPort();
	 // TODO initialize WS operation arguments here
	double lado1 = 0.0d;
	double lado2 = 0.0d;
	// TODO process result here
	double result = port.area(lado1, lado2);
	out.println("Result = "+result);
    } catch (Exception ex) {
	// TODO handle custom exceptions here
    }
    %>
    <%-- end web service invocation --%><hr/>
 
            </form>
    </body>
</html>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil
Val: 87
Ha aumentado su posición en 2 puestos en Java (en relación al último mes)
Gráfica de Java

usar web servicie en aplicacion jsp

Publicado por Tomas (76 intervenciones) el 08/06/2017 14:34:28
Probaste con:
1
2
3
4
5
6
7
8
9
10
11
12
<form action ="miservelet" method="post" >
 
    <input type="text" name="variable1"/>
 
    <input type="text" name="variable2"/>
 
    <input type="submit" name="calcular"/>
 
    <br>
 
    el resultado es ;    <%-- start web service invocation --%>
</form>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar