<%@page contentType=“text/html”%>
<%@page pageEncoding=“UTF-8”%>
<%–
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library… action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
–%>
<%–
<%@taglib uri=“http://java.sun.com/jsp/jstl/core” prefix=“c”%>
–%>
<%@page info=“converter” buffer=“2kb” errorPage=“error.jsp”%>
evandro<% double calculo = 0;
if (request.getParameter("calcular") != null)
{
String valor = request.getParameter("valor");
String taxa = request.getParameter("taxa");
if (valor != null && taxa != null) {
out.println("valr "+valor);
out.println("<br>taxa "+taxa);
double val= Double.parseDouble(valor);
double tax= Double.parseDouble(taxa);
calculo = val*tax;
out.println("<br>total "+calculo);
}
}
%>
Evandro ARaujo de Abreue
<br>
valor
taxa
</form>
<%--
This example uses JSTL, uncomment the taglib directive above.
To test, display the page like this: index.jsp?sayHello=true&name=Murphy
--%>
<%--
<c:if test="${param.sayHello}">
<!-- Let's welcome the user ${param.name} -->
Hello ${param.name}!
</c:if>
--%>
</body>
Criei um botao proximo, e gostaria de quando apertasse proximo ira para proxima pagina.jsp
Como eu posso fazer isso