ejb + servlet + jsp

Hallo everybody,

i try to develop an application with servlet jsp and ejbs but i don't have enough information about this thema.

for example i want to make a simple login szenario :

user type the name and passwd and the system contact with the db and show a wellcome page if the login is succesfull and an error page if the login is unsuccessfull.

which component does was?

the first page can be a html form and post the name and passwd to a servlet.

in this case servlet can make a connection with the DB and can forward the user to next page or error page. BUT where should i use EJB? can i realize the db connection with ejb ? if yes how can interact the servlet with the ejb and how can i store the information (for example address of user) which i have taken from the DB?

thanks a lot

[839 byte] By [kobeyna] at [2007-10-3 6:00:08]
# 1
Its easy :Your Jsp page will be serve as front-end view, and it will call the servlet for authentication. If authentication is passed, it will pass the controlto the enterprise java bean which will be housing the business logic for your application.
vikrant79a at 2007-7-15 0:41:55 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Thanks for the antwort

this means that the servlet connected to DB and execute the sql to authenticate user?

and the second part is my bigger problem :)

what does it mean "it will pass the control

to the enterprise java bean which will be housing the business logic for your application."

what does a java bean really do? how can i find information about them?

and is ther an example in which i can see how servlets, jsps and beans interact?

thanks

kobeyna at 2007-7-15 0:41:55 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...