Hi guys,
I’m playing with GAD and deploying the examples, specially I want to open a new tab and show an external URL, however to understand well how this works I began with the example at the development guide.
- Created the custom file
<gcn-resources>
<desktop>
<dictionary-class>custom</dictionary-class>
<interaction-information>
<javascript-onload>
<![CDATA[
selectTabByName(TAB_INTERACTION_INFORMATION_CUSTOM_ATTACHED_DATA);
]]>
</javascript-onload>
</interaction-information>
<customer-records>
<javascript-onload>
<![CDATA[
switch(interactionType) {
case INTERACTION_CHAT:
selectTabByName(TAB_CUSTOMER_RECORDS_HISTORY);
break;
case INTERACTION_VOICE:
selectTabByName("additionalInformation");
break;
}]]>
</javascript-onload>
<tabs>
<tab name="additionalInformation">
<dictionary-key>additionalInformation</dictionary-key>
<javascript-onselect>
<![CDATA[
document.forms.additionalInformationForm.target = getDetailFrameName();
document.forms.additionalInformationForm.elements.idInteraction.value = idInteraction;
document.forms.additionalInformationForm.elements.idContact.value = idContact;
document.forms.additionalInformationForm.submit();
]]>
</javascript-onselect>
<html-body>
<![CDATA[
<form name="additionalInformationForm" action="custom\additionalInformation.jsp">
<input type="hidden" name="idInteraction">
<input type="hidden" name="idContact">
</form>
]]>
</html-body>
</tab>
</tabs>
</customer-records>
</desktop>
</gcn-resources>
- Then created the frame file on same folder:
<%@ page language="java" buffer="none" contentType="text/
html; charset=utf-8" %>
<%
com.genesyslab.ail.AilFactory factory =com.genesyslab.ail.AilLoader.getAilFactory();
com.genesyslab.ail.Interaction interaction =factory.getInteraction( (String)request.getParameter("idInteraction" ) );
com.genesyslab.ail.Contact contact = null;
com.genesyslab.ail.ContactManager contactManager =factory.getContactManager();
if (contactManager != null)
contact = factory.getContactManager().getContact((String)request.getParameter( "idContact" ) ,null);
%>
<html>
<head>
<title>Additional Information</title>
</head>
<body style="font-size: 10pt;" bgcolor="#ffcccc">
<% if( contact != null ) { %>
Contact:
<b>
<%=contact.getTitle()%>
<%=contact.getFirstName()%>
<%=contact.getLastName()%>
</b>
Primary Phone Number:
<b>
<%=contact.getPrimaryPhoneNumber()%>
</b>
Primary E-mail Address:
<b>
<%=contact.getPrimaryEmailAddress()%></b>
<% } else { %>
<center>
<b>
Contact Information Not Available
</b>
</center>
<% } %>
<hr>
<% if( interaction != null ) { %>
Date of Creation:
<b>
<%=interaction.getDateCreated()%>
</b>
Agent:
<b>
<%=interaction.getUserName()%>
</b>
Subject:
<b>
<%=interaction.getSubject()%>
</b>
<% if( interaction.getDn() != null ) { %>
Dn:
<b>
<%=interaction.getDn().getId()%>
</b>
<% } else { %>
Dn:
<b>
No Dn Information Available
</b>
<% } %>
<% } else { %>
<center>
<b>
Interaction Information Not Available
</b>
</center>
<% } %>
</body>
</html>
- Then the dictionary file:
AdditionalInformation=Additional Information
But I get this error:
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: SvgTag key additionalInformation not found
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.genesyslab.uadthin.filter.CachePreventFilter.doFilter(CachePreventFilter.java:30)
com.genesyslab.uadthin.filter.UTF8Filter.doFilter(UTF8Filter.java:118)
root cause
javax.servlet.ServletException: SvgTag key additionalInformation not found
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
org.apache.jsp.interaction.customer_002drecords_002dtab_jsp._jspService(customer_002drecords_002dtab_jsp.java:1012)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.genesyslab.uadthin.filter.CachePreventFilter.doFilter(CachePreventFilter.java:30)
com.genesyslab.uadthin.filter.UTF8Filter.doFilter(UTF8Filter.java:118)
root cause
javax.servlet.jsp.JspTagException: SvgTag key additionalInformation not found
com.genesyslab.uadthin.taglib.SvgTag.doStartTag(SvgTag.java:227)
org.apache.jsp.interaction.customer_002drecords_002dtab_jsp._jspService(customer_002drecords_002dtab_jsp.java:314)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
com.genesyslab.uadthin.filter.CachePreventFilter.doFilter(CachePreventFilter.java:30)
com.genesyslab.uadthin.filter.UTF8Filter.doFilter(UTF8Filter.java:118)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.25 logs.
And found that has to be with this line at the custom.xml file:
additionalInformation
What can be? I have tried to rename everything without success…
any ideas?