Sunday, November 7, 2010

HTTPRequest

  • How to retrieve a value for a parameter included in a request?
String Url=req.getParameter("url"); //get the value for the parameter url

  • How to set a value for any attribute in a request?
req.setAttribute("key", 123); //set the value 123 for the attribute 'key'

No comments:

Post a Comment