Hi Jyoti, I can still not use the servlet counter in normal html page. With the method +ADw-META HTTP-EQUIV+AD0AIg-refresh+ACIAPg- CONTENT+AD0AIg-0+ACIAOw-URL+AD0AIg-http:+AFwAXA-maymachine:8000+AFw-servlet+AFw-Counter+ACIAPg- the browser can periodically refresh the Counter servlet, but the Counter servlet can not work well. With the following method: +ADw-BODY onLoad+AD0AIg-document.location.href+AD0-'http://wangjun:8000/servlet/Counter'+ADsAIgA+- then the html page will relocated to the Counter servlet+ACE- this is not the counter's goal. jack +AD4-Hello Srini, +AD4-If you are also getting this error - the best method to load another page +AD4-(maybe from a servlet) as soon as you open one page is to use the +AD4-following method - +AD4- +AD4-The delay here is 0. If you want a delay before another page is opened, +AD4-increase it accordingly. +AD4- +AD4APA-HTML+AD4- +AD4APA-HEAD+AD4- +AD4- +AD4APA-META HTTP-EQUIV+AD0AIg-refresh+ACI- +AD4- CONTENT+AD0AIg-0+ADs-URL+AD0-http:+AFwAXA-somewhere.com+ACIAPg- +AD4- +AD4- +AD4APA-/HEAD+AD4- +AD4APA-BODY+AD4- +AD4-1234567890 +AD4APA-/BODY+AD4- +AD4APA-/HTML+AD4- +AD4- +AD4-Jack, +AD4-I am still trying to figure out the error - will reply as soon as I find +AD4-the solution. Meanwhile if you can use the above method, go ahead. +AD4- +AD4-Jyoti +AD4------Original Message----- +AD4-From: Jack Wang +AFs-SMTP:jack.w+AEA-PUB.WX.JSINFO.NET+AF0- +AD4-Sent: Thursday, September 09, 1999 10:56 AM +AD4-To: SERVLET-INTEREST+AEA-JAVA.SUN.COM +AD4-Subject: +AD0-?gb2312?B?u9i4tDogICAgICBSZTogc2VydmxldHMgYW5kIGh0bWw+AD0-?+AD0- +AD4- +AD4-Jyoti, +AD4- +AD4-I have posted a message about how to use a servlet counter in normal html +AD4-page, but there is no reply, now I saw your reply, so I continued again. +AD4- +AD4-I tried the following html page: +AD4AIg- +AD4APA-HTML+AD4- +AD4APA-HEAD+AD4- +AD4APA-/HEAD+AD4- +AD4APA-BODY onLoad+AD0AIg-http://machinename:8000/servlet/Counter+ACIAPg- +AD4-1234567890 +AD4APA-/BODY+AD4- +AD4APA-/HTML+AD4- +AD4AIg- +AD4- +AD4-in which +ACI-http://machinename:8000/servlet/Counter2+ACI- +AD4-is a counter servlet, my goal is count the page's click.This servlet is +AD4-good +AD4-when I use it alone in my browser. +AD4- +AD4-but I met a javascript error: +AD4AIg- +AD4-JavaScript Error: http://wangjun:8000/kill.html, line 4: +AD4-syntax error. +AD4-http://machinename:8000/servlet/Counter +AD4-......................................+AF4- +AD4AIg- +AD4- +AD4-I dont know why. +AD4- +AD4-thanks. +AD4- +AD4-Jack.w +AD4- +AD4APg-On Thu, 2 Sep 1999 09:49:15 +050-, srinivas ++ADw-srini+AEA-APCOSOFT.SOFT.NET+AD4- +AD4-wrote: +AD4APg- +AD4APgA+-Hi experts, +AD4APgA+- +AD4APgA+- I have an html page which calls a servlet what i need is that i need +AD4APgA+-to invoke the servlet as soon as i start it, say when i type theURL the +AD4APgA+-html page should be displayed is there any chance of doing it. +AD4APgA+- +AD4APgA+- Thanks all for urhelp, +AD4APgA+- Srini +AD4APg- +AD4APg-Hi Srini, +AD4APg-If i am not mistaken - you want to invoke the servlet as soon as the page +AD4-is loaded. +AD4APgA+-Why don't you try giving the command on the onLoad option +AD4APgA8-html+AD4- +AD4APg- +AD4APgA8-body onLoad+AD0AIg-http://www.somewhere.com:8080/servlet/name of +AD4-servlet?parameters+ACIAPg- +AD4APg- +AD4APgA8-/body+AD4- +AD4APgA8-/html+AD4- +AD4APg-Regards, +AD4APg-Jyoti +AD4APg- +AD4APg- +AD4APg- +AD4APgA+AF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8- +AD4AXwBfAF8AXw- +AD4AXw- +AD4APgA+-To unsubscribe, send email to listserv+AEA-java.sun.com and include in the +AD4-body +AD4APgA+-of the message +ACI-signoff SERVLET-INTEREST+ACI-. +AD4APgA+- +AD4APgA+-Archives: http://archives.java.sun.com/archives/servlet-interest.html +AD4APgA+-Resources: http://java.sun.com/products/servlet/external-resources.html +AD4APgA+-LISTSERV Help: http://www.lsoft.com/manuals/user/user.html +AD4APg- +AD4APgBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8- +AD4AXwBfAF8AXw- +AD4APg-To unsubscribe, send email to listserv+AEA-java.sun.com and include in the +AD4-body +AD4APg-of the message +ACI-signoff SERVLET-INTEREST+ACI-. +AD4APg- +AD4APg-Archives: http://archives.java.sun.com/archives/servlet-interest.html +AD4APg-Resources: http://java.sun.com/products/servlet/external-resources.html +AD4APg-LISTSERV Help: http://www.lsoft.com/manuals/user/user.html +AD4APg- +AD4- +AD4AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8- +AD4-To unsubscribe, send email to listserv+AEA-java.sun.com and include in the body +AD4-of the message +ACI-signoff SERVLET-INTEREST+ACI-. +AD4- +AD4-Archives: http://archives.java.sun.com/archives/servlet-interest.html +AD4-Resources: http://java.sun.com/products/servlet/external-resources.html +AD4-LISTSERV Help: http://www.lsoft.com/manuals/user/user.html +AD4- ___________________________________________________________________________ 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
