%{expr} won't work (yet). I modified EditPersonAction on showcase to this:

@Result(name="list", value="${next}", type=ServletRedirectResult.class)
public class EditPersonAction extends ActionSupport {

...

public String getNext() {
       return "listPeople.action";
 }

public String execute() throws Exception {
       persons.addAll(personManager.getPeople());
       return "list";
 }

..
}

and it works as expected. Did you configured the initParam actionPackages in
your web.xml, like?:

<filter>
       <filter-name>struts</filter-name>
       <filter-class>org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
       <init-param>
           <param-name>actionPackages</param-name>
           <param-value>org.apache.struts2.showcase.person</param-value>
       </init-param>
   </filter>


musachy

On 5/9/07, Dave Newton <[EMAIL PROTECTED]> wrote:

--- Caine Lai <[EMAIL PROTECTED]> wrote:
> @Result(name=Action.SUCCESS,
>         value="/resources/${resource}.ftl",
>         type=FreemarkerResult.class)
> Am I missing something?

Did you try using OGNL syntax, like %{resource}.ftl?

d.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Reply via email to