• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use httpsession with dao factory

 
Rochal Collins
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I'm trying to build a simple login page and registration page. People login through the login page. I use a DAO Factory to check the database to see if their username and password is in there. I'm having problems setting up the httpsession. I had it working with the Httpsession but now I have problems. I also want the person redirected to a welcome page if their username and password has been found in the database.

userservlet.java



Can someone tell me what I'm doing wrong???


[BSouther: Added UBB CODE tags]
[ September 26, 2007: Message edited by: Ben Souther ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65124
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to use UBB code tags when posting to the forums. Please read this for more information.
 
siva kumar
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What problem/Error message are you getting???
 
Rochal Collins
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing is happening. It should find the user and password in the database and forward to the user home page.
 
subodh gupta
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Use:


INTEAD OF:


AND



instead of
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic