Re: default domain by app
"Shash Chatterjee" <[email protected]>
| Newsgroups | gmane.comp.java.keel.user |
|---|---|
| Message-ID | <[email protected]> |
Gene, > Is there a way to set, in the configuration, a default domain for my > app? > > The whole domain system eludes me, and I can't find much in the way > of docs on it. (probably just not looking in the right place, i'm > sure) If you could point me to that, that would be a great help, as > I'd like to understand more than I'd like my problem fixed. If I > had a clue, I might quit bothering you with stupid questions so you > could actually do some development yourself. See my reply to Machiel regarding docs. Docs will happen if we as a community think those are valuable and more are willing to pitch in to get it done. I realize this is a chicken-and-egg problem, but it is also true that, however imperfect, there is quite a bit to get started with. Now with domains. This has no docs. A domain is just a key now that gets you to associate a DB, a authentication system, etc. Each logged in user is assigned a domain, and the way to do that is thorugh the register.login (app-register) model. If you use the Keel supplied models and JSPs (nothing says that is the only way to login, you can extend/replace the login model), register.prompt-login provides a selection mechanism for all the configured domain names. When the user clocks the login button, register.login then puts the domain name in the users session (a cookie, and in the UserEnv.). You could create multiple URL's on your home page, for example, to have "Customer", "Visitor", "Supplier" login links, and supply the "domain" parameter in the URL. I am not sure what you mean by "domain per app", given what I just said about Keel domains. It is really a "domain per user". What were you expecting to accomplish with a different domain per app? Shash