Results 1 to 5 of 5

Thread: Using Beans in JSP

  1. #1

    Thread Starter
    Addicted Member HairyDave's Avatar
    Join Date
    Aug 2002
    Location
    Er...I can't remember.
    Posts
    196

    Question Using Beans in JSP

    I appologise if this is the wrong forum - but I couldn't tell which one to post in.

    I have some examples of JSP using beans - but they don't work as the bean classes cannot be found. I don't know why but I'm guessing that they are in the wrong path??

    Has anyone had this problem before and what can be done to solve it. Although its not the newest version I'm using tomcat 3.

    Thanks in advance

    HD

  2. #2
    Hyperactive Member CaptainPinko's Avatar
    Join Date
    Jan 2001
    Location
    London, Ontario, Canada
    Posts
    332

    Question

    while we're at it anyone want to tell me JavaBeans are?
    "There are only two things that are infinite. The universe and human stupidity... and the universe I'm not sure about." - Einstein

    If you are programming in Java use www.NetBeans.org

  3. #3

    Thread Starter
    Addicted Member HairyDave's Avatar
    Join Date
    Aug 2002
    Location
    Er...I can't remember.
    Posts
    196
    Don't quote me on this but I think:

    JavaBeans are classes written in java that have a set of properties. These properties can all have get and set methods e.g. getALife() and setALife. They can be used (in my case) through jsp. The get method can be used to 'get' the value of a property. This does not mean just giving a variable value back - it could mean getting something from a DB then doing some set of functions to etc. then giving the value back.

    I suppose a JavaBean can be considered to be a 'limited' Java class. They are capable of communicating events to each other and more importantly for me they can interact rather well with jsp and forms.

    I have now sorted out my foolish problem and am happy to help those who are not as learned

    HD

  4. #4
    Hyperactive Member CaptainPinko's Avatar
    Join Date
    Jan 2001
    Location
    London, Ontario, Canada
    Posts
    332
    so they are same in code as a java class? no public bean Refried?
    "There are only two things that are infinite. The universe and human stupidity... and the universe I'm not sure about." - Einstein

    If you are programming in Java use www.NetBeans.org

  5. #5

    Thread Starter
    Addicted Member HairyDave's Avatar
    Join Date
    Aug 2002
    Location
    Er...I can't remember.
    Posts
    196
    No, no unnecessary bean references. They are just the same as Java classes.

    HD

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