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 JSP and the fly likes hi 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 » JSP
Bookmark "hi" Watch "hi" New topic
Author

hi

singhpore shankar
Greenhorn

Joined: Jul 04, 2005
Posts: 2
i have a login form and if a user enters username password correctly we should direct the user to some page.
else if it is incorrect we should redirect to login form back
and give him a message and i need to verify usename and password from backend data(i am using ms-access) and JSP
so i need some help
i need source code for this

Niki Nono
Ranch Hand

Joined: Mar 20, 2005
Posts: 256
you will have to use response.redirect(); function of jsp.
do some R&D on the function and i am sure you will find the correct implementation.


Life called,so here I am.<br />Cheers<br />Niki.:-)
lekha phijo
Greenhorn

Joined: Oct 09, 2003
Posts: 29
let the action tag in your jsp direct to another jsp which is like a controller.
This jsp should use response.redirect as mentioned by Niki to ur error page or ..

Good Luck!!!
Yuriy Zilbergleyt
Ranch Hand

Joined: Dec 13, 2004
Posts: 429
Wouldn't that be response.sendRedirect()?
Niki Nono
Ranch Hand

Joined: Mar 20, 2005
Posts: 256
my mistake yuriy.
it should be response.sendRedirect but let singhpore look into the details.
 
 
subject: hi
 
Similar Threads
The TYPES OF ERRORS should be returned to users by Web Appln.
Auto Login
how to let Java login tomcat form authorization
Remember Password Check box
Progammatic Authentication and Declarative Authorization