Previous Topic: Customizing the Height and Width of the VPN Client User InterfaceNext Topic: Customizing the Time Interval Between Connection Status Checks


Invoking the Default Web Browser Through VPN Client

The VPN Client application can be configured to open a specific Web page in the default Web browser of the user’s system. To add this functionality, you need to add the following code in the XML or JSP file used to render the user interface:

<textField hidden="true" name="targetURI" value="http://www.arcot.com"/>
<button name="<%= strProps.getString("application.button.BROWSE") %>" actionName="invokeBrowser" disableOnClick="false" hotkey="<%= strProps.getString("application.button.BROWSEHOTKEY") %>"/>

The first line of code adds a hidden text field that stores the URL of the Web page that opens in the Web browser. In the example, the value attribute of the text field is set to http://www.arcot.com. You can change this attribute to a desired value.

The second line of code adds a button named Browse on the user interface. When a user clicks the Browse button, the default browser is invoked and the Arcot home page is displayed.