http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2443

*** shadow/2443 Tue Jul  3 19:08:27 2001
--- shadow/2443.tmp.13679       Tue Jul  3 19:08:27 2001
***************
*** 0 ****
--- 1,36 ----
+ +============================================================================+
+ | $data.session.id in a velocity  template causes IllegalAccessException     |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2443                        Product: Turbine                 |
+ |       Status: NEW                         Version: 2.1 final               |
+ |   Resolution:                            Platform: Other                   |
+ |     Severity: Normal                   OS/Version: Other                   |
+ |     Priority: Other                     Component: Source                  |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                               |
+ |  Reported By: [EMAIL PROTECTED]                                        |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Not sure if this is a bug in Velocity, bug in Turbine, limitation of the 
+ StandardSession object in Tomcat, or limitation of Java classloading....
+ 
+ This gets output by velocity when trying to call $data.session.id in a Velocity 
+ template.
+ 
+ ------8<-----------
+ Tue Jul 03 16:43:03 GMT-08:00 2001  [error] ASTIdentifier() : exception 
+ invoking method for identifier 'Id' in class 
+ org.apache.tomcat.session.StandardSession : java.lang.IllegalAccessException
+ -----8<-----------------
+ 
+ A workaround is to put the session id into the context in a module class, say
+ In a screen class:
+ 
+ context.put("jsessionid", data.getSession().getId());
+ 
+ Then is a template:
+ $jsessionid
+ 
+ -Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to