Werner Moshammer wrote:
> The problem is hard to explain, but I will try to do it more precise:
>
> The goal:
> It should be possible for every user in the web to insert the
> call of the/my servlet (<img scr="myserver/servlet/servletname">)
> on his page (e.g. homepage) - and then the servlet should be able
> to make a statistic of all users of HIS (home)page.
>
> There are existing programs doing this - see e.g.:
> http://uk.nedstat.net/info.html
> I want to do something similar.
> My question: Is it possible to do this with Servlets? How?
>
> The problem is, that the servlet is tracking the servlet accesses information not
>the WWW access information. I thought pictures in a Web page have the same referrer
>than the web page itself, but it seems that this is not right - but, how is this
>problem resolved by nedstat? (I think they do not use Servlets)
>
I didn't go all the way through their "free setup" procedure (I don't need my EMAIL
address on any more lists), but NedStat talks about giving you a piece of code to put
on your page. Including a little Javascript to pick up the referrer to the user's
home page (it's the document.referrer string), and then
passing that as a parameter to your servlet, doesn't sound like it would be all that
hard.
Whether NedStat uses servlets or not is irrelevant, because the problem you are facing
is based on how referrers work, not on what the server platform is.
>
> Werner Moshammer
> [EMAIL PROTECTED]
>
Craig McClanahan
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html