render « String « JSP-Servlet Q&A

1. rendering JSP to a string

What is the way to render jsp file to a string? Is it possible without using frameworks like spring/struts/etc?..

2. EL - Problem rendering String with quote

It's actually a JavaScript error because I am building variables to be passed into a javascript methjod when the option button is selected. But I am thinking it's because EL is not handling the quote correctly. The following also causes an error ONLY if the names contain a quote. The actual Javascript error is ...