The function getValue must be used with a prefix when a default namespace is not specified

Posted on 17-11-2013 06:20 by graham
When I run my JSP app on one server, the following piece of code works fine:
<my:tag attr="${data.getValue('sample')}" />

but on other server I get the following JSP exception:
The function getValue must be used with a prefix when a default namespace is not specified

It turns out the problem is in Tomcat and EL version. This syntax is supported from Tomcat 7.0 with servlet container 3.0.
Comments

 

Add comment

Has this tutorial been helpful to you? Or do you see anything wrong? We appreciate your opinion!
Your comment:
Show formatting hints
HTML is disallowed, but in your text you can use the following markup
  • [code][/code] for a block of code
  • [tt][/tt] for inline code
  • [link]link href|link anchor[/link] for links
  • [b][/b] for bold text
Email:
+ Ask a question
If you have a technical question related to programming and computers, ask it here. Other users will help you solve it!
Unanswered questions
Share your knowledge by helping others solve their problems