Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Tim Cooke
Devaka Cooray
Sheriffs:
Liutauras Vilda
paul wheaton
Rob Spoor
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Piet Souris
Mikalai Zaikin
Bartenders:
Carey Brown
Roland Mueller
Forum:
JSP
attribute error
Samanthi perera
Ranch Hand
Posts: 510
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
this is my tag file
<?xml version="1.0" encoding="UTF-8" ?> <taglib xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd" version="2.0"> <tlib-version>1.2</tlib-version> <short-name>csajsp-taglib</short-name> <tag> <description>Outputs 50-digit primes</description> <name>classicOne</name> <tag-class>foo.Classic1</tag-class> <body-content>scriptless</body-content> </tag> <tag> <description>Outputs 50-digit primes</description> <name>classicSecond</name> <tag-class>foo.MyIteratorTag</tag-class> <body-content>scriptless</body-content> </tag> <tag> <name>select</name> <tag-class>foo.SelectTagHandler</tag-class> <body-content>empty</body-content> <attribute> <name>optionsList</name> <type>java.util.List</type> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <attribute> <name>name</name> <required>true</required> </attribute> <attribute> <name>size</name> <required>true</required> </attribute> </tag> </taglib>
it gives this error
"cvc-complex-type.2.4.d: Invalid content was found starting with element 'required'. No child element is
expected at this point." in near this attribute
<attribute> <name>optionsList</name> <type>java.util.List</type> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute>
But if i remove <type>java.util.List</type> in attribute error also gone.
Christophe Verré
Sheriff
Posts: 14691
16
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Try moving the type tag after the rtexprvalue tag.
[My Blog]
All roads lead to JavaRanch
Something must be done about this. Let's start by reading this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
TLD files variable element
Doubt in JSP Custom tags (Simple Tag) in Dynamic Drop Down
setDynamicAttribute not being invoked
Why in tld,you need add attribute type?
Simple Tag with Attribute
More...