Pierre Delisle wrote:
I suspect the body of the when clause is not executed
because its condition evaluates to false.

You should print the value of param.sqlRequest prior
to the <c:choose> to make sure it has the value "1".

    -- Pierre
Perfect now all work fine!Before I don't had understand choose tag.

True Script:
<c:choose>
<c:when test="${empty param.fSessionId || empty param.sqlRequest }" >
		<c:out value="LOGIN KO" />
</c:when>
<c:when test="${param.sqlRequest == 1}" >
		<c:out value="Entro!" />
		<sql:query var="flashRecordSet" >
		SELECT 	ID_news,data,
			titolo_it as titolo,
			abstract_it as abstract,
			testo_it as testo
		FROM tb_news
		</sql:query>
</c:when>
</c:choose>
sqlRequest was correct 	but the first WHEN was always True.
Now I have understand is quite equal to Switch ;o)

Best Regards Lorenzo Sicilia


--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>

Reply via email to