aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes  TLD file in HFSJ book(chapter 8) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark " TLD file in HFSJ book(chapter 8)" Watch " TLD file in HFSJ book(chapter 8)" New topic
Author

TLD file in HFSJ book(chapter 8)

liqiang yang
Ranch Hand

Joined: Jan 20, 2008
Posts: 92
Hi all,

I created a TLD file according the book, like this:
-------------------------------------------------------------
<?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/web-jsptaglibrary_2_0.xsd" version="2.0">

<tlib-version>1.2</tlib-version>
<uri>DiceFunctions</uri>
<function>
<name>rollIt</name>
<function-class>foo.DiceRoller</function-class>
<function-signature>
int rollDice()
</function-signature>
</function>
</taglib>
--------------------------------------------------------------------
This file is called myFunctions.tld and under WebContent/WEB-INF

I download and copy the file jstl-1.2.jar to WEB-INF/lib of the WebContent folder.

But I got an error reminder in first line says "Content is not allowed prolog." in IDE. My IDE is eclipse. I have not idea about it?

Can anyone can help? Thanks.


DY.
SCJP 5.0 (100%), SCWCD 5.0 (79%), SCBCD 5.0 (preparing...)
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

As I said here, do not use JSTL1.2. Use JSTL1.1 instead.


[My Blog]
All roads lead to JavaRanch
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Moreover, you should discuss IDE issues in the IDE forum.
liqiang yang
Ranch Hand

Joined: Jan 20, 2008
Posts: 92
Thanks Christophe!
liqiang yang
Ranch Hand

Joined: Jan 20, 2008
Posts: 92
Hi all,

Can I make JSTL 1.2 work with Tomcat 6.0 together properly in Eclipse 3.3.1.1 (first two are latest versions now)?
OR I have to use JSTL 1.1 instead of JSTL 1.2.

Is there any samples available to test custom tag using JSTL 1.2 (including setup TLD files) on Eclipse+Tomcat environment?

Thanks in advance!
liqiang yang
Ranch Hand

Joined: Jan 20, 2008
Posts: 92
Come on guys, pls help me out!!!
 
Consider Paul's rocket mass heater.
 
subject: TLD file in HFSJ book(chapter 8)