1 Reply Latest reply on Feb 20, 2009 9:54 AM by Wolfgang Knauf

    jstl c:out tag in 5.0GA

    Michal Kalanski Newbie

      Hello !!!

      J have very simple jsp:

      <%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-2"%>
      <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
      <c:set var="p1" value="test1"/>
      <c:set var="p2" value="test2"/>
      <c:out value="${p1}" />
      <c:out value="${p2}" />
      <c:set var="p3" value="${p1}${p2}"/>
      <c:out value="---${p3}---${p1}" />
      <c:out value="${p1} ${p2}" /> --- it's OK
      <c:out value="${p1}${p2}" /> --- here is error: The operator + is undefined for the argument type(s) java.lang.Object, java.lang.Object
      



      This code working on JB4 but not on JB5.0.0GA
      In jboss 5 jstl tag: <c:out value="${p1}${p2}" />
      generates error:
      The operator + is undefined for the argument type(s) java.lang.Object, java.lang.Object

      Where is the problem ?
      Is it JBOSS bug ?