velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claude Brisson <cla...@renegat.net>
Subject Re: why do $req.setAttribute()s show up in my html page
Date Thu, 04 Oct 2007 21:58:37 GMT
It's because they are not resolved. Have you tried with $request instead
of $req ?

Even when unresolved, you can avoid such statements to leak on web pages
by using "$!req.setAtt..." (you should still be warned in the logs).


  Claude

Le jeudi 04 octobre 2007 à 14:45 -0700, Betty Chang a écrit :
> Hi --
> 
> I'm sort of a newbie to both struts and velocity.  I converted an
> existing webwork2.2.4/velocity project to struts2/velocity.  Things
> seem okay except that my $req.setAttribute("blah",$blah) calls in
> my .vm files end up showing up on my html page.
> 
> Is there something I need to set to avoid this?   (They did not show
> up with webwork2.2.4)
> 
> Thanks
> 
> Betty


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message