|
From: Rob B. <cro...@ya...> - 2005-01-23 22:27:56
|
Hello all, Is there any particular reason that the request and response objects are not exposed in the velocity & freemarker views? It makes things like request.isUserInRole() and response.setContentType() more difficult to use in the templates than they should be. Would it be possible to add a methods like setExposeRequestAs(String in) and setExposeResponseAs(String in) to AbstractTemplateView? If the above methods are not called, the request/response would not be exposed in the templates. If they were called, then the objects would be exposed in the templates using the passed in names. In this way, if someone wanted to expose the request to the templates with a non-default name (i.e. something other than request) that would be possible. Later Rob __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail |