[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 385
  • Last Modified:

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
--------------------------------------------------------------------------------
0
chaitu chaitu
Asked:
chaitu chaitu
  • 4
  • 3
1 Solution
 
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
 
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now