标签:oca getc 参数 string cal text 通过 端口 contex
request对象中包含的是请求信息,当我们在浏览器地址栏上输入:
http://localhost:8080/Example/AServlet?username=zhangsan,这段地址也会作为请求信息封装在request对象中,request对象必然会提供相关的方法来获取这些请求信息,这些信息其实就是请求路径信息。
request对象通过以下方法来获取请求路径,如下所示:
标签:oca getc 参数 string cal text 通过 端口 contex
原文地址:https://www.cnblogs.com/yifanSJ/p/9218464.html