aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Illegal Attribute Value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Illegal Attribute Value" Watch "Illegal Attribute Value" New topic
Author

Illegal Attribute Value

Ricardo Cortes
Ranch Hand

Joined: Jan 23, 2002
Posts: 140
Can someone tell me why the following attribute value is illegal?
<mytags:tag value="<%="hi!"%>" />
I am thinking it's because the double quotes surround the text "hi!" are not escaped but I am not sure.
Also, why is the above not legal while the following is legal?:
<x:tag value='<%= "hi!" %>'/>
[ May 03, 2002: Message edited by: Ricardo Cortes ]

Sun Certified J2EE Architect for the J2EE Platform (Part 1)<br />Sun Certified Web Component Developer for the J2EE Platform<br />Sun Certified Programmer for the Java 2 Platform
Chintan Rajyaguru
Ranch Hand

Joined: Aug 19, 2001
Posts: 341
In addition to double quotes, you should also make sure that the attribute has been specified to take request time value. This means, for this attribute, tld file should read
rtexprvalue=true


ChintanRajyaguru.com
SOADevelopment.com - Coming soon!
 
 
subject: Illegal Attribute Value