No problem bro Let's see what you added to your template to fetch the title from action
On Fri, Mar 28, 2008 at 4:18 AM, me <[EMAIL PROTECTED]> wrote: > Sorry but I think I miss something. I've got a action which extends > ActionSupport. This Action has got an execute() method > and an title property with the getters and setters. > The action is properly read and executed. But the property wasn't. Is > there anything I have to take care of? > Sorry for my stupid questions. > > Marc > > [EMAIL PROTECTED] schrieb: > > The FreeMarker template can access the property in your action to get > the > > "action variable" title. > > > > On Fri, Mar 28, 2008 at 3:24 AM, me <[EMAIL PROTECTED]> wrote: > > > > > >> Hi, > >> > >> hmmm... do you mean that I should create a template for each site which > >> has another title? > >> I think that would be too much. I've got several pages which should get > >> a title based on information > >> located in a database. > >> > >> I thought that there will be a property in the action i have to set or > >> can I access the > >> value-stack from the sitemesh-freemarker template? > >> > >> > >> Marc > >> > >> [EMAIL PROTECTED] schrieb: > >> > >>> Hey Marc -- > >>> > >>> copy that FreeMarker template into your <webroot>/template folder and > >>> > >> modify > >> > >>> it with your desired changes. Struts 2 will grab yours for rendering. > >>> > >>> > >>> On Fri, Mar 28, 2008 at 2:14 AM, me <[EMAIL PROTECTED]> wrote: > >>> > >>> > >>> > >>>> Hi, > >>>> > >>>> I'm running struts2 with sitemesh. There is a freemarker template > >>>> defined in the decorators and this template > >>>> has both variables $title and $body. The body is filled autmatically > >>>> which is okay. But I want to set the title > >>>> from the action I've called because I wanted to have the content and > >>>> > >> the > >> > >>>> title having a relation to each other > >>>> (which makes sense, I believe... :) ) > >>>> > >>>> Thanks for your help. > >>>> > >>>> Marc > >>>> > >>>> --------------------------------------------------------------------- > >>>> 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] > >> > >> > >> > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Scott [EMAIL PROTECTED]