HI all,

I'm trying to use a dynamic value for an attribute of my tag. but I'm 
gettin this error:
org.apache.jasper.compiler.ParseException: 
D:\jakarta-tomcat-3.2.1\webapps\mycompany\test.jsp(6,46) Attribute users 
has no value at 
org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:499)


Here's my tag entry in my tld file

hi.tld

     <tag>
         <name>hello</name>
         <tagclass>mycompany.HelloTag</tagclass>
         <bodycontent>JSP</bodycontent>
         <attribute>
             <name>foo</name>
             <required>true</required>
             <rtexprvalue>true</rtexprvalue>
         </attribute>
     </tag>

mycompany.HelloTag simply calls out.print(foo)

Here's the JSP that generates the error.
<hi:hello foo="<%= request.getParameter("users") %>" />

users doesn't actually exist in the request but it should just return null 
right ?
so when I change my jsp to this:
<%
String bar = request.getParameter("users");
%>
<hi:hello foo="<%= bar %>" />

it prints out "null" and works just fine.

Any suggestions ?
Thanx

Reply via email to