Hi Joao,

I do believe that your html code is OK, but you are right - it should be
named index.shtml (just rename it). And a long time ago I met a problem with
case of <SERVLET> tag. Don't remember it exactly, but I think it was about
lowercase didn't work and uppercase was OK. Try to uppercase it. And I don't
think you need any IDE - just simple text editor to do such changes. And the
problem of that it is a index file - there are two possibilities to resolve
this: configure your web server so it will look also for index.shtml files
as "starting" file (I use IIS 4.0 and it works, I have 4 types of this
files: default.htm default.html, index.htm, index.html) or make an
index.html file that will redirect you immediately (using <META> tag) to
your index.shtml file.

Hope this helps.

--jerry

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API
Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Jo\co Carlos
Costa
Sent: Wednesday, June 23, 1999 6:39 PM
To: [EMAIL PROTECTED]
Subject: A basic issue


Hi

I have developed many servlets successfully, but I can't seem to do a
simple thing such as to call a servlet from an HTML file. And this is
becoming an embarassing issue due to the fact that this the index file.
Do I have to write a .shtml file? I don't have an IDE that allows me
to do that.

The code goes within this message. I try it with JRun's SimpleServlet.

If any of you may help me, I would be most grateful.

Thanks.


index.html (code)

<html>
  <head>
    <title>Index</title>
  </head>
  <body>
    <servlet name='SimpleServlet' code='SimpleServlet.class'
codebase='c:/JRun/servlets/'>
    </servlet>
  </body>
</html>

===
Joao Carlos Costa







_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

___________________________________________________________________________
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