Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

More Information on the sample applications can be found here:

What are the required Jars present in the sample applications ?

The sample application jars include:

...

The Java 1.4.x zip file can be found (i.e. struts-2.0.x-j4.zip) :

...

...

...

What else must you do ?

There is a backport folder located in the j4 zip file.

Altenatively, you can find the backport files here:

...

...

In summary the steps you should perform:

  • You must put these files contained in backport

...

  • folder into your WEB-INF/lib folder. I got the files from the backport folder in nightlies which i copied to ... \WebContent\WEB-INF\lib
  • There is a translate.bat file located in the backport file. You can run

...

  • this bat file to
    convert your Java 5 jars into j4.

...

  • I

...

  • modified the translate.bat as follows:

java -jar retrotranslator-transformer-1.0.8.jar -srcjar struts2-core-2.0.1.jar -destjar struts2-core-j4-2.0.1.jar
java -jar retrotranslator-transformer-1.0.8.jar -srcjar struts2-api-2.0.1.jar -destjar struts2-api-j4-2.0.1.jar
java -jar retrotranslator-transformer-1.0.8.jar -srcjar xwork-2.0-beta-1 -destjar xwork-2.0-j4.jar

  • invoke translate.bat
  • It is important to note that you will have to replace the following jars mentioned above with java 1.4.x equivalents:
    struts2-core-2.0.1 with struts2-core-j4-2.0.1.jar
    struts2-api-2.0.1 with struts2-api-j4-2.0.1.jar
    xwork-2.0-beta-1 with xwork-2.0-j4.jar

Note: You can either use the translate bat file to get j4 jars or get it from the j4 zip download.

What jars should you have in your WEB-INF/lib folder after performing these steps:

...