File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Place an action when user manually changes the website Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Place an action when user manually changes the website" Watch "Place an action when user manually changes the website" New topic
Author

Place an action when user manually changes the website

Vera Diederich
Greenhorn

Joined: Aug 03, 2012
Posts: 2
Hello there,

I need a mechanism which reacts when a user manuelle changes the website.(Typing another URL in the navigation-bar.)

Thanks for your help,
Vera

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14468
    
    7

Welcome to the JavaRanch, Vera!

Good luck with that. HTTP is not a protocol where the server is in control. In fact, for each page request/submit action, the client effectively logs in, does a single task, then logs out before the resulting new page is rendered.

No mechanism exists in any known HTTP client application that notifies the server when a request is made either to a different server or even to a different location within a previously-referenced webapp. No standard protocol is defined that would facilitate such behavior. And, in fact, since the same client is often commanding multiple browser windows, each of which potentially communicates with a different server, it would be difficult to conceive of a way of determining when notification is required. In fact, since a single web page often cascades into multiple requests to different servers (such as Google AdWords, ad.doubleclick.net, and so forth), the concept is practically meaningless.


Customer surveys are for companies who didn't pay proper attention to begin with.
Vera Diederich
Greenhorn

Joined: Aug 03, 2012
Posts: 2
Okay, thanks a lot.

I'll solve my Problem with a ViewScoped Bean then... not perfect but will work.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: Place an action when user manually changes the website
 
Similar Threads
Playing Music
default page
controller or model
sending mail
How to configure two SSL certificate for one website