Is adc:get a custom tag that you wrote (or at least have the source code for)? It sure seems like the issue is with what the custom tag is returning. I cannot say I have looked much at generated servlet code for custom tags. What would cause either of those return statements to execute? That path sure seems like it would result in an unterminated string.