Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Wiki Markup
{snippet:id=all|lang=xml|url=webworkstruts2/plugins/dojo/src/javamain/resources/template/ajax/head.ftl}
Note

If you are having trouble getting the AJAX theme to work, you should include the above JavaScript in your page manually, changing "isDebug: false" to "isDebug: true". This will log out debugging information directly to the screen.

Note that Dojo is configured to use the same character encoding specified in action struts.properties, typically UTF-8. For a simple example of how to use the head tag with the AJAX theme, simply do the following in your HTML:

Wiki Markup
{snippet:id=common-include|lang=xml|url=webworkstruts2/webappsapps/showcase/src/main/webapp/ajax/commonInclude.jsp}
Info

The above sample is from Struts trunk; for 2.0.6 you should use <s:head debug="true"/>.