Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added EL issue

...

Note

If you forget to migrate a tag reference from the core to the dojo plugin you will receive an exception similar to the one below:

Code Block
none
none
2008-04-19 14:32:30,475 ERROR [http-8443-Processor23] [[jsp]] Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: No tag "datetimepicker" defined in tag library imported with prefix "s"

Convert EL expressions to OGNL

Struts2.1 tags do not allow evaluation of JSP EL within their attributes. Instead, Struts2 tags evaluate attribute values as OGNL. Allowing both expression languages within the same attribute opens major security vulnerabilities.

todo: how to convert

Note

Forgetting to convert attributes to OGNL expressions will produce exceptions similar to the one below:

Code Block

org.apache.jasper.JasperException: /example.jsp(8,6) According to TLD or attribute directive in tag 
file, attribute value does not accept any expression

Reduce verbose logging

Struts 2.1 introduces more verbose logging than Struts 2.0. While extremely valuable, some users may find these annoying.

...

Review the Unit Tests included with Struts2 for recommended practices to setup the Configuration and context.

...

Trouble-shooting

The issues are listed in the same order as encountered after changing jars over from 2.0.x to 2.1.x. Noteworthy, the migration was done under the following setup: Fedora core 6, JDK 1.6.0_2 and Tomcat 6.0.10 running from MyEclipse plugin.

...