I think I encountered the same problem on this... if I remember correctly, it was simply a matter of wrapping the
JSP expression in single quotes so that the whole value is displayed and not just the first word of the reversed text.
Also, don't forget that your servlet needs to be able to handle both single and double quotes in the text being reversed (this might save you a round of nitpicking).
!nuf evaH