PC Review


Reply
Thread Tools Rate Thread

How 2 identify Bookmarked web page URL and normal one

 
 
Software Pulsar
Guest
Posts: n/a
 
      15th Oct 2007
I have First Page which if the user wishes can bookmark to access the
page. And the First page has button which allows to go to the Second
page. This Second page should not be allowed to bookmark. Bookmarking
should result in error for Second page.

so whenever user bookmarks Second page and at a later time opens that
bookmarked page then User should not be allowed to access the Second
Page. I used the following code in java file.

String refererPath = request.getHeader("referer");

// Dont allow the user to see the bookmarked web page.
if (refererPath == null) {
setContent(gen_error .....".CANT-BOOKMARK")));
return null;
}

The thing is that in Firefox this 'referer' is the one that specifies
whether URL is bookmarked and accesed(via bookmarked pages/favorites)
or the other way. This 'referer' gives null if it is accesed via
bookmarking, otherwise some value. But this 'referer' gives always
null in IE because IE does not allow (this is because of security
reason as it is said in IE docs. )

I need solution to solve this issue. Can anyone suggest me how to
identify the Bookmarked link access and the normal link access. I want
the user to prevent bookmarking in my Second Page. But allow
bookmarking in First page.

Many Thanks in Advance.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
page, sec and page of page, word 2003 isn't updating in normal vie Steve Microsoft Word Document Management 8 30th Apr 2008 02:15 PM
Front Page, Design mode not changing code to normal normal view =?Utf-8?B?TWFybGluIFRob21l?= Microsoft Frontpage 1 27th Feb 2006 11:32 PM
How do I link to a bookmarked part of a different page in frontpa. =?Utf-8?B?U3RldmU=?= Microsoft Frontpage 21 16th Jan 2006 01:37 PM
How Does One Setup Web or Page Headers to Identify Subjects Addressed on a Web or Page? AA Smith Microsoft Frontpage 2 6th Jun 2005 01:02 AM
Normal view of page is **not** showing the full page Kevin Microsoft Frontpage 3 19th Feb 2004 02:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:40 PM.