Show TOC Start of Content Area

Function documentation Modification of the jsp file  Locate the document in its SAP Library structure

Use

This function enables you to modify a jsp file.

Activities

...

       1.      Copy the relevant .jsp-file in the application.

In this example, we use help_left_support.jsp.

       2.      Make the following changes:

                            a.      Replace CheckAgent.do with RequestHelp.do

                            b.      Transform email.jsp into an action

The modified .jsp-file would resemble the following syntax:

Syntax

<%@ page language="java" %>

<%@ taglib uri="/WEB-INF/isa.tld" prefix="isa" %>

<%@ taglib uri="/WEB-INF/tlds/cic.tld" prefix="cic" %>

<html>

<head>

<cic:base/>

<title><isa:translate key="cic.customer.common.title"/></title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-

8859-1">

<link rel="stylesheet" href="<isa:mimeURL name="b2b/css/b2b.css" />" >

</head>

<body class="help">

<div id="new-doc" class="module">

<div class="module-name-new">help-secondaryNav</div>

<ul>

<li><a href="<isa:webappsURL name="ecall/customer/RequestHelp.do?action=email"/>" target="help_right"><isa:translate key="cic.customer.common.supportEMail"/></a></li>

<li><a href="<isa:webappsURL

name="ecall/customer/RequestHelp.do?action=chatroom"/>"

target="help_right"><isa:translate

key="cic.customer.common.supportChat"/></a></li>

</ul>

</div>

</body>

</html>

       3.       Insert the RequestHelp.do information into the config.xml file.

Syntax

<!-- check help request -->

<action   path="/ecall/customer/RequestHelp" type="com.mycompany.

internetsales.event.CaptureRequestHelpAction"

scope="request">

<forward name="success" path="/ecall/customer/CheckAgent.do" />

  <forward name="email" path="/ecall/jsp/customer/email/email.jsp" />

</action>

See also:

Creation of an Event

 

End of Content Area