Just noticed an error in your syntax:
<ww:bean name="'webwork.action.ActionContext'" id="actionContext">
<ww:if test="principal != null">
Principal <ww:property value="principal"/> is logged in
</ww:if>
</ww:bean>
That if should be:
<ww:if test="principal"> Principal <ww:property value="principal" /> is logged in </ww:if>
The WW EL is *really* confusing when it comes to null tests IMO. test="principal" means "principal != null" and test="!principal" means "principal == null".
Your example probably works because "null" is meaningless in the WW EL so "principal != null" probably evaluates to true just like "principal".
I haven't been following the list too closely for WW2 - is this something that could be cleared up for the next version? To me, I'd make a lot more sense if test="foo" was a boolean test and "null" had meaning.
Cheers, --Bill
------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
