JSTL Issue with GAE/J and Spring
June 18th, 2009
I was porting an existing Spring application to GAE/J and was having an issue with JSTL not rendering correctly. It was just dumping the code to the browser.
I finally tracked down the issue to the web.xml that is generated by GAE/J. This issue seems to be that with GAE/J you need to be using the Servlets 2.4 and JSP 2.0 specs for JSTL to function properlyl
You can change your code from:
1 2 |
<web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5"> |
to
1 2 3 | <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee" version="2.4"> |
Edit — Another possible fix can be found here.
Categories: Google App Engine, Java













Thanks man , U save my time, This also got when I create New Project Using IDEA.
Cheers mate, still not updated in GAE. Any reason why this is?
Just to note for google-searchers out there, this is no longer the case. My (working) web-xml header:
There is a stupid problem with GAE and jstl addressed here that may also get you:
http://www.digitalsanctum.com/2009/06/24/jstl-expressions-not-working-in-google-app-engine-solution/
XML got eaten!
Here it is again:
<web-app
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xmlns=”http://java.sun.com/xml/ns/javaee”
xmlns:web=”http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd”
xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd” version=”2.5″>
Thanks! I had same problem with tomcat i.e. was not able to render value set in Model, the culprit was of-course , web.xml