help needed with VXML & JSP - need to bypass option

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="menu:eek:therEnquiries"/>

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><h:eek:utputText
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="<h:eek:utputText
value="#{activationBean.languageMediaBase}"/>/<h:eek:utputText
value="#{msgs['message16.wav']}"/>">
<h:eek:utputText
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="<h:eek:utputText
value="#{activationBean.languageMediaBase}"/>/<h:eek:utputText
value="#{msgs['message17.wav']}"/>">
<h:eek:utputText
value="#{msgs['message17']}"/>
</audio>
<audio src="<h:eek:utputText
value="#{activationBean.languageMediaBase}"/>/<h:eek:utputText
value="#{msgs['message18.wav']}"/>">
<h:eek:utputText
value="#{msgs['message18']}"/>
</audio>
<audio src="<h:eek:utputText
value="#{activationBean.languageMediaBase}"/>/<h:eek:utputText
value="#{msgs['message19.wav']}"/>">
<h:eek:utputText
value="#{msgs['message19']}"/>
</audio>
<audio src="<h:eek:utputText
value="#{activationBean.languageMediaBase}"/>/<h:eek:utputText
value="#{msgs['message20.wav']}"/>">
<h:eek:utputText
value="#{msgs['message20']}"/>
</audio>
</prompt>

<catch event="nomatch">
<if cond="counter > 1">
<prompt bargein= "true">
<audio src="<h:eek:utputText
value="#{activationBean.languageMediaBase}"/>/<h:eek:utputText
value="#{msgs['message30.wav']}"/>">
<h:eek:utputText
value="#{msgs['message30']}"/>
</audio>
</prompt>
<goto next="xfer-FLA.faces"/>
</if>
<assign name="counter"
expr="increase(counter)"/>
<prompt bargein= "true">
<audio src="<h:eek:utputText
value="#{activationBean.languageMediaBase}"/>/<h:eek:utputText
value="#{msgs['message32.wav']}"/>">
<h:eek:utputText
value="#{msgs['message32']}"/>
</audio>
</prompt>
<reprompt/>
</catch>
<!--
<catch event="nomatch" count="2">
<prompt bargein= "true">
<audio src="<h:eek:utputText
value="#{activationBean.languageMediaBase}"/>/<h:eek:utputText
value="#{msgs['message30.wav']}"/>">
<h:eek:utputText
value="#{msgs['message30']}"/>
</audio>
</prompt>
<goto next="xfer-FLA.faces"/>
</catch>
<catch event="noinput">
<if cond="counter > 1">
<prompt bargein= "true">
<audio src="<h:eek:utputText
value="#{activationBean.languageMediaBase}"/>/<h:eek:utputText
value="#{msgs['message30.wav']}"/>">
<h:eek:utputText
value="#{msgs['message30']}"/>
</audio>
</prompt>
<goto next="xfer-FLA.faces"/>
</if>
<assign name="counter"
expr="increase(counter)"/>
<prompt bargein= "true">
<audio src="<h:eek:utputText
value="#{activationBean.languageMediaBase}"/>/<h:eek:utputText
value="#{msgs['message31.wav']}"/>">
<h:eek:utputText
value="#{msgs['message31']}"/>
</audio>
</prompt>
<reprompt/>
</catch> -->
<!--
<catch event="noinput" count="2">
<prompt bargein= "true">
<audio src="<h:eek:utputText
value="#{activationBean.languageMediaBase}"/>/<h:eek:utputText
value="#{msgs['message30.wav']}"/>">
<h:eek:utputText
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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top