pradeep gamage wrote:I am new to JSP,Servlet . so can you give me idea to create login its taking data with five steps.
I already created by using session. any other easy way to do this scenario?
Your question is not clear. Could you elaborate a bit and possibly with your code, so that it can be understood and answered. Most of the vague questions will not attain the attention of the readers.
I am Creating Login.
So if some one else Don't have an account to login, he or she can register with my system. then he or she can log with username and password they provided.
but when some one else register with my system, they have to provide basic personal information, bank information, username password etc.. so he has to provide basic personal information in first page in registration then when he click NEXT go to second page of registration and it's getting bank details. when he click NEXT open next registration page which getting username and password and next page having agreement. when he click FINISH only data will go to database. so I have developed this scenario by using session. when he click first page next button this data assign to session variable. like wise all data assign to session variable. finally this session variable send to database.
so can any one of you suggest any other way to do this scenario.
I am ok with session.
I used session. but i want to know that any other easy way to this. in my system if he click PREVIOUS button i have to show data entered previous page. I did it with session variable.
Can I do this data tracking part by using Collection?
You seem to have a working system whose design makes sense. So why are you picking random words and asking if you could use that instead?
You want to keep track of a user's progress over several requests. A session is specifically designed to do that. A Collection isn't. You could probably cobble something together using a Collection... I don't know how but it could probably be done somehow. Just like instead of using a hammer to pound in a nail, you could work out some way of using a bicycle to do it.