Struts - release notes


1.0 Known problems
   1.1 Struts migration issue

1.0 Known problems

1.1 Struts migration issue

If you built your application using the list template wizard provided by WSSD 5.1 (Express 5.0.2) through link: http://www-106.ibm.com/developerworks/websphere/zones/studio/rad/, the code generated by the wizard uses Struts 1.0.2 and may use

PropertyUtils.copyProperties(targetObject, Usersdab);

The PropertyUtils class is part of the org.apache.commons.beanutils package. If you previously migrated the application to Struts 1.1(beta2) and now move up to the final version of Struts1.1 you may encounter a problem. The new version changes the order of the attributes while copying from the javabean . The old template code depends on that order so after migrating to WSSD5.1.1 it will throw exception java.lang.reflect.InvocationTargetException if used with the new runtime.

You need to make the following change in order to make it work in both releases:

Use setProperty instead:

PropertyUtils.setProperty(targetObject, "nickname", Usersdab.getNickname());

Return to the main readme file