I'm glad you appreciate it! :-)
It is starting to feel a bit lonely here in WW1.x land now when everyone is buzzing 
about WW2 so it is nice to hear that I am not completely alone anyway.
I have a couple of more patches for WW1.3 and then I think we could do a new release. 
I suggest we call that one 1.4 by the way, since some new features have been added and 
also to lessen the confusion about all the 1.3 releases.

By the way, since I recall that you, Hani,did some work for reloading XML files etc, 
the static views will never be updated with the new DynamicViewMapping because it also 
does caching now (since it knows if it is a dynamic view that can be cached at all). 
If this is an issue one could perhaps make it read a configuration option (the one you 
added concerning reload for example), to decide whether it should cache any views at 
all.

Cheers,

Dick

----- Original Message ----- 
From: "Hani Suleiman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 01, 2003 4:16 PM
Subject: Re: [OS-webwork] Support for dynamic view mappings added to WW1.3


> Very, very cool. Thank you SO much for this!
> 
> On Tuesday, July 1, 2003, at 10:09 AM, Dick Zetterberg wrote:
> 
> > Hi,
> > I have just added support for dynamic view mappings to WW1.3.
> > This means that you in your actions xml/properties file can let the  
> > view be determined during runtime by looking up values on the value  
> > stack.
> > I have followed the same syntax used in WW2, so you use expressions  
> > like:  ${someWWExpression}
> > someWWExpression is just like any normal WW EL expression you use in  
> > your JSP etc.
> >
> > You can for example do:
> >
> > <action name="myAction">
> >  <view name="success">someAction?countryParam=${someCountry}</view>
> > </action>
> >
> > This looks up the value someCountry on the value stack. The last  
> > action executed before the mapping is in this case myAction so that  
> > will be the first action found on the stack for the lookup, so if it  
> > contains a getSomeCountry() method then it will be called.
> >
> > You can use several dynamic expressions and you can use them anywhere,  
> > also for the action, so for example you could do:
> > <action name="myAction">
> >  <view  
> > name="success">${nextAction}.action?countryParam=${someCountry}</view>
> > </action>
> >



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to