[opencms-dev] how I can obtain the xmlpage final content
Thomas Maerz
thomasmaerz at gmx.de
Tue Jul 12 10:26:52 CEST 2005
Ernesto De Santis <ernesto.desantis at colaborativa.net> writes:
> I am trying to obtain the final html code from a xmlpage, including the
> template. I need this in a stream, or string variable for send this via
> email.
Just put another JSP template in front of your template.
Just tested and it worked:
| CmsJspActionElement cms = new CmsJspActionElement( pageContext, request, response );
| String html = cms.getContent( "this.is.your.template.file" );
And the JavaDoc states:
| Returns the processed output of an OpenCms resource in a String.
Regards,
Thomas
More information about the opencms-dev
mailing list