Himiltos,
se e que eu entendi bem, voce quer obter informacoes de um form.
Pois bem, e da mesma maneira (me parece) como voce falou. E atraves de
metodos get e post. Em um servlet, dentro de um metodo
doGet(HttpServletRequest req, HttpServletResponse res) por exemplo, voce
pode usar os metodos req.getParameterNames() e armazenar isso em um
objeto Enumeration:
ex: Enumeration names = req.getParameterNames()
e ai para cessar os valores destes names voce usa o metodo
req.getParameter(String)
dentro do metodo acima coloque um dos names do objeto Enumeration.
Bem, se era isso acho que ira te ajudar. Segue em anexo todos os
metodos para um request:
getAttribute(String)
Returns the value of the named attribute of the request, or null if
the attribute does not exist.
getCharacterEncoding()
Returns the character set encoding for the input of this request.
getContentLength()
Returns the size of the request entity data, or -1 if not known.
getContentType()
Returns the Internet Media Type of the request entity data, or null
if not known.
getInputStream()
Returns an input stream for reading binary data in the request
body.
getParameter(String)
Returns a string containing the lone value of the specified
parameter, or null if the parameter does not exist.
getParameterNames()
Returns the parameter names for this request as an enumeration of
strings, or an empty enumeration if there are no
parameters or the input stream is empty.
getParameterValues(String)
Returns the values of the specified parameter for the request as an
array of strings, or null if the named parameter does
not exist.
getProtocol()
Returns the protocol and version of the request as a string of the
form <protocol>/<major version>.<minor
version>.
getReader()
Returns a buffered reader for reading text in the request body.
getRealPath(String)
Applies alias rules to the specified virtual path and returns the
corresponding real path, or null if the translation can not be
performed for any reason.
getRemoteAddr()
Returns the IP address of the agent that sent the request.
getRemoteHost()
Returns the fully qualified host name of the agent that sent the
request.
getScheme()
Returns the scheme of the URL used in this request, for example
"http", "https", or "ftp".
getServerName()
Returns the host name of the server that received the request.
getServerPort()
Returns the port number on which this request was received.
[]'s Rafael.
Hamilton Fonte II wrote:
> Caros colegas javaneses... Alguem saberia me dizer como se
> faz para um servlet recuperar informacoes de um formulario
> HTML? Eu ja fiz isso com PERL, usando GET e POST, o principio
> eh o mesmo? Obrigado pela ajuda... Hamilton Fonte II
--
-----------------------------
Rafael Zancan Frantz
[EMAIL PROTECTED]
www.unijui.tche.br/~rfge
Tel.: +55 - 55 332 9093
+55 - 55 962 0301
-----------------------------
* Para nao receber mais e-mails da lista, acesse
<http://www.sun.com.br:8080/guest/RemoteAvailableLists>, coloque seu e-mail, escolha a
lista <[EMAIL PROTECTED]> e de um <submit>.