Sample: Web Application (HelloUserWikExample)
The HelloUserWikExample application is a Web application that displays the string Hello 'user', where user is the name of the user who is logged on to the portal Web application, as shown in this example:
Hello 'Portal Demo'
The HelloUserWikExample application uses SAS Foundation Services to access session information created by the portal Web application, extracts the user's name from the session information, inserts the name in a message, and displays the message to the user.
You can deploy the HelloUserWikExample application as either a remote portlet or a stand-alone application. The HelloUserRemotePortlet sample shows how this application can be deployed in a remote portlet.
If an application is called from a remote portlet, then it must generate an HTML fragment to be displayed within the portlet borders. If an application is to be invoked as a stand-alone application, then its JSP page must generate a complete HTML file (with starting and ending
Note: The purpose of the HelloUserWikExample application is to show how you can use the APIs to access the shared session context. It is not intended to illustrate best programming practices.
The following steps were used to create the application: