473,382 Members | 1,365 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Attribute "field1" invalid for tag testtag according to TLD

Here I am trying to use tag files in JSP2.0 with tomcat 5.
test.jsp
-------
%@ taglib prefix="test" tagdir="/WEB-INF/tags" %>
<html>
<head>
<title>Untitled Document</title>
</head>

<body>
initial values
<test:testtag/>
</body>
</html>

testtag.tag Tag file is
-----------

<p>bottom of message </p>
This is working fine.
But when I tried to pass attribute from jsp file as

<test:testtag field1="raja"/>
or

<test:testtag name="field1" value="raja"/>

then I am getting error message as
"Attribute "field1" invalid for tag testtag according to TLD".
Here I wonder why TLD is coming? even for tag files also TLD has to be filled.
If TLD is needed for tag files then what to fill for class name in .TLD file?

even I tried by keeping this below line in .tag file
<%@ attribute name="field1" required="false" %>

There was no use. Please can somebody clarify this.

Yamini.
Jul 17 '05 #1
1 11231
G'Day,

JSP engine will try to locate file test.tld under /WEB-INF/tags directory.
This file basically defines the tag such as attributes and values accepted
correspondingly.
It is very likely that the tag that you are using does not have the
attribute you specified. Have a look at this file and confirm this.

Regards,

Eki
"yamini" <va*****@yahoo.com> wrote in message
news:ae*************************@posting.google.co m...
Here I am trying to use tag files in JSP2.0 with tomcat 5.
test.jsp
-------
<%@ taglib prefix="test" tagdir="/WEB-INF/tags" %>
<html>
<head>
<title>Untitled Document</title>
</head>

<body>
initial values
<test:testtag/>
</body>
</html>

testtag.tag Tag file is
-----------

<p>bottom of message </p>
This is working fine.
But when I tried to pass attribute from jsp file as

<test:testtag field1="raja"/>
or

<test:testtag name="field1" value="raja"/>

then I am getting error message as
"Attribute "field1" invalid for tag testtag according to TLD".
Here I wonder why TLD is coming? even for tag files also TLD has to be filled. If TLD is needed for tag files then what to fill for class name in .TLD file?
even I tried by keeping this below line in .tag file
<%@ attribute name="field1" required="false" %>

There was no use. Please can somebody clarify this.

Yamini.

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Simon Wigzell | last post by:
Is it possible to retrieve data with ASP sorted on 2 fields? I've tried : SELECT * FROM ORDER By Field1 AND Field 2 But it gives an error. I've searched the internet on this topic to no avail....
5
by: Chad Richardson | last post by:
Is there a way in SQL Server 2000 to extract data from a table, such that the result is a text file in the format of "Insert Into..." statements, i.e. if the table has 5 rows, the result would be 5...
3
by: Martin | last post by:
Hello everybody, I have the following question. As a join clause on Oracle we use " table1.field1 = table2.field1 (+) " On SQL Server we use " table1.field1 *= table2.field1 " Does DB2...
3
by: Leo Nunez | last post by:
Hello! I need copy from structure "A" to "B" that contains "strings" in a one line code. Me problem like this : typedef struct tHeader{ char field1; char field2; char field3;
12
by: Assaf | last post by:
Hi all, My client is using an online service provider that processes survey responses. After a user fills survey.aspx and presses the OK button, 2 things need to happen: 1. the data has to...
4
by: Antoine | last post by:
Herfried and Cor:- I used tracing and actually tracked down the code that was causing the problem most likely. I wonder if you wanted to comment on it. Also I wonder if there is a better way...
3
by: domcatanzarite | last post by:
How would one create a button that on click advances the form to the next "non recurring record" as opposed to the next record. The field the button needs to que from has groups of duplicate...
3
by: Kevin Chambers | last post by:
Hi all-- Quick question: has anyone come up with an easy way to take an array and use its elements as part of a WHERE clause? For example: <This obviously doesn't work> SELECT * FROM Table1...
3
by: emgallagher | last post by:
I have a form which lists studies. People can filter the form based on details about the study, such as the study type. Currently users filter via the right click method. I would like to be...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.