How to implement the WebClientMultisession Servlet

How to implement the WebClientMultisession Servlet

By default WebClient can only maintain one WebClient session for the same browser, this causes that even if you open your WebClient application in multiple tabs, all of those tabs will share the same information, to change this you can use the WebClientMultiSession servlet that allow you create a different WebClient session for each tab you open in your browser.

Conditions:

  • Only one Servlete can be running in the applicacion if you add the WebClientMultiSession please remove the WebClient servlet
  • Make sure your Web.xml Servlet-Mappinf URL-pattern is the same as in your deeplink.java

to implement this servlet just follow these steps:

  • In Eclipse, right click over your web project and select New->Servlet

  • From the “Create Servlet” window, mark the “Use an existing Servlet class or JSP” checkbox, then use the browse button to select the WebClientMultiSessionServlet servlet and click on the “Finish” button.

  • Open your WebClient.properties file and change the value for the Define.WSACTION entry to the following value “WSACTION=/<YOUR WEB PROJECT>/ WebClientMultiSessionServlet”, example:
    • Original
  •          Define.WSACTION=/TestWeb/WebClientServlet

    • Modified

             Define.WSACTION=/TestWeb/WebClientMultiSessionServlet

  • Test your application, remember that your URL must point to the WebClientMultiSession servlet instead of the default WebClient servlet


    • Related Articles

    • How to Implement Image Gallery

      In this article, we will be showing an example how we can use other Javascript library other than Dojo Toolkit in WebClient and how to implement an image gallery using https://galleriajs.github.io/ 1. Create a Plex grid function where one of the grid ...
    • How to implement file viewer in WebClient using Office Web Viewer

      Reference https://www.microsoft.com/en-us/microsoft-365/blog/2013/04/10/office-web-viewer-view-office-documents-in-a-browser/ IMPORTANT: The file (Excel spreadsheet, Word document, and PowerPoint presentation) need to be accessible via the internet ...
    • How to Implement Rich Tooltip to a Grid Field

      Rich tooltip on a grid feature enables the user to see tooltips with images and formatted text on a grid cell upon hovering. This feature also enables the developer to specify the delay time after hovering before it displays the tooltip message. The ...
    • How to Implement Rich Tooltip to an Edit Field

      Rich tooltip feature enables the user to see tooltips with images and formatted text on an edit field. This feature also enables the developer to specify the delay time after hovering before it displays the tooltip message. The information of the ...
    • How to Implement Outlook Style Calendar View Using EventCalendar.ctrl

      Create a grid function with the following fields. Event Id (Column Heading=Event Id) StartDate (Column Heading=Start Date) StartTime (Column Heading=Start Time) EndTime (Column Heading=End Time) Event Description (Column Heading=Summary) ViewType ...