Results 1 to 13 of 13

Thread: Can't figure out this JasperException

Threaded View

  1. #1

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    Resolved Can't figure out this JasperException

    I keep getting the following error but i don't know how to fix it. Everything looks to be in order.

    org.apache.jasper.JasperException: Cannot find any information on property 'firstname' in a bean of type 'com.MyCompany.Beans.OutputInfo'

    Here is a part of my .jsp page
    Code:
    First Name:<jsp:setProperty name = "outputinfo" property = "firstname" 
         value = "${param.fname}"/><br>
    and here is part of my bean
    Code:
    package com.MyCompany.Beans;
    
     import java.io.*; 
    
     public class OutputInfo implements Serializable{
     
     private String firstname;
    
     public OutputInfo(){}
     
     public void setFirstName(String firstname){
      this.firstname = firstname; 
     }
     public String getFirstName(){
      return firstname; 
     }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width