Re: [Webwork-devel] XML-based Action configuration
Brought to you by:
baldree,
rickardoberg
|
From: Mike Cannon-B. <mi...@at...> - 2001-11-20 13:40:53
|
Ditto - I love it - I've realised why it's much more readable - you see what all the parts are from the XML tags.=20 ie <action name=3D"Test"> is actually more readable than Test.success (despite being more verbose ;)). +1 -mike PS Can I now outlaw all Apache like voting for changes such that it might inhibit the quality of the software produced? ;)=20 PPS +1 to outlaw voting ;)) On Wed, 2001-11-21 at 00:00, Victor Salaman wrote: > Seems good to me! >=20 >=20 > >Hey > > > >I have now implemented an XML-based Action configuration module. It can > >load XML in the following format, which is used both for action > >instatiation and view mappings. Example: > ><actions> > > <action name=3D"Test" alias=3D"test"> > > <view name=3D"success">test.jsp</view> > > <command name=3D"foo" alias=3D"test.foo"> > > <view name=3D"success">test.jsp</view> > > </command> > > <command name=3D"default"> > > <view name=3D"success">test.jsp</view> > > </command> > > </action> > ></actions> > > > >So, basically it's a list of actions. Actions may or may not have > >aliases. Actions may have a number of commands defined, each of which > >may in turn have aliases or not. If a command alias has not been > >defined, it may be invoked using the actions name/alias followed by "!" > >followed by the commands name. For example, the above XML would allow > >the two Test commands to be invoked using: > >test.foo > >test!default > > > >That's all there's to it. No changes were needed in the view mapping or > >action factory, since they both use the above using the Configuration > >interface. > > > >Any thoughts on this? I have not yet added it to CVS, since I wanted > >feedback first. > > > >regards, > > Rickard > > > >-- > >Rickard =D6berg > > > > > >_______________________________________________ > >Webwork-devel mailing list > >Web...@li... > >https://lists.sourceforge.net/lists/listinfo/webwork-devel >=20 >=20 > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.as= p >=20 >=20 > _______________________________________________ > Webwork-devel mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webwork-devel |