parametros
Publicado por karibu (3 intervenciones) el 12/01/2009 10:36:02
Hola tengo un problema con un paso de parametros
En mi clase v.java tengo esto
....
request = getRequest();
HttpServletRequest response = getResponse();
HttpServletResponse Integer intValue = new Integer(4);
request.setAttribute("Integer", intValue);
....
despues quiero recuperar el valor "Integer" en un .jsp y lo hago
<%=request.getAttribute("Integer")%>
<% if ((request.getAttribute("Integer")) == "") {%>
<strong>Estamos en cuatro</strong>
<% } else {%>
<strong>Distinto de cuatro</strong>
<% } %>
Pero lo que recibe es un null
¿alquien puede ayudarme?
Gracias, saludos
En mi clase v.java tengo esto
....
request = getRequest();
HttpServletRequest response = getResponse();
HttpServletResponse Integer intValue = new Integer(4);
request.setAttribute("Integer", intValue);
....
despues quiero recuperar el valor "Integer" en un .jsp y lo hago
<%=request.getAttribute("Integer")%>
<% if ((request.getAttribute("Integer")) == "") {%>
<strong>Estamos en cuatro</strong>
<% } else {%>
<strong>Distinto de cuatro</strong>
<% } %>
Pero lo que recibe es un null
¿alquien puede ayudarme?
Gracias, saludos
Valora esta pregunta


0