|
From: B. <jer...@xt...> - 2004-07-21 08:58:22
|
Selon Matt Raible <li...@ra...>:
> I've got it to work, but only after modifying the build.xml in CVS to
> include *.ftl files. Here's my template:
>
> <#import "/org/springframework/web/servlet/view/freemarker/spring.ftl"
> as spring />
I did copy it from CVS into my template path so this was not the issue I =
had
trouble with :-)
> <@spring.bind "user.*"/>
> <#if spring.status.error>
> <div class=3D"error">
> <#list spring.status.errorMessages as error>
> ${error}<br/>
> </#list>
> </div>
> </#if>
I finally found the problem thanks to your post. The thing is I find the
documentation (section 12.5.3.1) quite confusing: it binds with paths suc=
h as
"command.name", "command.age", "command.address.street", etc. and I thoug=
ht
that instead of using the name of my command, that I had to use the "comm=
and"
keyword. The doco should be clarified somehow by indicating that the bind=
path
is from the model map and that the "command" string is not a keyword.
Sorry for being too dumb :-)
Anyway, I've got this work working now!
Thanks,
J=E9r=F4me.
|