Jsp 向请求对象添加新参数

Jsp 向请求对象添加新参数,jsp,jsp-tags,Jsp,Jsp Tags,我有一个场景如下。我有三个jsp页面jsp1、jsp2、jsp3。jsp1调用jsp2,jsp2调用jsp3 我正在从jsp1向jsp2发送http请求。我想向请求对象中的参数添加更多的值,并将其转发到jsp3。你能告诉我怎么做吗?你可以使用request.setAttribute(attributeName,attributeValue)@vinaypolisetti我看不到任何东西.g[29/09/2013 12:04:34:638](错误)ajp12:Servlet错误:OracleJSP

我有一个场景如下。我有三个jsp页面jsp1、jsp2、jsp3。jsp1调用jsp2,jsp2调用jsp3


我正在从jsp1向jsp2发送http请求。我想向请求对象中的参数添加更多的值,并将其转发到jsp3。你能告诉我怎么做吗?

你可以使用
request.setAttribute(attributeName,attributeValue)

@vinaypolisetti我看不到任何东西.g[29/09/2013 12:04:34:638](错误)ajp12:Servlet错误:OracleJSP:oracle.jsp.provider.jsp compileexception:H3Errors编译:。。。找不到符号:方法setAttribute(java.lang.String,java.lang.String)位置:接口javax.servlet.http.HttpServletRequest.setAttribute(“用户名”,m_用户名)@vinaypolisetti,你在用什么IDE?servlet jar文件是否在类路径中?编译器似乎无法找到HttpServletRequest接口。我在页面中多次使用了request对象,但它们都没有导致问题。例如,如下request.getSession(true)).putValue(“组织ID”,m_组织ID);我只有一个request.setAttribute(“string1”、“string2”)导致了问题。评论这句话没有任何问题