I,

to do this, i think you must use a SSI (Server Side Include) and your server
must support it !

try this :

-----------------------------------
HTML ...

<SERVLET CODE=servletname CODEBASE=http://server:port/dir
initParam1=initValue1 initParam2=initValue2>

<PARAM NAME=param1 VALUE=value1>
<PARAM NAME=param2 VALUE=value2>

If you see this, it means that your web server does not support the SERVLET
tag.

</SERVLET>

HTML ...
-----------------------------------

Stef'

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Jack
Wang
Sent: Thursday, September 09, 1999 12:26 AM
To: [EMAIL PROTECTED]
Subject: �ظ�: Re: servlets and html


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

Reply via email to