Siebel Interactive Selling Transact Server Interface Reference > Working with Configurations > Modifying the Configuration List UI >

About the JSP Page


The configuration list is created in a JSP page called ConfigList.jsp which is located under <WebLogic home>/myServer/public_html/TransactServer.

JSP is a technology for controlling the content and appearance of Web pages through the use of servlets. Servlets are small programs that are specified in the Web page and run on the Web server. These programs modify the Web page before it is returned to the requestor.

To modify the format of the Configuration List, use the ConfigList API functions. From the JSP page, you must call the ConfigListBean. The ConfigListBean defines the functions you can call from your JSP page.

The UseBean Tag

Implement the UseBean tag to import the ConfigListBean into your JSP page. Include the following code near the top of your JSP page.

<!-- BEA WebLogic -->
<jsp:useBean id="ConfigList"
scope="page"
class="com.siebel.isscda.wl.transact.ConfigListBean">
<!-- BEA WebLogic -->
<!-- IBM WebSphere -->
<jsp:useBean id="ConfigList"
scope="page"
class="com.siebel.isscda.ws.transact.ConfigListBean"> ">
<!-- IBM WebSphere -->

<% ConfigList.setSortField("DateCreated");
ConfigList.setSortOrder("Desc");
ConfigList.createList(session, request); %>
</jsp:useBean>

This code imports the ConfigListBean, sets up the sort order, and then creates the configuration list.

The While Loop

The JSP page must also include a while loop. The while loop traverses the list of saved configurations. Each iteration of the loop is a single saved configuration (or one row in the table). Get methods are used to return information about the saved configuration and display this information in the Configuration list.

The following HTML defines the table structure for display of the Configuration list.

<table border=1>
<tr><th>Config ID</th><th>Name</th><th>Date Created</ th><th>Delete</th><th>See XML</th></tr>
<% while (ConfigList.nextConfig()) { %>
<tr>

<td><a href="<%= ConfigList.getRestoreURL() %>" target="_new"><%= ConfigList.getUniqueId() %></a></ td>
<td><%= ConfigList.getName() %></td>
<td><%=ConfigList.getDateCreated() %></td>
<td><a href="<%= ConfigList.getDeleteURL() %>">Delete</ a></ td><td><a href="<%= ConfigList.getExportURL() %>" target="_new">xml</a></td>
</tr>

<% } %>

Between the fourth line of code:

<% while (ConfigList.nextConfig()) { %>

and the last line of code:

<% } %>

you can add any of the get() functions from the ConfigList API.

For a complete description of the available get() functions, see ConfigList API.


 Siebel Interactive Selling Transact Server Interface Reference 
 Published: 18 April 2003