Sorry for taking so long to get back to everyone on this. This is a side project of mine and things have been hectic with the day job keeping me from this.
After doing some experimentation, I've found that your solution below does work Musachy. It just won't access a property in the request attributes as I was trying to do. At least it wouldn't do it the way I was doing it. =) Setting a property in my Struts action class is working perfectly now. Thanks to everyone that responded. On 5/10/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
%{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