I actually ran into a similar problem not too long ago. the problem that I
had was that the version of the tld i was using was older than struts jar.
Sounds weird i know. It happened because of the stupid WSAD wizard i used.
didn't make it a servlet 2.2 web app. it put the "newer" but still old
version of the jar in there which requires servlet2.3 and jsp1.2.
Particularly a problem on WAS4. if you are using WAS and are deploying
from it you might just make sure the curtains match the carpet if ya know
what i mean...
Savan Thongvanh
Berkley Technology Services
515.278.7725
"Morrow, Steve
D." To: "'[EMAIL PROTECTED]'" <[EMAIL
PROTECTED]>
<[EMAIL PROTECTED] cc:
om> Subject: <c:out> unable to find value
11/03/2003 02:01
PM
Please respond to
"Tag Libraries
Users List"
I have a session-scoped bean structured (in part) as follows:
public class Customer {
public Integer id;
public String name;
public Integer getId() {
return id;
}
public String getName() {
return name;
}
}
In the JSP, <c:out value="${customer.name}" /> works as expected. However,
<c:out value="${customer.id}" /> does not - it throws an error that the JSP
is "unable to find a value for "id" in object..." I added the following
method, which works fine with a value of ${customer.ID}:
public String getID() {
return id.toString();
}
I googled, but was unable to find an answer, or anyone experiencing the
same
sort of problem. I'm sure I'm missing something pretty simple, but I could
use some more eyes on the problem. Why is the tag unable to find
${customer.id} (i.e. use the getId() method)?
I am using Jakarta's 1.0.4 taglibs...
This message and any files transmitted with it are confidential and are
intended solely for the use of the individual or entity to whom they are
addressed. If you have received this email in error, please delete the
email and any files transmitted with it entirely from your computer.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
CONFIDENTIALITY NOTICE: This e-mail and the transmitted documents contain
private, privileged and confidential information belonging to the sender.
The information therein is solely for the use of the addressee. If your
receipt of this transmission has occurred as the result of an error, please
immediately notify us so we can arrange for the return of the documents.
In such circumstances, you are advised that you may not disclose, copy,
distribute or take any other action in reliance on the information
transmitted.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]