Results 1 to 3 of 3
  1. #1
    Jan.dbae is offline Member
    Join Date
    Aug 2011
    Posts
    4
    Rep Power
    0

    Default getting the name of the jsp

    Hello
    I have include a login.jsp in every jsp.
    when the user login, then i want to redirect him (in the login-servlet) to the page where he did log in (in the login-div appears not longer the login-formular but his name).

    mfg
    jan

  2. #2
    unaTRASotra is offline Member
    Join Date
    Nov 2011
    Posts
    5
    Rep Power
    0

    Default Re: getting the name of the jsp

    one possible solution:

    pass the name of the jsp as a parameter, then from your login redirect to that name

  3. #3
    mikmontana is offline Member
    Join Date
    Oct 2011
    Posts
    7
    Rep Power
    0

    Default Re: getting the name of the jsp

    Java Code:
    request.getHeader("referer");
    it return the url of the page where come the request.

Posting Permissions

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