HttpServletRequest, HttpServletResponse and ServletContext are located on Controller. You can also reference them via RequestLocator.get(), ResponseLocator.get() and ServletContextLocator.get() as follows:
The parameters of request are copied to the attributes of request by RequestHandler because of convenient access via view like JSP.
Note: The parameter whose name ends with "Array" is copied as an array of strings.
Controller has a lot of convenient methods to access the attributes of request like asString(), asShort(), asInteger(), asLong(), asFloat(), asDouble(), asBoolean(), asDate() and asKey():
If the attribute is stored to a model, you can specify it type-safely using Meta data of model:
You can copy the attributes of request to a model using BeanUtil#copy() as follows:
Continue to File Upload.