CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Jsp

  1. #1
    Join Date
    Jan 2003
    Location
    Dehli
    Posts
    2

    Jsp

    hi!
    i am a software professional and working in JSP , i've one problem that is how can i Know that the JSP page is coming from the server or anybodies harddisk , i mean to say that nobody download it and didn't modify it...please give me the code so i Could work ahead !!

  2. #2
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163
    I don't quite understand - how can someone download a JSP page from your server?

    Can you explain what you mean more clearly?

    I don't want to achieve immortality through my work, I want to achieve it by not dying...
    Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.

  3. #3
    Join Date
    Jan 2002
    Location
    Halifax, NS, Canada
    Posts
    985
    If you mean, how can you tell the current host, it's
    Code:
    request.getRemoteHost();
    if you want to be able to tell what the previous page was, I beleve you would have to set a cookie. But I could be rong (Often am )

    To get the Context Path it's
    Code:
    String contextPath = request.getContextPath();
    That will give you ie localhost:8080 or www.google.com
    Last edited by Goodz13; January 21st, 2003 at 03:07 PM.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured