aspose file tools*
The moose likes JSP and the fly likes problem with  tld file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "problem with  tld file" Watch "problem with  tld file" New topic
Author

problem with tld file

vijayakumar durai
Ranch Hand

Joined: Aug 18, 2008
Posts: 153
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

Joined: Aug 18, 2008
Posts: 153
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

Joined: Oct 30, 2007
Posts: 114
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

Joined: Apr 02, 2008
Posts: 823

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 ]

Regards, Sud.
SCJP 5 ScjpFAQ JLS
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61769
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
sudipto shekhar
Ranch Hand

Joined: Apr 02, 2008
Posts: 823

xml version:


Is this the correct one?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61769
    
  67

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with tld file