Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: [Q] c:import including code to be processed

  1. #11
    Join Date
    Apr 2006
    Location
    Oslo, Norway
    Posts
    23

    Default

    That worked out just great!

    Though I had to alter the taglib a little to this:
    Code:
    <%@ taglib prefix='c' uri='http://java.sun.com/jstl/core_rt' %>
    I also saw some reference to adding
    Code:
    <%@ page isELIgnored="false" %>
    But it works well without it.

    Guess I'll be crushed again tomorrow when I find out I cannot use the scope objects in the included page

  2. #12
    Join Date
    Aug 2004
    Posts
    123

    Default

    Quote Originally Posted by betabagel
    I'm using Apache Tomcat/5.5.9, which I thought was a JSP 2.0 container with EL expressions. Hope I don't have to do some extra configuration to make it work?

    After all I can retrive the variables like this:
    <c: out variable="${includedPage}"/>
    That's because JSTL is handling the EL for you there - it doesn't require EL capability from the container. But your version of Tomcat should understand EL 'out of the box', unless something has disabled that. Definitely check the schema definition, as Yatesco suggests - if it is not for version 2.4, it should be. You could try putting the following line at the top of your problem page as a check:

    <%@ page isELIgnored="false" %>

    This will mean that EL will be interpreted for that page even if Tomcat is set not to for the whole application. (But do update the schema definition)!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •