return ((HttpServletRequest) request).getServletPath();
}
class DefaultMutator implements ComponentContextMutator {
public void mutate(ComponentContext ctx, ServletRequest req) {
ComponentAttribute attr = new ComponentAttribute();
attr.setType(ComponentAttribute.TEMPLATE);
attr.setName(componentAttributeName);
attr.setValue(getRequestBase(req));
ctx.putAttribute(componentAttributeName, attr);
}