Hi,
I'm a big fan of struts2 and freemarker, but I'm just now getting around
to using
the struts2 UI tags in freemarker.
It appears that "automatic null value handling" feature of struts2 is
not available from freemarker?
To be more specific: In jsp, you can do this:
<s:textfield name="user.firstName" value="${user.firstName}"/>
This works even when user doesn't exist because of the OGNL null value
handling.
OGNL discovers that user is null and creates a new user. Likewise for
firstName.
However, the same tag in freemarker does not work:
<@s:textfield name="user.firstName" value="${user.firstName}"/>
We get an exception "user is undefined". This is presumably because the
freemarker
expression language is being used, and not OGNL?
So I'm amazed that I have not been able to find a single mention of this
very important issue!
Am I missing a simple work-around?
Can anyone comment?
Thanks,
Fred Toth
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]