hello john,

I don't know why it is not coming without seeing u r code but i give u an
example

in which u place a file in root directory of tomcat
<html>
<head>
</head>
<body>
<form action="../examples/servlet/HelloWorldExample">
<script>
document.forms[0].submit();
</script>
</form>
</body>
</html>

this will work with helloworld servlet.

regards
apurv
----- Original Message -----
From: John Kilbourne <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 10 December, 2001 8:39 AM
Subject: newbie jswdk 1.0.1 configuration difficulty


> I am trying to execute my first servlet, on windows using javaserver
> web development kit 1.0.1. The servlet appears when I enter the
> localhost address directly:
> http://localhost:8080/examples/servlet/JohnServlet
>
> (I put it in the directory with the examples provided by Sun.) But
> when I want to call that servlet from a welcome html page with a
> <form> whose "ACTION" attribute is pointed to that address, I get a
> 504 error, unable to access that resource. How can I properly
> configure the directories with my html file and three servlets that
> will eventually be called. Tomcat's documentation seems (more or less)
> clear with the use of the document descriptor, but I've not found
> similar documentation for its precursor
>
>
___________________________________________________________________________
> 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