How do I validate username and password

I am developing a code which takes username and password as textfield enries.How should I send this to a servlet which is capable of validating.Do we use post or get method to transmit?Password should be secured.
[219 byte] By [SeetaramRaoa] at [2007-11-27 0:48:02]
# 1

If you are developing the app for MIDP2.0 devices then better a POST request using https connection will do.

And further using http/https doesen't matter as long as you are not sending the password as plain text to the server. The one way to sent have authentication mechanism is to sign the password in the client end and send only the password signature to the server along with the username as plain text.

Hope this answers your query.

~Mohan

itsmohana at 2007-7-11 23:16:45 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
a good old article on what you want to do http://developers.sun.com/techtopics/mobility/midp/articles/servlets/
suparenoa at 2007-7-11 23:16:45 > top of Java-index,Java Mobility Forums,Java ME Technologies...