[opencms-dev] How to include a jsp into a html?
martin koeck
opencms at brainwork.at
Wed Sep 22 11:23:35 CEST 2004
> Everywhere I want to include a dynamic file I set a page property
> jsp_include to a filename. And in my template I put:
>
> ,----
> | <%
> | String jsp = cms.property( "jsp_inlcude", "uri", "empty.txt" );
> | StringTokenizer tokenizer = new StringTokenizer( jsp, ";" );
> | String token = null;
> |
> | while ( tokenizer.hasMoreTokens() )
> | {
> | token = tokenizer.nextToken();
> | cms.include( "../elements/" + token );
> | }
> | %>
> `----
wow, great idea !
just one drawback: is there a way to pass parameters this way from the
html to the jsp ?
/some.html?id=4711&name=...
rgds
--
martin
More information about the opencms-dev
mailing list