0 Replies Latest reply on May 12, 2006 4:11 PM by oschei

    jstl with jboss-4.0.4

    oschei

      Hi JBoss Community,

      I hope you can help me out. I have tried many things but with no right solution.
      It loops in foreach but prints not the variable out.

      Here is my source:
      <%@ page language="java" import="java.util.*"%>
      <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
      <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
      <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
      <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
      <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


      showAllCategory.jsp


      <%
      session.setAttribute("Site1","http://www.jboss.com");
      %>
      <%=session.getAttribute("Site1")%>
      <c:out value = "${sessionScope.Site1}"/>
      <c:forEach var="i" begin="1" end="10" step="1">
      <c:out value="${i}" />
      </c:forEach>

      Output on monitor:
      http://www.jboss.com ${sessionScope.Site1} ${i} ${i} ${i} ${i} ${i} ${i} ${i} ${i} ${i} ${i}

      I use jboss-4.0.4.CR2 and have copied the standard.jar and jstl.jar in the lib folder of jboss.

      Many thanks in advance

      Olaf