I have an issue with using jstl inside JSP on Oracle AS 10g. The issue here is that c:out doesn't work with scriptlet variable. In jsp I have something like this:
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ page import="java.io.*"%>
...
<%
String ERROR = request.getParameter("ERROR");
%>
...
(NOTE I had to use http://java.sun.com/jstl/core instead of http://java.sun.com/jsp/jstl/core - this doesn't work for me). And now I try to print it out with c:out tag:
<p style="color: #FF1A00"><c:out value="<%=ERROR%>" /></p>
But it doesn't work. It prints out <%=ERROR%> as red text. I tried to change web.xml tag to include version number and other definitions inside this tag and this doensn't work.
What I had to do is to set this variable to page context and print it from it
<%
pageContext.setAttribute("ERROR", ERROR);
%>
...
<p style="color: #FF1A00"><c:out value="${ERROR}" /></p>
Can somone please explain me what is the problem here and why I couldn't use " />?
Thanks in advance.