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

EL syntax error

 
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my tag file .i put it WEB-INF/tag directory


this is the java class which is in foo package


this is jsp file

there are two errors in this file.
1) cannot find the tag library descripter for DiceFunctions ("uri="DiceFunctions"")
2)EL syntax error ("${mine:rollIt()}")
wher is the error?


 
Marshal
Posts: 67418
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

anarkali perera wrote:this is my tag file .i put it WEB-INF/tag directory


That's not a tag file -- it's a TLD, and it should be in WEB-INF. Why is it not indented?
 
Ranch Hand
Posts: 453
Google Web Toolkit Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think everything here is correct .can you please provide us some more informations.

avi sinha



 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anyway should i insert something to web.xml?
 
Bear Bibeault
Marshal
Posts: 67418
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

anarkali perera wrote:anyway should i insert something to web.xml?


No.
 
Ranch Hand
Posts: 437
Oracle Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Anarkali.

In tld file there is a space between '<' and 'taglib'. I think this causes the problem. Remove that and redeploy.
 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no.I change it .still problem is there
 
Chinmaya Chowdary
Ranch Hand
Posts: 437
Oracle Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Anarkali.
Can you please post, exact error message?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As this a taglib rather than a tag, you'll need to specify it in web.xml - something like:-



... just substitute in the filename your stored your taglib under for 'tagfile.tld'

or alternatively, put the tld into WEB-INF/lib directory as a JAR.

Remember that the URI is just an identifier, not a physical location, so you need to provide the mapping between the URI and physical location in some way, otherwise the compiler won't know what to do!
 
Bear Bibeault
Marshal
Posts: 67418
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Simon Huggins wrote:As this a taglib rather than a tag, you'll need to specify it in web.xml ...


No, you don't. Modern containers will automatically find the TLD files under WEB-INF without the need for declarations in the deployment descriptor.

Remember that the URI is just an identifier, not a physical location, so you need to provide the mapping between the URI and physical location in some way, otherwise the compiler won't know what to do!


The container will automatically create the mapping from the information in the <uri> element of the TLD.
 
See ya later boys, I think I'm in love. Oh wait, she's just a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic