Google has different cost structure, most companies pay a lot more for programmers' time than they would pay for hosting an app. Developing in web frameworks like rails and django is 5-10x more effective and is totally worth time switching. Also you can host rails app on java app servers today with jruby.
I recommend starting here - http://en.wikibooks.org/wiki/Java_Programming/Struts