Results 1 to 2 of 2
  1. #1
    zahir is offline Member
    Join Date
    Jul 2011
    Posts
    7
    Rep Power
    0

    Default How to block the success page when the url is given directly

    i have a login page login.jsp,when i give the correct username and password it should redirect to the success.jsp page, but when i directly give the success.jsp in the url it should ask for user login..


    plz help me... I am a java beginner...

  2. #2
    Dark's Avatar
    Dark is offline Senior Member
    Join Date
    Apr 2011
    Location
    Camp Lejuene, North Carolina
    Posts
    643
    Rep Power
    10

    Default

    How are you storing your user session? Do you even have a way to know what user is currently logged in?
    • Use [code][/code] tags when posting code. That way people don't want to stab their eyes out when trying to help you.
    • +Rep people for helpful posts.

Similar Threads

  1. JSP code executing directly on loading the page...
    By vaibhavspawar in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 03-26-2011, 02:25 PM
  2. Replies: 13
    Last Post: 07-19-2010, 11:04 AM
  3. Replies: 3
    Last Post: 07-06-2010, 10:15 PM
  4. Display success message in same page when submit button is clicked
    By am17mu in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 03-29-2008, 10:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •