DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4293>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4293 session:get-attribute bug Summary: session:get-attribute bug Product: Cocoon 2 Version: 2.0rc1 Platform: Other OS/Version: All Status: NEW Severity: Normal Priority: Other Component: general components AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I discovered that the session logicsheet has a bug into the session:get- attribute template. It break my code when trying to get a non-string session object stored as attribute with a java.lang.ClassCastException: java.lang.String because the logicsheet always create a call to the constructor getSessionAttribute passing it a default value (an empty string or the default value specified with session:get-attribute). This should be corrected, by checking the existence of the default parameter and create a call to the constructor without it if none is specified. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]