Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试monitorScreen从以下 url 获取我的 servlet 中的参数。
monitorScreen
GET /Random/servlet/ps.commands.GetCmd?monitorScreen=true HTTP/1.1
但是当我在这个特定的 servlet 中查找变量或值 monitorScreen 时,我无法在 servlet 的任何地方找到它
这是您从以下 URL 检索 servlet 中的参数的方式,
www.someServer.com/somePage.jsp?monitorScreen=true
然后在doGetservlet的方法中,
doGet
String value = request.getParameter("monitorScreen");