This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

From within a Surf component WebScript you are more limited in that you are running as part of a full page execution - i.e. you cannot directly write to the response header as part of it may already have been committed - such as Cookies etc. and any number of components previously to yours, so you can only access the HttpServletRequest as that is safe to do so.