Notes:
Changes: <ul> <li> Added the (optional ) concept of <strong>strutscx-definitions</strong>. Check out the<a href="howto.php"> <em>How-To</em></a> section for details. </li> <li>Implemented <strong>multiple transformations</strong> for 'pure' server side XSL Stylesheets (no FOP or client side XSL). Therefore a the replacement of the XMLProperties with an JDOM Document object was necessary. There is more flexibility now to handle the properties. StrutsCX v0.9 and before users: Changes have been made to the following classes:<br/> - <strong>StrutsCXBaseAction</strong><br/> - <strong>StrutsCXBaseActionHelper</strong><br/> - <strong>StrutsCXPropertiesReader</strong><br/> - <strong>All Actions</strong> classes<br/> Because we do handle a Document object and not longer an XMLProperties object you should to the following in your Actions:<br/> Everywhere you try to read properties out of the strutscx-config.xml use JXPath. This allows you to read in the properties with a simple XPath statement. Here an example: Do this <pre>JXPathContext props = JXPathContext.newContext(properties); String xslFile = (String) props.getValue("/properties/section/info/xsl/" + viewtype + "/" + activity);</pre> instead of <pre>String xslFile = properties.getProperty("section.info.xsl." + viewtype + "." + activity);</pre> When you pass the <em>lang</em> property to the InfoDelegate use <pre>(String) props.getValue("/properties/lang")</pre> instead of <pre>properties.getProperty("lang")</pre> Thats pretty much straight forward. </li> <li>The use of <strong>com.oreily.javaxml2.XMLProperties is deprecated</strong> and not supported any longer. </li> <li>All the Struts classes are packaged in the<strong> strutscx.jar</strong> now an you'll find them in the /WEB-INF/lib/strutscx.jar package. So the /WEB-INF/classes folder is empty. Added the <strong>JXPath</strong> Jar to the /WEB-INF/lib folder <table border="1"> <tr> <td>StrutsCX</td> <td> </td> <td>strutscx-v0.9.1.jar</td> </tr> <tr> <td> JXPath</td> <td> </td> <td> commons-jxpath-1.1b1.jar</td> </tr> </table> </li> <li>Changes to the <strong>strutscx-config.xml </strong>are now possible during runtime, too. </li> <li><strong>StrutsCXConstants</strong> a parameter for the strutscx-config.xml has been added. </li> <li>Implemented these changes in the <strong>StrutsCX prototype</strong>.</li> <li>See the <a href="api/v091/index.html" class="text01"><i>Version 0.9.1 API</i></a></li> </ul>
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use