tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Short, Dave" <>
Subject Need help with bean method resolution
Date Tue, 01 Oct 2002 00:31:02 GMT
I receive the following error when trying to invoke a bean method.  
Here's the code:
<%@ page contentType="text/html" %>
<%@ taglib prefix="c" uri="" %>
    <title>Organization Entry Form</title>
  <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">
        <c:if test="${!OrgInfo.isOrgIdValid}">
          <td colspan="2"><font color="red">
            Please enter an Organization Id
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:   <>
For additional commands, e-mail: <>

View raw message