Is it acceptable to use code from answers on Stack Overflow? They often don't specify licenses but if they didn't want you to use it they wouldn't post it.
Real world apps are cloased source, why do you care? The only people who will ever possibly see the code are the two other java pajeets in your team. Compile your page with JSP or shit and ship them out, nobody gives a shite.