[opencms-dev] using variables in jsp templates

Thomas März thomasmaerz at gmx.de
Thu Jun 5 12:27:01 CEST 2003


Thomas Hieck <hkt at gmx.net> writes:
> I have a jsp template and a defined variable:
>
>   <% String letters = "abcde"; %>
>
> Using this variable in the same template work fine:
>
>   <%= letters %>
>
> Here my problem. I load a jsp file in the template
>
>   <cms:include file="../elements/loaded.jsp" />
>
> and want use my variable ("letters") in this loaded.jsp
> Unfortunately it doesn't work.
>
>   "cannot resolve symbol: symbol: variable letters"

Get the "OpenCms JSP taglib documentation" and view the source of the
file
"/alkacon-documentation/documentation-taglib/test_tag_include2.jsp".

,----
| <cms:include page="test_tag_include2a.jsp">
| 	<cms:param name="jsp.test1" value="some value" />
| 	<cms:param name="jsp.test2">Some other value</cms:param>
| 	<cms:param name="b" value="xx" />
| </cms:include>
| 
| 
| <cms:include page="test_tag_include2a.jsp">
| 	<cms:param name="b" value="zz" />
| 	<cms:param name="locale" value="de" />	
| </cms:include>
`----


Best Regards,
Thomas März




More information about the opencms-dev mailing list