Re: attribute blah has no value
yea, that works great. I should've known better. Thanx At 02:24 PM 2/21/2001 -0800, you wrote: You are trying to use nested double quotes, which is probably confusing the parser somewhat. Try this instead: hi:hello foo='%= request.getParameter("users") %' / Hope this helps. -- Martin Cooper Tumbleweed Communications - Original Message - From: "Justin Kennedy" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 21, 2001 2:13 PM Subject: attribute blah has no value 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 namehello/name tagclassmycompany.HelloTag/tagclass bodycontentJSP/bodycontent attribute namefoo/name requiredtrue/required rtexprvaluetrue/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 Justin Kennedy Computer Systems Analyst Consortio, Inc. www.consortio.com
attribute blah has no value
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 namehello/name tagclassmycompany.HelloTag/tagclass bodycontentJSP/bodycontent attribute namefoo/name requiredtrue/required rtexprvaluetrue/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
Re: attribute blah has no value
You are trying to use nested double quotes, which is probably confusing the parser somewhat. Try this instead: hi:hello foo='%= request.getParameter("users") %' / Hope this helps. -- Martin Cooper Tumbleweed Communications - Original Message - From: "Justin Kennedy" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 21, 2001 2:13 PM Subject: attribute blah has no value 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 namehello/name tagclassmycompany.HelloTag/tagclass bodycontentJSP/bodycontent attribute namefoo/name requiredtrue/required rtexprvaluetrue/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
Re: attribute blah has no value
What if you changed the outter quotes to single quotes? hi:hello foo='%= request.getParameter("users") %' / I don't know if that makes a difference, but worth a try anyway. tataryn:craig/ Justin Kennedy wrote: 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 namehello/name tagclassmycompany.HelloTag/tagclass bodycontentJSP/bodycontent attribute namefoo/name requiredtrue/required rtexprvaluetrue/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 -- I've been trying to change the world for years, but they just won't give me the source code begin:vcard n:Tataryn;Craig tel;home:952-884-6752 tel;work:952-842-5576 x-mozilla-html:TRUE url:http://www.computer-programmer.org org:Compuware;Professional Division adr:;;3600 West 80th St. Suite 400;Bloomington;MN;55431;United States of America version:2.1 email;internet:[EMAIL PROTECTED] title:Senior Staff Analyst fn:Craig Tataryn end:vcard