> I can imaging that I would want to use one and the same action in multiple
> contexts, thus needing to point to another destination.
> I would have expected something like Context1.CDList.success=cdlist1.jsp
and
> Context2.CDList.success=cdlist2.jsp.
> Is this possible in current WebWork?

Yes, this is easily accomplished with a little bit of action aliasing. In
your example above I could do it with a views.properties file like this:

CDListContext1.action=CDList.action
CDListContext2.action=CDList.action
CDListContext1.success=cdlist1.jsp
CDListContext2.action=cdlist2.jsp

Thanks for pointing this flaw in the documentation out to us. I have written
a small description of this solution in the webwork cookbook in the wiki
(http://www.opensymphony.com:8668/space/Action+Aliasing).

// Anders Hovmöller



-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to