• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

problem with tld file

 
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 826
Eclipse IDE Oracle Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 67637
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 826
Eclipse IDE Oracle Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
xml version:


Is this the correct one?
 
Bear Bibeault
Sheriff
Posts: 67637
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
My favorite is a chocolate cupcake with white frosting and tiny ad sprinkles.
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic