Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

2 CLARIFICATIONS

 
vivek sivakumar
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi generous people!!!
sorry to disturb u all in ur busy schedule!!! well i need a clarification , i have a "Login. jsp " page used for getting user info and password and if both r correct then the next page called xyz.jsp is obtained , well what i want to do is that 1. if a query is made on to xyz.jsp on the browser then automatically the login.jsp should appear
2. if the user name and pass word is not correct then the same page"login.jsp " should exist until the user enters the correct user name and password .
can give some of ur useful suggestions.
With Reverent Regards From
Sivakumar Vivek
 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vivek,
For the second question you can use RequestDispatcher Interface with JSDK2.1
If the user name or password is not correct, you will get in from the database, then use RequestDispatcher.forward and go to the log in page itself.
With JSDK2.0 use, sendRedirect("login.jsp");
Hope it helps.
The first question us not clear.
Thanks,
Maya
 
vivek sivakumar
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HAIL MAYA!!! Thanks a lot for the QUIK and PROMPT reply maya!!!
Its nice to see that there are so many GENEROUS people like u.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!