error while compiling jsp's in Jdeveloper

hi

When I compile the jsp's in Jdeveloper i am getting the below error ;i put PageTracker.jar in libraries in JDeveloper,still getting this error;

C:\JDeveloper903\jdev\mywork\1304Release3.0\etrans\vendor\VendorLov.jsp
Error(211,18): Invalid element 'body-content' in content of 'tag', expected elements '[teiclass, bodycontent, info, attribute]'.
Error(211,18): Element 'body-content' used but not declared.
Error(15): Unable to load taghandler class: /WEB-INF/lib/PageTracker.jar
--------------------------------------------------------------------------------
LVL 20
chaitu chaituAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TimYatesCommented:
In your tld for VendorLow

Change "bodycontent" to "body-content"

:-)
0
TimYatesCommented:
> VendorLow

Sorry, PageTracker

Basically, you'll have something like:

  <tag>
    <name>myTag</name>
    <tag-class>org.yourcode.YourTag</tag-class>
    <bodycontent>JSP</bodycontent>

You should have:

  <tag>
    <name>myTag</name>
    <tag-class>org.yourcode.YourTag</tag-class>
    <body-content>JSP</body-content>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chaitu chaituAuthor Commented:
MY TLD FILE IS LIKE THIS

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE taglib PUBLIC '-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN' 'http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd'>

<taglib>
  <tlibversion>1.1</tlibversion>
  <shortname>PageTracker.jar</shortname>
  <tag>
    <name>PageTracker</name>
    <tagclass>com.foursoft.esupply.common.tag.PageTracker</tagclass>
    <bodycontent>empty</bodycontent>
    <attribute>
      <name>currentPageNo</name>
      <required>true</required>
      <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
      <name>noOfPages</name>
      <required>true</required>
      <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
      <name>noOfSegments</name>
      <required>true</required>
      <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
      <name>fileName</name>
      <required>true</required>
      <rtexprvalue>true</rtexprvalue>
    </attribute>
  </tag>
</taglib>
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

chaitu chaituAuthor Commented:
i changed bodycontent to body-content  still getting the same erro

C:\JDeveloper903\jdev\mywork\1304Release3.0\etrans\vendor\VendorLov.jsp
Error(211,18): Invalid element 'body-content' in content of 'tag', expected elements '[teiclass, bodycontent, info, attribute]'.
Error(211,18): Element 'body-content' used but not declared.
Error(15): Unable to load taghandler class: /WEB-INF/lib/PageTracker.jar
0
chaitu chaituAuthor Commented:
sorry  body-content to bodycontent  still getting the same error
0
TimYatesCommented:
   <bodycontent>empty</bodycontent>

should be

    <body-content>empty</body-content>
0
TimYatesCommented:
Oh, sorry...  it's a 1.1 tld, not a 1.2 tld...

hmmm...

Can you try:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
<taglib>
  <tlibversion>1.1</tlibversion>
  <shortname>PageTracker.jar</shortname>
  <tag>
    <name>PageTracker</name>
    <tagclass>com.foursoft.esupply.common.tag.PageTracker</tagclass>
    <body-content>empty</body-content>
    <attribute>
      <name>currentPageNo</name>
      <required>true</required>
      <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
      <name>noOfPages</name>
      <required>true</required>
      <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
      <name>noOfSegments</name>
      <required>true</required>
      <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
      <name>fileName</name>
      <required>true</required>
      <rtexprvalue>true</rtexprvalue>
    </attribute>
  </tag>
</taglib>
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.