Document Tree
Document Properties
Kbid
D24761
Last Modified
04-Feb-2020
Added to KB
20-Jun-2013
Public Access
Everyone
Status
Online
Doc Type
References
Product
  • ICM 7.10
  • ICM 11
  • ICM 12
ISML Function - servlet()

Name

servlet()

Short Description

generates dynamic content via servlets

Table of Contents

Product Version

6.5

Product To Version

 

StatusNew Labels

Introduction

It is sometimes desirable to generate dynamic content via servlets instead of pipelines. To do this, the ISML function servlet() is used.
It generates the part of an URL string that addresses Java application components that are downloaded, on demand, to the part of system that needs them. As with action(), the function servlet() is only used within url()and urlex().

Syntax

Servlet(String servletName)
Servlet(String servletName, String serverGroupName)

Example

The following example shows how to call the LineChart servlet, which generates a new URL with the requested servlet and the server group encoded.

<img src="#URL(Servlet('LineChart'),Parameter('title','Memory'), ...)#">

The servlet() function within the url()function returns the following URL:

http:// <webserver-host>:<port>/INTERSHOP/servlet/WFS/LineChart?title=Memory& ...

This URL contains the name of the servlet (LineChart) and the server group, e.g., WFS, which is also the default server group.
With the servlet mapping to LineChart, the Web Adapter can address the LineChart servlet in an application server that is part of the WFS server group.

Therefore, the Web Adapter uses this URL:

http:// <appserver-host>:<port>/servlet/LineChart?title=Memory& ...

Reference - ISML Functions

Disclaimer
The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.
Home
Knowledge Base
Product Releases
Log on to continue
This Knowledge Base document is reserved for registered customers.
Log on with your Intershop Entra ID to continue.
Write an email to supportadmin@intershop.de if you experience login issues,
or if you want to register as customer.