K
kal
Hi All, im a telecomms guy with a bit of programming background
historically VB6 and very basic xml & JAVA.
I have a JSP page with following code
PAGE NAME IS "ACTIVATION.JSP"
BELOW IS THE CODE,,,, IN THE CODE WHERE
<field name="activateMenu">
<option dtmf="1" value="menu:activate"/>
<option dtmf="9" value="menutherEnquiries"/>
IT ASKS USER TO PRESS 1 OR 9... I WANT TO FORCE SYSTEM TO IGNORE
OFFERING OPTION TO USER AND AUTOMATICALLY ASSUME 1 AND FOLLOW THE
PATH.
ANY HELP WILL BE GREATELY APPRECIATED.
view plaincopy to clipboardprint?
<?xml version="1.0" encoding="UTF-8" ?>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ taglib prefix="holly" uri="http://holly.com/jsf/component/tags"
%>
<vxml
xmlns="http://www.w3.org/2001/vxml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/vxml
http://www.w3.org/TR/voicexml20/vxml.xsd"
application="../vxml/ingcca-root.xml"
version="2.0">
<%@ include file="properties.jsp" %>
<f:view>
<holly:form>
<var name="counter" expr="1"/>
<block>
<log><hutputText
value="#{activationBean.logMessage}"/></log>
<log>EVNT=dialogid|activation</log>
</block>
<holly:include
expr="#{activationBean.isCardActivated}">
<block>
<log>EVNT=dialogid|Already Activated</log>
<goto next="xfer-FLA.faces"/>
</block>
</holly:include>
<holly:include
expr="#{activationBean.isCardNotActivated}">
<holly:include
expr="#{activationBean.isStatusNotN}">
<block>
<prompt bargein= "true">
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message16.wav']}"/>">
<hutputText
value="#{msgs['message16']}"/>
</audio>
</prompt>
<log>EVNT=dialogid|Failed to Activate</log>
<goto next="xfer-FLA.faces"/>
</block>
</holly:include>
<holly:include expr="#{activationBean.isStatusN}">
<field name="activateMenu">
<prompt>
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message17.wav']}"/>">
<hutputText
value="#{msgs['message17']}"/>
</audio>
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message18.wav']}"/>">
<hutputText
value="#{msgs['message18']}"/>
</audio>
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message19.wav']}"/>">
<hutputText
value="#{msgs['message19']}"/>
</audio>
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message20.wav']}"/>">
<hutputText
value="#{msgs['message20']}"/>
</audio>
</prompt>
<catch event="nomatch">
<if cond="counter > 1">
<prompt bargein= "true">
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message30.wav']}"/>">
<hutputText
value="#{msgs['message30']}"/>
</audio>
</prompt>
<goto next="xfer-FLA.faces"/>
</if>
<assign name="counter"
expr="increase(counter)"/>
<prompt bargein= "true">
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message32.wav']}"/>">
<hutputText
value="#{msgs['message32']}"/>
</audio>
</prompt>
<reprompt/>
</catch>
<!--
<catch event="nomatch" count="2">
<prompt bargein= "true">
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message30.wav']}"/>">
<hutputText
value="#{msgs['message30']}"/>
</audio>
</prompt>
<goto next="xfer-FLA.faces"/>
</catch>
<catch event="noinput">
<if cond="counter > 1">
<prompt bargein= "true">
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message30.wav']}"/>">
<hutputText
value="#{msgs['message30']}"/>
</audio>
</prompt>
<goto next="xfer-FLA.faces"/>
</if>
<assign name="counter"
expr="increase(counter)"/>
<prompt bargein= "true">
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message31.wav']}"/>">
<hutputText
value="#{msgs['message31']}"/>
</audio>
</prompt>
<reprompt/>
</catch> -->
<!--
<catch event="noinput" count="2">
<prompt bargein= "true">
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message30.wav']}"/>">
<hutputText
value="#{msgs['message30']}"/>
</audio>
</prompt>
<goto next="xfer-FLA.faces"/>
</catch>
-->
<filled>
<holly:submit namelist="activateMenu"
action="#{activationBean.navigation}"/>
</filled>
</field>
</holly:include>
</holly:include>
</holly:form>
</f:view>
</vxml>
historically VB6 and very basic xml & JAVA.
I have a JSP page with following code
PAGE NAME IS "ACTIVATION.JSP"
BELOW IS THE CODE,,,, IN THE CODE WHERE
<field name="activateMenu">
<option dtmf="1" value="menu:activate"/>
<option dtmf="9" value="menutherEnquiries"/>
IT ASKS USER TO PRESS 1 OR 9... I WANT TO FORCE SYSTEM TO IGNORE
OFFERING OPTION TO USER AND AUTOMATICALLY ASSUME 1 AND FOLLOW THE
PATH.
ANY HELP WILL BE GREATELY APPRECIATED.
view plaincopy to clipboardprint?
<?xml version="1.0" encoding="UTF-8" ?>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ taglib prefix="holly" uri="http://holly.com/jsf/component/tags"
%>
<vxml
xmlns="http://www.w3.org/2001/vxml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/vxml
http://www.w3.org/TR/voicexml20/vxml.xsd"
application="../vxml/ingcca-root.xml"
version="2.0">
<%@ include file="properties.jsp" %>
<f:view>
<holly:form>
<var name="counter" expr="1"/>
<block>
<log><hutputText
value="#{activationBean.logMessage}"/></log>
<log>EVNT=dialogid|activation</log>
</block>
<holly:include
expr="#{activationBean.isCardActivated}">
<block>
<log>EVNT=dialogid|Already Activated</log>
<goto next="xfer-FLA.faces"/>
</block>
</holly:include>
<holly:include
expr="#{activationBean.isCardNotActivated}">
<holly:include
expr="#{activationBean.isStatusNotN}">
<block>
<prompt bargein= "true">
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message16.wav']}"/>">
<hutputText
value="#{msgs['message16']}"/>
</audio>
</prompt>
<log>EVNT=dialogid|Failed to Activate</log>
<goto next="xfer-FLA.faces"/>
</block>
</holly:include>
<holly:include expr="#{activationBean.isStatusN}">
<field name="activateMenu">
<prompt>
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message17.wav']}"/>">
<hutputText
value="#{msgs['message17']}"/>
</audio>
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message18.wav']}"/>">
<hutputText
value="#{msgs['message18']}"/>
</audio>
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message19.wav']}"/>">
<hutputText
value="#{msgs['message19']}"/>
</audio>
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message20.wav']}"/>">
<hutputText
value="#{msgs['message20']}"/>
</audio>
</prompt>
<catch event="nomatch">
<if cond="counter > 1">
<prompt bargein= "true">
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message30.wav']}"/>">
<hutputText
value="#{msgs['message30']}"/>
</audio>
</prompt>
<goto next="xfer-FLA.faces"/>
</if>
<assign name="counter"
expr="increase(counter)"/>
<prompt bargein= "true">
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message32.wav']}"/>">
<hutputText
value="#{msgs['message32']}"/>
</audio>
</prompt>
<reprompt/>
</catch>
<!--
<catch event="nomatch" count="2">
<prompt bargein= "true">
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message30.wav']}"/>">
<hutputText
value="#{msgs['message30']}"/>
</audio>
</prompt>
<goto next="xfer-FLA.faces"/>
</catch>
<catch event="noinput">
<if cond="counter > 1">
<prompt bargein= "true">
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message30.wav']}"/>">
<hutputText
value="#{msgs['message30']}"/>
</audio>
</prompt>
<goto next="xfer-FLA.faces"/>
</if>
<assign name="counter"
expr="increase(counter)"/>
<prompt bargein= "true">
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message31.wav']}"/>">
<hutputText
value="#{msgs['message31']}"/>
</audio>
</prompt>
<reprompt/>
</catch> -->
<!--
<catch event="noinput" count="2">
<prompt bargein= "true">
<audio src="<hutputText
value="#{activationBean.languageMediaBase}"/>/<hutputText
value="#{msgs['message30.wav']}"/>">
<hutputText
value="#{msgs['message30']}"/>
</audio>
</prompt>
<goto next="xfer-FLA.faces"/>
</catch>
-->
<filled>
<holly:submit namelist="activateMenu"
action="#{activationBean.navigation}"/>
</filled>
</field>
</holly:include>
</holly:include>
</holly:form>
</f:view>
</vxml>