search

Home  >  Q&A  >  body text

java中request.setAttribute("agentNo", p);

巴扎黑巴扎黑2915 days ago339

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-18 10:39:07

    request.setAttribute("agentNo", p); // p is placed in the request scope

    request.getSession().setAttribute("agentNo", p); // p is placed in the session scope.

    Regarding the scope of request and the scope of session, including application and pageContext, please find out more about it on Baidu.

    reply
    0
  • Cancelreply