• Post Reply Bookmark Topic Watch Topic
  • New Topic

tag in tld; HF S&JSP  RSS feed

 
Lutz Schlenther
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can have more <tag> in tld. Your problem is in JSP. Post the code of JSP.
 
Lutz Schlenther
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the code from the JSP:



and this is the error message:

 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like compiler don't see the changes in tld file.
 
Lutz Schlenther
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends how you do the build and deployment. You are compiling the JSP from ant task or Tomcat itself compile it?
 
Lutz Schlenther
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is Tomcat itself who compile it.
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you restart tomcat after editing tld?
 
Lutz Schlenther
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think Tomcat didn't reload your new tld. Restart him after editing tld.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!