<%@page contentType=“text/html”%>
<%@page pageEncoding=“UTF-8”%>
<%@page info=“converter” buffer=“2kb” errorPage=“error.jsp”%>
<%–
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.
if (Valor != null && taxa != null) {
<%–
<%@taglib uri=“http://java.sun.com/jsp/jstl/core” prefix=“c”%>
–%>
<% double calculo = 0;
if (request.getParameter(“Calcular”) != null)
{
String Valor = request.getParameter(“Valor”);
String taxa = request.getParameter(“taxa”);
if ((Valor) !== null) {
out.println(“Valor :”+Valor);
out.println(“
taxa :”+taxa);
}
}
%>
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>
Quando o “campo valor” esta em branco esta entrando dentro do if
if ((Valor) !== null) {
out.println(“Valor :”+Valor);
out.println(“
taxa :”+taxa);
}
o que pode estar ocorrendo/???
Evandro