Any help, plz!
On Sun, Feb 9, 2014 at 8:09 AM, Quang Cường Vũ <[email protected]> wrote: > Hi, dev. > > I write very simple program and deploy to Application Server > I use this code to obtain tenant context: > ie. index.jsp > <% > CarbonContext cCtx = CarbonContext.getCurrentContext(); > int tenantId = cCtx.getTenantId(); > String tenantDomain = cCtx.getTenantDomain(); > String tenantUsername = cCtx.getUsername(); > %> > <b>User Information</b> > <br> Tenant ID: > <%=tenantId%><br> Tenant domain: > <%=tenantDomain%><br> Tenant user name: > <%=tenantUsername%><br> > After I login, using BASIC authentication, index.jsp show result: > *User Information* > Tenant ID: -1234 > Tenant domain: carbon.super > Tenant user name: null > > Could you help me fix? Thank > > -- > > > *V u Q u a n g C u o n g * > > *Software developer and Trainer* > ------------------------------------ > Mobile: 0988.397.448 > Email: [email protected] > > > <http://www.wisestamp.com/> > -- *V u Q u a n g C u o n g * *Software developer and Trainer* ------------------------------------ Mobile: 0988.397.448 Email: [email protected] <http://www.wisestamp.com/>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
