M
Mike Cox
I recently built a simple Tomcat servlet that accessed a database. Reading
through various documentation I discovered JavaBeans. I don't understand
what they are, as I'm already doing database access through the servlet and
a jdbc connection.
Why are there JavaBeans if one can do database access through Servlets? Can
one even do JavaBeans with just Jakarta/Tomcat 4.1? If so, is there a
simple example that shows JavaBeans, Servlets and JSP in action so I could
better understand the relationships between them?
Finally, I have a question about Tomcat itself. If one wanted to deploy an
application how would the users get to it? The default config is to
localhost and to listen on port 8080. How would someone visiting the site
even be able to reach the servlet when it is on port 8080? Or is that
something that everyone changes to port 80 when they are ready to deploy?
In advance I would like to thank you for your help.
through various documentation I discovered JavaBeans. I don't understand
what they are, as I'm already doing database access through the servlet and
a jdbc connection.
Why are there JavaBeans if one can do database access through Servlets? Can
one even do JavaBeans with just Jakarta/Tomcat 4.1? If so, is there a
simple example that shows JavaBeans, Servlets and JSP in action so I could
better understand the relationships between them?
Finally, I have a question about Tomcat itself. If one wanted to deploy an
application how would the users get to it? The default config is to
localhost and to listen on port 8080. How would someone visiting the site
even be able to reach the servlet when it is on port 8080? Or is that
something that everyone changes to port 80 when they are ready to deploy?
In advance I would like to thank you for your help.