This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Create a login, it is taking data by using five step Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Create a login, it is taking data by using five step" Watch "Create a login, it is taking data by using five step" New topic
Author

Create a login, it is taking data by using five step

pradeep gamage
Ranch Hand

Joined: Aug 03, 2009
Posts: 85

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?
thanks.


Software Engineer(BSC):SCJP 1.5
(Knowledge is power when applied)
Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 518
    
    2

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?
thanks.


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.


Regards
KumarRaja

pradeep gamage
Ranch Hand

Joined: Aug 03, 2009
Posts: 85

Thanks Kumar Raja for replaying me,

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.
thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60766
    
  65

Why would you not want to use the session?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
pradeep gamage
Ranch Hand

Joined: Aug 03, 2009
Posts: 85

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?
Thanks.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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.
 
 
subject: Create a login, it is taking data by using five step
 
Similar Threads
JTable; Vectors & Boolean values
how do arrays work with oop
Short survey on EJB usage
How to create shares of a colour Image in Java
Same user in different machines