hi guys!am new here.I am developing a hospital management system and part of the requirements is that users should be able to retrieve their password when they supply their date of birth.The password should be displayed on the screen therein,no sending to email or phone.i have my bean class,my servlet and
the jsp page.Each time i supply a dateofbirth get an instantiationException saying that the bean is not found in the scope.Please any heads up?i will appreciate.thank you
This is a question about JSPs, so I'm moving it to our JSP forum. The Ranch Office is for questions about the site itself.
I believe jsp:useBean is an outdated tag. At least, I haven't seen it used for many years now. It's been replaced with Expression Language (EL) and JSTL. Also, generally speaking, you don't want to access database objects directly through JSPs. Even in the simplest web application, you would want a servlet to retrieve elements from the database, put them into request attributes, and then forward the request to a JSP, which would handle presentation (i.e., render it into HTML). Updates would be handled the same way. The values would be collected on an HTML form (also rendered from a JSP) and submitted to a servlet for saving to the database. The servlet would then forward to another JSP for presenting the result status.