Dashboard > WebWork > WebWork > Enhancement
  WebWork Log In View a printable version of the current page.  
  Enhancement
Added by tm_jee, last edited by tm_jee on Nov 30, 2007  (view change)
Labels: 
(None)

NOTE: Do take note that parameters declared in xwork.xml or its included files will override where the latter takes precedence. For example if we have a parameter declared in xwork.xml and one in xwork-include1.xml which is included through xwork.xml, the parameter declared in xwork-include1.xml will override the one declared in xwork.xml. In other words the parameter declared in xwork-include1.xml takes precedence.

Ognl by default uses expression parsing for expression evaluation. However starting from Ognl 2.7.1, Ognl is capable of doing expression compilation using Javassist for expression evaluation. WebWork 2.2.7 / XWork1.2.4 and above support this functionality, however it is turn off by default to preserved backwards compatibilities. To turn it on, we need to use the following Doctype :-

<!DOCTYPE xwork PUBLIC
                    "-//OpenSymphony Group//XWork 1.1.2//EN"
                    "http://www.opensymphony.com/xwork/xwork-1.1.2.dtd">

And also declare a parameter "useOgnlEnhancement" with value "true" in xwork.xml as follows.

<xwork>
   <parameters>
     <!-- enable OGNL expression compilation feature -->
     <parameter name="useOgnlEnhancement" value="true" />
     ...
   </parameters>
   ...
 </xwork>

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators