English 中文(简体)
缩略语
原标题:
  • 时间:2009-05-26 16:17:29
  •  标签:

页: 1 HttpSvletRequest, ́er:

String myAttribute = request.getAttribute("[parameter name]");

罗马尼亚 页: 1

页: 1

public void doGet(HttpServletRequest request, HttpServletResponse response)
{
     String myAttribute = request.getAttribute("my.username");
     ...
}

页: 1

最佳回答

∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗。 : ; ; ; ; ; ; The HTTP request and theHTTP response do not contained any ICESCR . > , Kluwer , Kluwer , 100% > >

页: 1 __________________

问题回答

∗∗∗∗∗∗∗

// only visible in this request and on the server
request.getAttribute("myAttribute"); 

// value of the User-Agent header sent by the client
request.getHeader("User-Agent"); 

// value of param1 either from the query string or form post body
request.getParameter("param1"); 





相关问题
热门标签