Hi, Alexander Klimetschek schrieb: > On Mon, Oct 13, 2008 at 1:26 PM, Felix Meschberger <[EMAIL PROTECTED]> wrote: >> (1) set the javax.servlet.include.* attributes upon include ? >> --> Probably yes for standards compliance > > +1 if this helps to use more non-Sling servlets inside Sling without > modification > >> (2) define a new property >> org.apache.sling.api.include.path_info >> taking the SLingHttpServletRequest.getRequestPathInfo() > > Generally I would say yes, since request attributes with a unique name > shouldn't have a disadvantage, so just add them. On the other hand it > is hard to image someone using the attribute, because if a servlet is > sling-aware, it would rather cast to SlingHttpServletRequest to get > this information, or can the property be used in more situations than > the SlingHSR object?
Just to clarify, this is the RequestPathInfo of the including script, it is not the current one, which may well be different. In addition, this attribute is of course only set on included servlets/scripts. Regards Felix
