WEBrick GET/POST problem

T

T E

I need to write a servlet that will handle both GET and POST stuff, for
example of you were to have something like <form action="/blah?foo=bar"
method="POST"><input type="text" name="username" />...</form> but I
can't figure out a way to do this. It would be nice if they would all
go into the request object.

I am used to PHP's $_GET and $_POST so feel free to laugh at me.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,111
Latest member
KetoBurn
Top