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#setAttribute%28java.lang.String,%20java.lang.Object%29 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#setAttribute%28java.lang.String,%20java.lang.Object%29 Hope this helps, Marius > :blush: > Thank you _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users