cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Global variables
Date Mon, 23 Aug 2004 10:27:27 GMT
Here is an example of a global variable 'title'
  xmlns:xsp="  <>">
  <svgmenu width="50">
    private String title = "Here comes title ";   
To use objects declared in other xsp, you can make use of 
in xsp where you declare object/variable
              Session session = request.getSession();
              session.setAttribute("mytitle", title);
in xsp where you want to use object/variable
          Session session = request.getSession();
          String title  = (String)session.getAttribute("mytitle");

-----Original Message-----
From: Adriano Smith []
Sent: 23 August, 2004 12:42
Subject: Global variables

How can global variables be declared in xsp?

Also how can objects declared in one xsp be accessed in another?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message