A solution can be this:
The method get all the parameters in url.
public void loadParameter(javax.servlet.http.HttpServletRequest req,
PessoaResources ps)
{
Enumeration e = req.getParameterNames();
ps.pessoa.clean();
while (e.hasMoreElements())
{
String myField = (String) e.nextElement();
String myParameter = req.getParameter(myField);
if (!myParameter.equals(""))
{
ps.pessoa.setField(myField, myParameter);
}
}
}
-----Mensagem original-----
De: John Bell [mailto:[EMAIL PROTECTED]]
Enviada em: quinta-feira, 14 de mar�o de 2002 09:01
Para: [EMAIL PROTECTED]
Assunto: send and read response to remote server from servlet
Hi,
>From within a servlet I need to send something like
"http://secure.epdq.co.uk/cgi-bin?clientid=1234&total=12"
and read the response programatically.
Thanks,
John
----------------------------------------------------------------------------
---------------------
Save time by using an eTicket and our Self-Service Check-in Kiosks. For more
information go to http://www.britishairways.com/eservice1
___________________________________________________________________________
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