Apache-JServ / NeoWebScript

Using the NeoWebScript NeoTrack facility to track
Apache/JServ Servlet pages.

I just went through the exercise of trying to use the NeoTrack facility in the NeoWebScript Apache_mod to track visitors to Apache/JServ pages. The problem was that Apache only allows one handler to be called per page - so you cannot use NeoWebScript inline in .jhtml pages.

This is just a little demo servlet/nws script pair that illustrates how you can use the NeoWebScript NeoTrack visitor tracking facility from within an Apache/JServ handled page.

Here's how it works...

  • Include the example tracking servlet in an Apache/JServ page (.jthml). The servlet tag set you use will probably look something like this ...
    <SERVLET CODE="NeoTrack">
    <param name="tracker" 
                 value="http://www.hav.com/servlets/tracker/nph-nwsTracking.htm">
    <param name="counters" value="hav.software_site,expSite">
    </SERVLET>
    
  • When the .jhtml page is loaded, the servlet opens and reads a URL which is an nph file containing only a NeoWebScript that performs visitor tracking and, optionally, increments any specified Named Counters

  • The nph file (in this demo) returns an indicator of 1 = new visitor ; 0 = existing visitor.

You can download a zip of the servlet source and class AND an example nws script (Mon, Aug 16, 1999 at 11:00 CDT) - and/or take a look at the sources for:
the Servlet
the NeoWebScript script used

Note: Though this demo uses a nph/NeoWebScript to retrieve the values to be displayed, you could as easily use any cgi that returns an integer value as a string.


Search the Site
Find Any or All of
  
Questions?
Feel free to drop by and chat if you have any questions - one of us is usually around during normal CST/CDT business hours.

Home || Services & Clients || Products || WIPs || Orders || News
Web Demos || PC Neural Demo || JS Neural Nets || Surfin'

Bonsai Pic's || Bonsai Style || Bonsai Databases || Bonsai Icons
Horace's Personal Home || Stats 'n Stuff || GuestBook || Chat
Left Hand Fingertip Torture - aka trying to play classical guitar ;-)

Copyright © -1995-2008 by hav.Software. All Rights Reserved.


http://www.hav.com/ havBpNet:J, havFmNet:J, havBpNet++, havFmNet++, havBpETT, havCNet, WebSnarfer, havIndex and havChat are all trademarks of hav.Software. Thawte Web of Trust Notary Available in Houston, Tx

Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.

There may be other trademarks or tradenames listed in this document to refer to the entities claiming the marks and names or products. hav.Software disclaims any proprietary interest in any trademark, tradename or products other than its own.


webmaster@hav.com
Modified - 05/03/03 - 15697097 - 4339297