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))"
and in the html page to use $request.getAttribute($name) ?
Have you read
http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletRequest.html#set…
It clearly states "Attributes are reset between requests". Also, please
note that attributes and parameters have a different meaning when you
talk about servlet requests.
Isn't an input hidden (HTML element) what you are looking for? Or maybe
http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpSession.html#s…
Hope this helps,
Marius
:blush:
Thank you