|
-
January 16th, 2003, 12:46 AM
#1
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 !!
-
January 16th, 2003, 05:22 AM
#2
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.
-
January 16th, 2003, 10:42 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|