Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with tld file

 
vijayakumar durai
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i got this exception

org.apache.jasper.JasperException: /registration.jsp(80,4) According to TLD or attribute directive in tag file, attribute items does not accept any expressions

my tld file is

country.tld


registration.jsp



can any body tell what is problem



thanks in advance
 
vijayakumar durai
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i find the error expression language is not supporting in my jsp page. can any body tell what i have to do
 
Srikanth Nutigattu
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I can see,

1. you have not specified <uri> under the <taglib>
2. I have used a EL in you code and its working fine.
3. You need to check the Support class and also the bean class if the following code snippet is correct.
 
sudipto shekhar
Ranch Hand
Posts: 823
Chrome Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by vijayakumar durai:

org.apache.jasper.JasperException: /registration.jsp(80,4) According to TLD or attribute directive in tag file, attribute items does not accept any expressions



country.tld



can any body tell what is problem





As i see you are missing the <attribute> tag.
The attribute tag declares the <name> of the attribute of the bean,if any. Secondly the <required> tag, which tells whether the value to the attribute is required. Thirdly the <rtexprvalue> tag which tells whether the value can be runtime expression or not.
<tag>
<attribute>
<name></name>
<required></required>
<rtexprvalue></rtexprvalue>
</attribute>
</tag>
If your custom tag have an attribute to which you are passing value at the time of calling the tag
you need the attribute tag.

Hope this helps.
[ November 25, 2008: Message edited by: Sudipto Shekhar ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64838
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using JSP 2.0, you are using the wrong version of the JSTL. Please see the JSP FAQ for correctly setting things up for JSP 2.0.
 
sudipto shekhar
Ranch Hand
Posts: 823
Chrome Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
xml version:


Is this the correct one?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64838
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That the TLD header, it has nothing to do with the JSTL.

You are importing the JSTL 1.0. You need to use JSTL 1.1 with JSP 2.0.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic