Hi Sujata,

How did you define your Person class?

I suggest you write Person.java as
------------------------------
----

public class Person
{
   public Name name;

   public Person()
   {

   }

   public void setName(Name n){
       name = n;
    }
    public Name getName(){
       return name;
    }
}

------------------------------------

And then initilize via..
-----------------------------------
  org.me.hello.Person person = new org.me.hello.Person();

    Name name = new Name();
    name.setFirstname("firstname");
    name.setLastName("lastname");

    Person person = new Person();
    person.setName(name);

     sce.getServletContext().setAttribute("person", person);

On Thu, Oct 29, 2009 at 8:42 AM, sujata salunkhe
<sujata_salun...@yahoo.com>wrote:

> Hi,
>
> I am also getting below error while running the application.
>
> Did anybody had the same issue?
>
> *javax.el.PropertyNotFoundException: The class 
> 'org.apache.taglibs.standard.examples.beans.Person' does not have the 
> property 'name'*
>
> **
> *Regards,*
> *Sujata*
>
>
>
> --- On *Thu, 22/10/09, derezone <derez...@yahoo.com>* wrote:
>
>
> From: derezone <derez...@yahoo.com>
> Subject: [java ee programming] Re: 4006- homework
> To: "Java EE (J2EE) Programming with Passion!" <
> java-ee-j2ee-programming-with-passion@googlegroups.com>
> Date: Thursday, 22 October, 2009, 10:40 PM
>
>
> I made a suggested change   modiselle
>
> this code: in the init.java
>
> org.me.hello.Person person = new org.me.hello.Person("Derez,"Lusk");
>
>       sce.getServletContext().setAttribute("person", person);
>
> the error is that it cannot  find the symbol - constructor  Person()
>
>
> On Oct 21, 9:37 pm, derezone 
> <derez...@yahoo.com<http://in.mc306.mail.yahoo.com/mc/compose?to=derez...@yahoo.com>>
> wrote:
> > I am not receiving the  static  first name , last name ,  can someone
> > direct me in the right direction
> >
> > Person.java
> > package org.me.hello;
> > ************************************
> > public class Person
> > {
> >     public Name name;
> >
> >     public Person(String firstName, String lastName)
> >     {
> >       name = new Name();
> >
> >       name.setFirstName(firstName);
> >
> >       name.setLastName(lastName);
> >     }}
> >
> > **********************************************
> > Name java.
> >
> > package org.me.hello
> >
> > public class Name
> > {
> >     public String firstName;
> >     public String lastName;
> >
> >     public void setFirstName(String firstName)
> >     {
> >         this.firstName = firstName;
> >     }
> >
> >     public void setLastName (String lastName)
> >     {
> >         this.lastName = lastName;
> >     }
> >
> >     public String getFirstName()
> >     {
> >         return firstName;
> >     }
> >
> >     public String getLastName()
> >     {
> >         return lastName;
> >     }
> >
> > }
> >
> > In the INIT.JAVA
> > This code was placed at the bottom of the code
> >
> >  org.me.hello.Person person = new org.me.hello.Person
> > ("Derez","Lusk");
> >  sce.getServletContext().setAttribute("person", person);
> >
> > Can't get any output
> >
> > any leads ??
>
> ------------------------------
> From cricket scores to your friends. Try the Yahoo! India Homepage!
> >
>  <http://in.rd.yahoo.com/tagline_metro_4/*http://in.yahoo.com/trynew>
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to