(forw) Re: [Webwork-user] Mozilla
Brought to you by:
baldree,
rickardoberg
From: Maurice C . P. <Ma...@Vi...> - 2000-11-29 13:57:09
|
* Rickard Öberg (ri...@te...) wrote: > Hi! > > > > > I think that this will be OK as long as only HTML the desired output from the Dispatcher. > > Yeah, I can see the problem and why the above fixes it... hm.. but it is > not good in the long run, since it should be possible to create XML, > WML, PDF, whatever.. the text/html is a good default, but it should be > overridable. > > I was thinking something like: > Foo.action -> text/html as type > Foo.wml.action -> text/wml as type > Foo.plain.action -> text/plain as type > etc. > > Does this seem reasonable? It is a bit more computation to do on each > call though (check extensions), but at least it is "future compliant" so > WebWork can support multiple output MIME-types. > This is good thinking. So would it use the same actions? It would be real cool to be able to run in different modes or skins using the same actions and you would just have different views selected from views.properties. If this is the case, it might be clearer to put the new extension on the end of the action instead of right after the class name. Later, Maurice |