Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%--
- Document : index
- Created on : 22 may 2019, 10:41:50
- Author : Alumno - Desarrollo
- --%>
- <%@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>
- <%
- double suma = 15 + 25;
- //Crear una variable con Request
- request.setAttribute("resultado", suma);
- %>
- <h1>Expression Language ${param.suma}</h1>
- <h1 name="resultado"> ${resultado}</h1>
- <form action="recibir.jsp" method="POST">
- <input type="text" name="txtusuario">
- <input type="submit" name="enviar" value="enviar">
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement