On Mon, 2008-01-14 at 20:05 +0530, Amit Pandey wrote:
> Hello,
> 
> I am using   <map:select type="browser">  <map:when test="explorer"> 
> pipeline to check for the type of browser and call corresponding  CSS.
> Is it possible to call different CSS for IE6 and IE7 using this?
> 

http://cocoon.apache.org/2.1/userdocs/default/browser-selector.html

see "Sitemap component configuration example"

if you look into the class you find:
// Get the user-agent request header
        String userAgent = 
ObjectModelHelper.getRequest(objectModel).getHeader("User-Agent");
        if (userAgent == null) {
            getLogger().debug("No User-Agent header -- failing.");
            return false;
        }

        return checkPatterns(expression, userAgent);

hth

salu2

> Thanks & regards
> Amit Pandey
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to