<?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>Robin&#039;s Tech Tips &#187; jetty</title>
	<atom:link href="http://robin.mytechtip.com/tag/jetty/feed/" rel="self" type="application/rss+xml" />
	<link>http://robin.mytechtip.com</link>
	<description>Just another My Tech Tip weblog</description>
	<lastBuildDate>Wed, 06 Jul 2011 02:35:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>JSP Expression Language in GWT&#8217;s embedded Jetty</title>
		<link>http://robin.mytechtip.com/2009/07/23/jsp-expression-language-in-gwts-embedded-jetty/</link>
		<comments>http://robin.mytechtip.com/2009/07/23/jsp-expression-language-in-gwts-embedded-jetty/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 07:13:04 +0000</pubDate>
		<dc:creator>robin</dc:creator>
				<category><![CDATA[configuration]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[el]]></category>
		<category><![CDATA[expression language]]></category>
		<category><![CDATA[gwt]]></category>
		<category><![CDATA[jetty]]></category>
		<category><![CDATA[jsp]]></category>

		<guid isPermaLink="false">http://robin.mytechtip.com/?p=39</guid>
		<description><![CDATA[JSP expression language (EL) is quite handy. but it only works when you indicate your web application is using version 2.4 or higher. That means you have the following in your &#60;Your-Web-App&#62;/WEB-INF/web.xml:
&#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&#62;
&#60;web-app id=&#8221;WebApp_ID&#8221; version=&#8221;2.4&#8243; xmlns=&#8221;http://java.sun.com/xml/ns/j2ee&#8221; xmlns:xsi=&#8221;http://www.w3.org/2001/XMLSchema-instance&#8221; xsi:schemaLocation=&#8221;http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd&#8221;&#62;
&#8230;



Google Web Toolkit (GWT) is a handy Ajax Web application development tool. Since version 1.6.4, GWT [...]]]></description>
			<content:encoded><![CDATA[<p>JSP expression language (EL) is quite handy. but it only works when you indicate your web application is using version 2.4 or higher. That means you have the following in your &lt;Your-Web-App&gt;/WEB-INF/web.xml:</p>
<div style="margin-left: 40px">&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;<br />
&lt;web-app id=&#8221;WebApp_ID&#8221; version=&#8221;2.4&#8243; xmlns=&#8221;http://java.sun.com/xml/ns/j2ee&#8221; xmlns:xsi=&#8221;http://www.w3.org/2001/XMLSchema-instance&#8221; xsi:schemaLocation=&#8221;http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd&#8221;&gt;<br />
&#8230;</div>
<p><script type="text/javascript"><!--
google_ad_client = "pub-3371750151985752";
google_ad_slot = "0950801022";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>Google Web Toolkit (GWT) is a handy Ajax Web application development tool. Since version 1.6.4, GWT uses Jetty instead of Tomcat as the embedded Web application container.</p>
<p>However, when I installed GWT plugin (version 1.6.4) for Eclipse, the default generated web application used the version 2.3. So when i used expression language in the jsp pages, it didn&#8217;t evaluate. Something like &#8220;${title}&#8221; as the output in the hosted mode running on jetty. It should also be the same result even i deployed to a tomcat container, as the web app version is still 2.3. This is understandable, as Expression Language is part of JSP version 2.0 standard, which is bound with Servlet (Web App) version 2.4. So if you want to make the expression language work, make sure your web app is using 2.4 or higher.</p>
<p>However, while using version 2.4 works fine, i&#8217;ve got the same problem when i use version 2.5, which is hard to understand why. This problem seems only in Jetty, not in Tomcat. I don&#8217;t know if anyone else have encountered the same problem as I did, but the following link seems to explain the reason behind: <a id="y4rx" title="http://docs.codehaus.org/display/JETTY/JSP+expression+do+not+evaluate" href="http://docs.codehaus.org/display/JETTY/JSP+expression+do+not+evaluate" onclick="javascript:pageTracker._trackPageview('/outbound/article/docs.codehaus.org');">http://docs.codehaus.org/display/JETTY/JSP+expression+do+not+evaluate</a></p>
<p>Apart from this problem (which can be worked around), the use of GWT plugin seems more convenient than the traditional web app development in eclipse. <img src='http://robin.mytechtip.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://robin.mytechtip.com/2009/07/23/jsp-expression-language-in-gwts-embedded-jetty/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

