I am very new to J2EE and just trying to figure out how to do things.
I built a simple application - a JSP to display data and a servlet to get that data from a database. It seems to work well, but from what I understand it would make sense to make the servlet into a Java Bean instead.
But what do I do after that? How would I call my Bean's methods from the servlet or JSP? And most importantly, how do I get my Bean to run on the server? I am using Apache Tomcat 4.1.
Thanks in advance ...
I built a simple application - a JSP to display data and a servlet to get that data from a database. It seems to work well, but from what I understand it would make sense to make the servlet into a Java Bean instead.
But what do I do after that? How would I call my Bean's methods from the servlet or JSP? And most importantly, how do I get my Bean to run on the server? I am using Apache Tomcat 4.1.
Thanks in advance ...