Wednesday, September 30, 2009

Mixing JSP 2.0 with GWT

I've just overcome a pesky litle problem between JSP 2.0 and GWT. I have my JSPs in xml format: <jsp:root ...>. You are likely aware that this is a bit aggressive about removing whitespace from the resulting html. This includes the transformation of empty body tags into bodyless tags. Ergo this
<div id="footer"></div>
becomes this
<div id="footer"/>

Now that second one was confusing firefox on my linux workstation. Likely on your platform as well. This is just like the old days when we fought with <script src="thefile.js" /> tags to make sure they keep their separate closing tag.

The solution is just to drop a comment into the previously empty body
<div id="footer"><![CDATA[<!-- -->]]></div>

Thank you Ramon, for pointing me down the path. It's been a long time away from servlet code. It should not have taken me as long as it did to remember this problem.

Sunday, September 6, 2009

Android Book Mobile (1 week later)

It's been a great first week for ABM on the market. Over 1,400 downloads and still carrying a 4 star rating! Here is a screen shot of the Android Market -- Developer Console. It shows all the applications you have published with their current stats.

One statistic that would be great if I knew how often people are using it. If I had my own server-side to the application I could gather that statistic myself. But alas, the data being stored at books.google.com, and the reviews coming from goodreads.com, I don't know how much they are using it. I fully expect someone will tell me their phone ran out of memory trying to load their full library.