I have a 'template' jsp, into which I'd like to insert the output of another jsp. However, this isn't as simple as
since I don't want to hard code the page that I'm including. I could of course do the following:
but I would much rather just add something like
to the template page. Unfortunatley, this isn't allowed. So I tried
as a hack. Unfortunatley, I don't seem to know what I'm doing anymore (if I ever did), since this either spits out directly after the last normal include action, or throws a "getOutputStream() has already been called for this response".
The real question here is, how do I make a template into which I can toss various types of content? (without creating two files, making the code illegible, or making it not work at all)