tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Short, Dave" <dave.sh...@pfizer.com>
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="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:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message