|
RE: A "catch-all" component?: msg#00156web.mason.user
> -----Original Message----- > From: Dave Rolsky [mailto:autarch@xxxxxxxx] > Sent: Wednesday, August 20, 2003 4:55 PM > To: Marc Logghe > Cc: Egor Shipovalov; Mason-Users > Subject: RE: [Mason] A "catch-all" component? > > > On Wed, 20 Aug 2003, Marc Logghe wrote: > > > > That's called a subrequest. > > > Well, not exactly. > > > What I meant was the following. Suppose a request is made for > > /index.html in which a call to the component <& > /languages/show_news.nl > > &> is made. But, the component /languages/show_news.nl does > not exist. > > Normally Mason will throw an exception, right ? What I was thinking > > about, is that instead, it is handled by a dhandler like > component which > > then can connect to a database for instance, and fetch news > items from a > > database. Or, e.g. another scenario, calls the component > > /languages/show_news and implements the dutch translation one way or > > another. > > If you instead do: > > % $m->subexec( '/languages/show_news', ... ); > > it will do dhandler lookup and so on. That's the point of > subrequests. > > The only difference between this and what you're proposing is that you > have to explicitly use a subrequest instead of a normal > component call. Exactly. That was the point I was trying to make. cheers, Marc ------------------------------------------------------- This SF.net email is sponsored by Dice.com. Did you know that Dice has over 25,000 tech jobs available today? From careers in IT to Engineering to Tech Sales, Dice has tech jobs from the best hiring companies. http://www.dice.com/index.epl?rel_code4 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: A "catch-all" component?: 00156, Egor Shipovalov |
|---|---|
| Next by Date: | strict subs error when using annonymous array: 00156, K Old |
| Previous by Thread: | Re: A "catch-all" component?i: 00156, Jonathan Swartz |
| Next by Thread: | RE: A "catch-all" component?: 00156, Egor Shipovalov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |