tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rao, Aravilli Srinivasa" <a...@sonusnet.com>
Subject RDC
Date Wed, 11 Jan 2006 13:06:50 GMT
 

Rahul,

 

I have some issues with current RDC

 

1)    Some Media Servers may not support the Java scripts so it is good
to provide a configuration file to generate script element or not.

 

Currently "fsm-input.tag" uses the following piece to generate the
script element.  

 

<filled>

  <c:if test="${!model.skipSubmit}">

    <script src="${pageContext.request.contextPath}/.grammar/nbest.js"/>

    <var name="${model.id}ResultNBest" expr="serializeNBest()"/>

    <submit next="${model.submit}" method="post"
namelist="${model.id}ResultNBest"/>     

  </c:if>

  </filled>

 

 

2)     Most of the RDC components provides submit location to specify

 

       <rdc:builtinGrammar id="testAb"
submit="http://host:8080/rdc/exit.do" config="/config/test.xml />

 

But there is no option specify the namelist along with submit location.
In some forms struts-submit may not be required.  

 

 

3)    Similarly some Media Servers may not support the following
properties which are in fsm-input.tag

 

  <property name="maxnbest" value="${model.numNBest}"/>

  <property name="confidencelevel" value="${model.minConfidence}"/>

 

 

So in order to overcome the above issues, I have used the following
solution

 

1)                   Remove the property elements in fsm-input.tag
[best option would be move these properties to the config file rather
than hard coding in the fsm-input.tag and change the config schema such
that it supports one more element "property" .  In this way we can
specify several property element which  are supported by VoiceXML
specification and Media Servers]

 

2)                   commented the script and modified the submit
element in fsm-input.tag

 

<filled>

  <c:if test="${!model.skipSubmit}">

  <!--

    <script src="${pageContext.request.contextPath}/.grammar/nbest.js"/>

    <var name="${model.id}ResultNBest" expr="serializeNBest()"/>

    <submit next="${model.submit}" method="post"
namelist="${model.id}ResultNBest"/>

  -->

  <submit next="${model.submit}" namelist="${model.namelist}" /> 

  </c:if>

  </filled>

 

3)                   Added "namelist" property in the BaseModel.java and
modified the builtinGrammar.tag such it takes this attribute also.  I
have added in the BaseModel because it can be used in other tags like
digits, date etc also.

 

<rdc: builtinGrammar id="testAb" submit="http://host:8080/rdc/exit.do"
config="/config/test.xml" namelist="testAbInput true" />

 

 

Please provide your views/ideas in order to achieve the same?

 

 

Regards

Aravilli

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message