You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Short, Dave" <da...@pfizer.com> on 2002/10/01 02:31:02 UTC
Need help with bean method resolution
I receive the following error when trying to invoke a bean method.
Here's the code:
<%@ page contentType="text/html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
<head>
<title>Organization Entry Form</title>
</head>
<body bgcolor="white">
<jsp:useBean id="OrgInfo" scope="request"
class="orginfo.OrganizationBean" />
<form action="OrganizationValidate.jsp" method="post">
<input type="hidden" name="submitted" value="true">
<table>
<c:if test="${!OrgInfo.isOrgIdValid}">
<tr><td></td>
<td colspan="2"><font color="red">
Please enter an Organization Id
</font></td></tr>
</c:if>
javax.servlet.ServletException: javax.servlet.jsp.JspException: An error
occurred while evaluating custom action attribute "test" with value
"${!OrgInfo.isOrgIdValid}": Unable to find a value for "isOrgIdValid" in
object of class "orginfo.OrganizationBean" using operator "."
Here's how the method is defined in OrganizationBean:
public boolean isOrgIdValid()
{
boolean isValid = false;
if (organizationId != 0)
{
isValid = true;
}
return isValid;
}
Any help would be greatly appreciated.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>