Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

help:jsp:param parameter not being evaluated problem

paultaylorMay 23 2005 — edited Feb 11 2009
Hi, Im trying to pass a parameter using EL into a jsp:include call but the value isnt getting evaluated in the included jsp it is displayed literally, any ideas what I am doing wrong.

Extract from main page
<c:out value="${Widget.new}" />
<jsp:include page="includes/addeditsubmit.jsp">
   <jsp:param name="isCreate" value="${Widget.new}"/>   
</jsp:include>  
Extract from subpage
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %> 

<c:out value="${param.isCreate}"/> 
  <c:choose>     
    <c:when test="${param.isCreate}">
......
output
 true
${Portfolio.currentLine.new} 
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 11 2009
Added on May 23 2005
19 comments
1,534 views