需要传递参数的html页面,接受两个表单参数,一个是username,另一个是password
如果客户端发送的http请求是这样的
POST / HTTP/1.1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:20.0) Gecko/20100101 Firefox/20.0
Host: 127.0.0.1
Connection: close
Accept-Language: zh-CN,en;q=0.5
Accept-Encoding: gzip, deflate
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Content-type: application/x-www-form-urlencoded
Content-length: 34
username=admin&password=123456
用java写的服务器,获取到username和password后,怎么将其作为参数传递给html页面?