• 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
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

taglib problem in Netbeans

 
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Netbeans 6.7 version

this is my java class


this is my tld file


this is my tag file


but i have got error in line <%@ taglib prefix="myTags" uri="simpleTags" %> at tag file saying "file /simpleTags not found"

 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to attach error screenshot,but unfortuantly i am unable.
so i have added it as a url.
I am remember here someone says don't use URLs.But i don't have way to show my error.
So please answer my question

http://3.bp.blogspot.com/_bpkZ2BsqXug/S3bqTv40e_I/AAAAAAAAAHM/1Wasgaea1ic/s1600-h/er.GIF
 
Marshal
Posts: 67389
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Samanthi perera wrote:But i don't have way to show my error.


What keeps you from cutting and pasting the error text like everyone else?
 
Bear Bibeault
Marshal
Posts: 67389
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But just looking at your code: look carefully at your TLD file. I mean really carefully. What's wrong with it?
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
still i am unable to find the error??
 
Bear Bibeault
Marshal
Posts: 67389
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What URI do you declare for your TLD?
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
simpleTags
 
Bear Bibeault
Marshal
Posts: 67389
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Really? I see:


You are not paying attention to detail!
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
now this is my TLD file


this is my jsp


now it gives error on jsp line "<%@ taglib prefix="myTags" uri="simpleTags" %>"
it says file simpleTags not found
here is screeenshot

http://3.bp.blogspot.com/_bpkZ2BsqXug/S3eH8J2NV_I/AAAAAAAAAHU/DTqiJfbixwg/s1600-h/tag.GIF
 
Bear Bibeault
Marshal
Posts: 67389
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The URIs must match. And it would be best to follow the correct pattern for a URI, which should look like URL (but isn't).
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my tld class


here is the path of tag file SCWCD\web \WEB-INF\simple.tld


this is my jsp


here is path of jsp
SCWCD\web\MyTag.jsp
 
Bear Bibeault
Marshal
Posts: 67389
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you not do a simple comparison to see if two strings of characters match? For the last time, the URIs must match.

And again, please do not post links to GIFs of your errors. Type them into the post. I have removed the link.

What happens when future searches look at this topic and the links no longer are valid?
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have change the tld files uri to <uri>/WEB-INF/simpleTags</uri> .
But error is still same and there.?
it says unable to load tag handler class foo.SimpleTagTest1 for tag mytags.simple1
 
Bear Bibeault
Marshal
Posts: 67389
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where is the class file for foo.SimpleTagTest1?
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Netbeans IDE.I don't copy it to anywhere.
Java file is in foo\SimpleTagTest1.java
 
Bear Bibeault
Marshal
Posts: 67389
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the IDEs forum.
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to find a class files in netbeans IDE
 
Don't listen to Steve. Just read this tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic