First of all, your class RegisterDetails
is not a bean because it does not implement the java.io.Serializable
interface.
Secondly, you really need to implement some kind of input sanitization for the data coming from the request (to prevent SQL/HTML/Cross-site scripting injections), and if you are going to use beans I guess you should put that inside the bean class.
Third, you could also dispense with the bean concept (meaning you won't need jsp:useBean) and just save the instance of the class RegisterDetails as a regular class object into the session, and then you can pull it from the session on any page as follows:
In the servlet:
session.setAttribute("details", details); //saving your object to the session
In any other page:
RegisterDetails details = (RegisterDetails)session.getAttribute("details");