You pass arguments to a servlet by adding the arguments to the request like
this:
http://myhost.com/testservlet?key=value&key=value&key=value and so on. You
then pick up the arguments in the servlet by working with the REQUEST
object's parameters.

Basically:

HttpRequest req = New HttpRequest();
key1 = req.getParameter(key);

this is from memory so don't flame me if I made a typo....

chris

> -----Original Message-----
> From: Ruben Domene [mailto:[EMAIL PROTECTED]]
> Sent: den 30 augusti 2001 01:35
> To: tomcat
> Subject: How a html file pass arguments to a servlet??
> 
> 
> Hi.
> I need know how from a html file i can send arguments to servlet.
> Thank you for your helps.
> 

Reply via email to