• Post Reply Bookmark Topic Watch Topic
  • New Topic

java bean

 
maulik gautam
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to create a bean that stores 3 static username and password in arraylist and appro. get and set () and in servlet validate user using arraylist
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where is your code? What problems are you having?

Why store info in a list that isn't list data?
 
maulik gautam
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in servlet we have to perform following 3 operations
1. create bean object
2.call bean method that returns bean object
3.if user is valid then store bean data in request object and redirect to valid.jsp else invalid.jsp
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1 and 2 do not make sense together. If you create the bean in step 1, what is step 2 doing? You already have a bean. Is it creating a different bean?

In any case, you are going to need to show your code and describe what problems you are having with it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!