you can use the <FORM></FORM> tags to invoke the servlet..
(i.e.
<form action="http://your.domain.com/servlet/yourServlet" method = "POST">
<input type= submit value= "call the servlet">
</form>
)
this will call the doPost() method of the servlet rather than the doGet()
which is called using the <A> tags.
If you are wanting no interaction from the "index.html" at all, and just
want the page to redirect to the servlet, then you
could either use JavaScript (i.e. location.href =
"http://your.domain.com/servlet/yourServlet") or you could use a META tag in
the page
redirecting it (i.e. <META http-equiv="Refresh" content = 30 URL=
"http://your.domain.com/servlet/yourServlet">
Hope that helps
Sean Campbell
BlairLake/Compuware
Software Engineer
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
Roland Behm
Sent: Wednesday, April 26, 2000 12:33 PM
To: [EMAIL PROTECTED]
Subject: call servlet from html automatically
How can a servlet be invoked from an html page automatically, without an <a
href... anchor.
I.e. an index.html in the document root or a web site wants to launch a
servlet directly, and the servlet does all the other work then.
(Isn't there something like a <SERVLET .. tag?)
Thanks + regards, Roland
___________________________________________________________________________
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