I'm new to
Java and its related technologies, and I've been looking through a couple of books, but no books seem to address a basic question I have. I know
jsp are used to seperate the presentation from the business logic, but when should you write a function(method) in a bean or
servlet? I know bean methods can only be public, but if I meet this requirement then where should I put my code-in a bean or servlet? And what is the interaction b/w a jsp, bean and servlet if they all exist in an environment.