> Hi
>
> I'm new to HTML. Now, How to call a Helloclient servlet from a HTML
>
> I' have tried <FORM ACTION = "servlet/HelloClientServlet" METHOD =
> "POST"></FORM>
> It's not working.
>
> Also, tell me how to pass arguments to the servlet....example pls..
>
> bye
> wilson
>

use "/servlet/HelloClientServlet" whith a precedind "/".

To pass parameters:
If you use a <FORM >, parameters are the <INPUT > tag embeded into the form.
<INPUT TYPE=text NAME=para1 VALUE=value1>    // pass argument
<INPUT TYPE=text NAME=para2 VALUE=value2>
</form>

You pass parameters in the URL with a "?" separating the URL from the
parameter list and each parameter separated from the preceding by a "&".
It works for every URLs in your HTML file, be it a <A HREF > URL or a <FORM
> URL.

Exemple:
<FORM ACTION=/servlet/HelloClientServlet?param1=value1&param2=value2"
METHOD=POST>

<A HREF="/servlet/HelloClientServlet?param1=value1&param2=value2">Hello</A>

ZartC++

___________________________________________________________________________
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