The moose likes JSP and the fly likes tag in tld; HF S&JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "tag in tld; HF S&JSP" Watch "tag in tld; HF S&JSP" New topic
Author

tag in tld; HF S&JSP

Lutz Schlenther
Greenhorn

Joined: Sep 19, 2005
Posts: 6
Relating to HF S&JSP S.503ff my question is:
could I have more than one <tag> . . . </tag> in one tld? If I try the first 2 examples in HF S&JSP I always got trouble when compiling the JSP. (NetBeans 4.1 / Tomcat 5.5.7).

David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
You can have more <tag> in tld. Your problem is in JSP. Post the code of JSP.


SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Lutz Schlenther
Greenhorn

Joined: Sep 19, 2005
Posts: 6
This is the code from the JSP:



and this is the error message:

David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
Looks like compiler don't see the changes in tld file.
Lutz Schlenther
Greenhorn

Joined: Sep 19, 2005
Posts: 6
Thanks for reply. I tried to change the name in the <uri> tag in the tld and corresponding in the uri attribute in the taglib directive (eg. 'xyz') and . . . . . it works!

But when I renamed it again 'simpleTags' the error occured again!??? I dont't understand it really but the code is running!

Thanks Lutz
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
Depends how you do the build and deployment. You are compiling the JSP from ant task or Tomcat itself compile it?
Lutz Schlenther
Greenhorn

Joined: Sep 19, 2005
Posts: 6
May be the problem occured because the name of the tld ('simpleTags.tld') was the same as the <uri>-name ('simpleTags')? The only idea I've got now.
Lutz
Lutz Schlenther
Greenhorn

Joined: Sep 19, 2005
Posts: 6
It is Tomcat itself who compile it.
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
Did you restart tomcat after editing tld?
Lutz Schlenther
Greenhorn

Joined: Sep 19, 2005
Posts: 6
No, I did a 'Deploy Projekt' on the projects window in Netbeans 4.1 after editing the tld then I run the JSP;
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
I think Tomcat didn't reload your new tld. Restart him after editing tld.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tag in tld; HF S&JSP
 
Similar Threads
cannot find the declaration of element taglib
Why in tld,you need add attribute type?
CustomTag
taglib problem in Netbeans
simple tags