aspose file tools*
The moose likes Servlets and the fly likes How to use httpsession with dao factory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to use httpsession with dao factory" Watch "How to use httpsession with dao factory" New topic
Author

How to use httpsession with dao factory

Rochal Collins
Greenhorn

Joined: Jul 31, 2007
Posts: 15
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

Joined: Jan 10, 2002
Posts: 61654
    
  67

Please be sure to use UBB code tags when posting to the forums. Please read this for more information.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
siva kumar
Ranch Hand

Joined: May 02, 2004
Posts: 120
What problem/Error message are you getting???
Rochal Collins
Greenhorn

Joined: Jul 31, 2007
Posts: 15
Nothing is happening. It should find the user and password in the database and forward to the user home page.
subodh gupta
Ranch Hand

Joined: Jul 23, 2007
Posts: 203
Hi,

Use:


INTEAD OF:


AND



instead of


http://subodh-gupta.blogspot.com
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to use httpsession with dao factory