tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin HaleBoyes <>
Subject Taglibs and <rtexprvalue> problem
Date Mon, 10 Sep 2001 16:45:36 GMT
I have one jsp that <jsp:include>'s another and augments the 
request parameters using <jsp:param>.  The included jsp uses a
taglib tag with the <rtexprvalue> attribute set to true.

The problem is I keep getting the following exception when I use
an expression in the attribute field:

            /WEB-INF/jsp/od.jsp(12,53) Attribute from has no value

Here is the taglib.tld excerpt:

    <!DOCTYPE taglib
       PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"



The outer jsp file is simple:

     <jsp:include page="/WEB-INF/jsp/od.jsp">
        <jsp:param name="from" value="p:D"/>

And the included jsp file isn't much more complicated:

     <%@ taglib uri="/WEB-INF/tlds/taglib.tld" prefix="opf" %>

     <hr /> <pre>od.jsp<br />
      <%= request.getParameter("from") %></pre> <hr />

     <opf:orderDetail from="<%= request.getParameter("from") %>">
       PO Number:<opf:orderAttr attribute="ponumber"/>

If I use the included file as shown then I get the
'Attribute from has no value' Parse exception.  If I replace the
<opf:orderDetail> line to a static string <opf:orderDetail from="p:D">
then the file gets included just fine __and__ the getParameter() call
at the top shows that the parameter is, in fact, set.

I really don't understand what I'm doing wrong and would appreciate
any help.  This is Tomcat 4.0b7 on Linux RedHat 7.1.

Kevin HaleBoyes

Do You Yahoo!?
Get your free address at
or your free address at

View raw message