On Fri, Aug 6, 2010 at 10:24, Carsten Ziegeler <cziege...@apache.org> wrote: > Alexander Klimetschek wrote >> On Fri, Aug 6, 2010 at 08:10, Carsten Ziegeler <cziege...@apache.org> wrote: >>> What about a helper class (static methods) or a jsp taglib? >> >> I was preferring them on the request, as you then don't need to pass >> the request and things get shorter. A jsp taglib can also only be used >> inside a jsp. >> > Sure but you were talking about jsps in your proposal :)
And servlets. > Anyway, there are always a lot of useful functions one needs here or > there - adding all of them to the request interface just because it is a > little bit less to type does not sound like the best argument to me. > That's why I would put them in a helper class first - if they are used > by each and everyone in every script, then this might be a candidate to > add it to a more prominent place. Another reason for the prominent place is that it teaches people to do the right thing more easily. I have seen many cases that create links without considering context path or sling's mapping. Regards, Alex -- Alexander Klimetschek alexander.klimetsc...@day.com