Hello Jack,
Try the following.... It worked.
<HTML>
<HEAD>
</HEAD>
<BODY onLoad= "document.location.href='http:\\machinename:8000/servlet/Counter';">
1234567890
</BODY>
</HTML>
Jyoti
-----Original Message-----
From: Jack Wang [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, September 09, 1999 10:56 AM
To: [EMAIL PROTECTED]
Subject: =?gb2312?B?u9i4tDogICAgICBSZTogc2VydmxldHMgYW5kIGh0bWw=?=
Jyoti,
I have posted a message about how to use a servlet counter in normal html
page, but there is no reply, now I saw your reply, so I continued again.
I tried the following html page:
"
<HTML>
<HEAD>
</HEAD>
<BODY onLoad="http://machinename:8000/servlet/Counter">
1234567890
</BODY>
</HTML>
"
in which "http://machinename:8000/servlet/Counter2"
is a counter servlet, my goal is count the page's click.This servlet is good
when I use it alone in my browser.
but I met a javascript error:
"
JavaScript Error: http://wangjun:8000/kill.html, line 4:
syntax error.
http://machinename:8000/servlet/Counter
......................................^
"
I dont know why.
thanks.
Jack.w
>On Thu, 2 Sep 1999 09:49:15 +0530, srinivas <[EMAIL PROTECTED]>
wrote:
>
>>Hi experts,
>>
>> I have an html page which calls a servlet what i need is that i need
>>to invoke the servlet as soon as i start it, say when i type theURL the
>>html page should be displayed is there any chance of doing it.
>>
>> Thanks all for urhelp,
>> Srini
>
>Hi Srini,
>If i am not mistaken - you want to invoke the servlet as soon as the page
is loaded.
>>Why don't you try giving the command on the onLoad option
><html>
>
><body onLoad="http://www.somewhere.com:8080/servlet/name of
servlet?parameters">
>
></body>
></html>
>Regards,
>Jyoti
>
>
>
>>__________________________________________________________________________
_
>>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
>
___________________________________________________________________________
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