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.
我有一个场景如下。我有三个jsp页面jsp1、jsp2、jsp3。jsp1 调用 jsp2,jsp2 调用 jsp3。
我正在从 jsp1 向 jsp2 发送一个 http 请求。我想为请求对象中的参数添加更多值并将其转发到 jsp3。你能告诉我怎么做吗?
您可以使用添加请求属性而不是参数request.setAttribute(attributeName, attributeValue)
request.setAttribute(attributeName, attributeValue)