Hi Bubulina,

On 12/16/2009 11:40 AM, Bubulina wrote:
> Hello,
> I know that i can get value from a request like this:
> "#set($name= $request.getParameter('name'))"
> Now, shouldn't i be able to put variables on request so i can use in the
> html page? something like this:
> "#set($var = $request.setAttribute($name))"

yes, normally yes, but you also have to pass a value, the setAttribute() 
function gets 2 params:

$request.setAttribute($name, $value)

> and in the html page to use $request.getAttribute($name) ?

I confess I don't really understand which HTML page this is about, but yes, it 
should work. However, keep in mind that parameters and attributes are not 
the same thing (see the spec here 

Happy hacking,

> :blush:
> Thank you
users mailing list

Reply via email to