Try stack.findString('title') instead of ${title}
On Fri, Mar 28, 2008 at 4:57 AM, me <[EMAIL PROTECTED]> wrote:
>
> [EMAIL PROTECTED] schrieb:
> > No problem bro
> >
> > Let's see what you added to your template to fetch the title from action
> Okay, these are my files:
>
> template.ftl:
> --------------------------------------------------------------
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html>
> <head>
> <title>test - ${title}</title>
> </head>
> <body>
> ${body}
> </body>
> </html>
> --------------------------------------------------------------
>
> ContactAction:
> --------------------------------------------------------------
> package isi.services.pages;
>
> import com.opensymphony.xwork2.ActionSupport;
>
>
> public class ContactAction extends ActionSupport {
>
> String title = "hallo";
>
> public String execute() {
> return "input";
> }
>
> public String getTitle() {
> return this.title;
> }
>
> public void setTitle(final String value) {
> this.title = value;
> }
>
> }
> --------------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Scott
[EMAIL PROTECTED]