-
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?? :confused:
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
-
while we're at it anyone want to tell me JavaBeans are?
-
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' :rolleyes: 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 :cool: 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 :D
HD
-
so they are same in code as a java class? no public bean Refried?
-
No, no unnecessary bean references. They are just the same as Java classes.
HD