DeskNow Knowledge Base
 
      
Home Customization and Integration How do I create custom pages knowing the current user's username, full name, domain, etc

How do I create custom pages knowing the current user's username, full name, domain, etc

Sometimes you need to add some custom pages to DeskNow, which opens other tools that need to know what is the username of the user currently logged in , his/her full name, and so on. DeskNow provides a single JSP tag to easily generate this information inside a web page.

To test, simply create a file called Test.jsp and save it into desknow\jsp\original

The content should look like this:

<%@ taglib uri="/DeskNowTags" prefix="dn" %>
<dn:account>
username: <%= account_username %>@<%= account_domainname %> <br/>
community: <%= account_communityname %> <br/>
full name: <%= account_fullname %>
</dn:account>

You can then open the page in a new browser window/tab, at the address http://www.server.com/desknow/jsp/original/Test.jsp . If the browser had a valid session, i.e. after the user has logged in to DeskNow, the page will show the account details of the current user.

Email Article Email
Print Article Print


How helpful was this article to you?
Related Articles
article How can I enable compression of the web pages served?
It is possible to enable gzip compression of...

(No rating)  October 25, 2007    Views: 14146   
article Login using a single URL that includes username and password
IMPORTANT: using this method of login poses a...

  July 17, 2004    Views: 74018   
article Custom authentication
This article describes how to use a custom...

  May 2, 2004    Views: 60640   



Powered by Lore :: (c)2003 Pineapple Technologies.