If I understand your question use in jsp use s:set to set the value and reference the value later with s:property (without the # to access root objects) http://struts.apache.org/2.x/docs/crud-demo-i.html
M-- ----- Original Message ----- From: "Gary Affonso" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <user@struts.apache.org> Sent: Wednesday, November 28, 2007 4:06 PM Subject: Re: FreeMarker Question > MassimoH wrote: > > How do I do something like this: > > > > public class CustomFreemarkerManager extends FreemarkerManager { > > @Override > > protected BeansWrapper getObjectWrapper() { > > BeansWrapper beansWrapperInstance = super.getObjectWrapper(); > > > > // !!! This won't compile due to "root". What is that object and how do I > > get a reference to it? !!! > > root.put("statics", beansWrapperInstance.getStaticModels()); > > root.put("enums", beansWrapperInstance.getEnumModels()); > > > > return beansWrapperInstance; > > } > > } > > > > I think you might do better asking this in a FreeMarker forum (or list). > Or put the question into a Struts context (if it's related to struts). > > - Gary > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]