AW: [opencms-dev] using variables in jsp templates

Mark Miller mark.miller at
Thu Jun 5 12:18:01 CEST 2003

I think each template is it’s own object ... so any vars defined are
class properties .. hence are encapsulated and cannot be accessed by
another object.

-----Ursprüngliche Nachricht-----
Von: opencms-dev-admin at
[mailto:opencms-dev-admin at] Im Auftrag von Thomas Hieck
Gesendet: 05 June 2003 11:59
An: opencms-dev at
Betreff: [opencms-dev] using variables in jsp templates

hi there,
my first active participation in this list. :-)

I'm no great jsp expert- maybe its a very simple problem.
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"

I use this loaded.jsp in different templates, but the
variable depends on the template.

Any idea?

thanks, thomas.

This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please

More information about the opencms-dev mailing list