Rob, Yes, with action aliasing you can give the same _class_ two different action names and each one can have it's own success, error, and input views.
FooA.action=Foo FooA.success=as.jsp FooA.error=ae.jsp FooB.action=Foo FooB.success=bs.jsp FooB.error=be.jsp ----- Original Message ----- From: "Dort, Rob van" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, November 16, 2002 6:05 AM Subject: [OS-webwork] Reusing actions > Hi, > > I am currently studying WebWork. > Looks promising but there's some magic under the hood... > > One (important) question that comes up: > in views.properties (see sample below) every action/condition (e.g. > CDList.success) has only one destination (cdlist.jsp). > > 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? > > Kind regards, > > Rob. > > # Webshop (I18N example adaptation) > Shop.success=shop.jsp > AddItem.success=shop.jsp > Delete.success=shop.jsp > Checkout.success=checkout.jsp > SetLanguage.success=Shop.action > SetLanguage.error=setLanguage.jsp > Restart.success=shop.jsp > Cart.success=cart.jsp > CDList.success=cdlist.jsp > Shop.success=shop.jsp > > > ------------------------------------------------------- > 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 ------------------------------------------------------- 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