views:

25

answers:

1

I don't want to use any Java code, I just want to use <jsp:include> or <c:import> or something to that effect. So that I can use

<c:set var="myPage" value="bufferedPageOutput" />

to output the generated HTML later.

How can I do this with JSP/JSTL/Struts?

+3  A: 

The <c:import> tag can take an optional var attribute, which stores the imported content as a variable.

<c:import var="myPage" url="uri/to/import"/>

Very useful

skaffman
Can be shortened to `<c:import var="myPage" url="uri/to/import"/>` :)
BalusC
Erk. Yes, so it can. Brain fart, not thinking straight.....
skaffman