File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Attribute variable invalid for tag set according to TLD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Attribute variable invalid for tag set according to TLD" Watch "Attribute variable invalid for tag set according to TLD" New topic
Author

Attribute variable invalid for tag set according to TLD

bhushan kumarsel
Greenhorn

Joined: Jul 24, 2007
Posts: 12
hi all i am getting this error.
Attribute variable invalid for tag set according to TLD

the related code is

(Edited to disable smilies and put code in CODE tags and escape XML: PC)
[ January 04, 2008: Message edited by: Paul Clapham ]
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

This is entirely a question about JSTL and so it should have been put in the JSP forum. But it's easy to answer, the message says that the "variable" attribute isn't valid in the "c:set" element and that's true. It should be "var" and not "variable".

Also, c:set shouldn't appear in that location inside c:choose. It should be outside the c:choose element. And the code isn't going to work as you expected because you declared a variable named "activationDt" and then tried to use variables named "activatioDate" and "activationDate".
 
jQuery in Action, 2nd edition
 
subject: Attribute variable invalid for tag set according to TLD
 
Similar Threads
problem with jstl tags
NOT EMPTY or NOT NULL?
string comparison with EL / JSTL
Boolean operations inside conditional tags
JSTL Conditional