Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: remove "void" result, shame on me

...

  1. Add the map inside a package that extends "gwt-default"
  2. Add the "gwt" interceptor to the mapping
  3. Add a result of type "void" (doesn't do anything)

Example:

Code Block
XML
XML
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">

<struts>

  <constant name="struts.enable.DynamicMethodInvocation" value="false" />
  <constant name="struts.devMode" value="true" />

  <package name="example"  extends="gwt-default">
     <action name="Hello" class="example.Hello" method="hello">
        <interceptor-ref name="gwt"/>*
        <result type="void"/>*
     </action>
  </package>

</struts>

...