• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL syntax error

 
anarkali perera
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?


 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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?
 
avi sinha
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
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anarkali perera wrote:anyway should i insert something to web.xml?

No.
 
Chinmaya Chowdary
Ranch Hand
Posts: 434
  • 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: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Anarkali.
Can you please post, exact error message?
 
Simon Huggins
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
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic