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

Mark Miller mark.miller at hema.ch
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 opencms.org
[mailto:opencms-dev-admin at opencms.org] Im Auftrag von Thomas Hieck
Gesendet: 05 June 2003 11:59
An: opencms-dev at opencms.org
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
visit
http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list