how to pass data in webrick sevelts? please help

Hi all,

I am a newbie to servlet programming using webrick...
Was wondering how to accept data from a form and do necessary
processing..
To start with i wrote a sample servlet that accepts a name and prints
"welcome <name>"

But I do not know how to take this value from the form into the servlet
and print it out...
this is what i worte... can anyone please help me with this.

s = HTTPServer.new( :Port => 9000)
class TextServlet < HTTPServlet::AbstractServlet
def do_GET(req, res)
res.body = %Q{<html>
<form action = "text.rb">
Name:<input type = "text" name = "text1">
<input type = "submit">
</form>
</html>}
res['Content-Type'] = "text/html"
end
end

class Dataread < HTTPServlet::AbstractServlet
def do_GET(req,res)
res.body = %Q{<html>
<body>
Welcome <I dont know how to call it here>
</body>
</html>}
res['Content-Type'] = 'text/html'
end
end

trap("INT") {s.shutdown}
s.mount("/" , TextServlet)
s.mount("/text.rb", Dataread)
s.start

I am a total beginner to this , so please help me out....
Also if there is any resource online available do point me to it, apart
from webrick.org