I tried the following code below. I had setup Oracle Database. I created a sample login screen just to test how sendRedirect and RequestDispatch works. I have the following,
The code inside my myServler class,
Now, I want my code to behave like this, when the user name and password = xxx and yyy respectively, then I shud be redirected to admin.jsp page rather than landing in welcome.jsp as above. But when I tried this, everytime I land up in welcome.jsp instead of going to admin.jsp when xxx and yyy are my request parameters. Can anyone help me with this please??