<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Safetygoat &#187; ie hacks</title>
	<atom:link href="http://www.safetygoat.co.uk/category/ie-hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.safetygoat.co.uk</link>
	<description>The goat loves the water</description>
	<lastBuildDate>Tue, 24 May 2011 08:55:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Detecting ie6 in jsps (jstl) to change png to gif</title>
		<link>http://www.safetygoat.co.uk/2008/06/detecting-ie6-in-jsps-jstl-to-change-png-to-gif/</link>
		<comments>http://www.safetygoat.co.uk/2008/06/detecting-ie6-in-jsps-jstl-to-change-png-to-gif/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 13:21:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[ie hacks]]></category>
		<category><![CDATA[jsp]]></category>

		<guid isPermaLink="false">http://www.safetygoat.co.uk/?p=23</guid>
		<description><![CDATA[I&#8217;m just learning how to integrate css into jsps, but I&#8217;m lucky enough to have people around to help me out!  As a designer, I want to make sure browsers degrade as gracefully as possible, and so I asked Dan, one of our developers, how you would replace png images for map markers into [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m just learning how to integrate css into jsps, but I&#8217;m lucky enough to have people around to help me out!  As a designer, I want to make sure browsers degrade as gracefully as possible, and so I asked Dan, one of our developers, how you would replace png images for map markers into gifs for ie 6.  Usually I would just declare this in the css, but here we were appending a number at the end of each image and then appending the .png.  Looking online didn&#8217;t uncover any &#8220;beautiful&#8221; solutions (as Dan would say).</p>
<p><span id="more-23"></span></p>
<p>Luckily we were already detecting our header values (apparently it&#8217;s implicit in all jsps), so it was a matter of asking the program to detect the browser (User-Agent):</p>
<p><strong>&lt;c:set var=&#8221;userAgent&#8221; value=&#8221;${header['User-Agent']} /&gt;</strong></p>
<p>And that&#8217;s it!  I needed to call in the variable for other things, and it was just necessary to use this:<br />
<strong>${isIE6orBelow ? &#8216;gif&#8217;:'png&#8217;}</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.safetygoat.co.uk/2008/06/detecting-ie6-in-jsps-jstl-to-change-png-to-gif/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
