2 Replies Latest reply on Nov 23, 2007 12:35 AM by Steve Dobson

    JBossAS 4.2.2: Problem with JSTL Core

    Steve Dobson Newbie

      Install of JBoss from jboss-4.2.2.GA.zip on Linux. Implemented a simple Stateful EJB3 so install is fine.

      Started using JSTL in a JSP file and couldn't get <c:if> to work. So I wrote the following index2.jsp simple test:

      <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
      <html>
       <head>
       <title>Test page</title>
       </head>
       <body>
       <c:set var="hello" value="Hello World!"/>
       <p>The variable <code>hello</code> was set to
       "<c:out value="${hello}"/>"</p>
       </body>
      </html>
      


      It generates the following output:
      The variable hello was set to "${hello}"
      


      I was expecting:
      The variable hello was set to "Hello World!"
      


      So what am I doing wrong?

      Thanks for any help.

      Steve