Win a flower (🌹) or copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java (📚) this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
master stewards:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
garden masters:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
gardeners:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

tag in tld; HF S&JSP

 
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).

 
pioneer
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
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
pioneer
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
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
pioneer
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
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is Tomcat itself who compile it.
 
David Ulicny
pioneer
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you restart tomcat after editing tld?
 
Lutz Schlenther
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
pioneer
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.
 
I would challenge you to a battle of wits, but I see you are unarmed - shakespear. Unarmed tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!