Download "user manual"

Transcript
<audio src="./grammar%20audio/P00030d.wav">When do you want to
leave?</audio>
</prompt>
<filled>
<assign name="P00030" expr="fP00030" />
<assign name="previousResult" expr="fP00030" />
<goto next="#S00020" />
</filled>
</field>
</form>
<form id="S00020">
<block>
<audio src="./grammar%20audio/S00020s.wav">The next train leaves
_</audio>
</block>
</form>
<!--End Call Flow-->
3. To complete our application we need to include dynamic grammar generation
from a database using Java Server Pages and a JavaBean database
application to calculate the available times for selected departure and arrival
selections. We use the basic code generated from the Call Builder to
complete these requirements and convert them to JSP files.
This process generates the following .jsv file for the voice application.
Example 14-3 .jsv file generated from the flow
<%@ page session="false" contentType="text/x-vxml" import="java.util.*,
ticketvoice.*" %>
<%@ taglib uri="/WEB-INF/tld/portlet.tld" prefix="portletAPI" %>
<portletAPI:init/>
<var name="start" />
<var name="end" />
<var name="timeLeave" />
<%
TicketVoicePortletSessionBean sessionBean =
(TicketVoicePortletSessionBean)portletRequest.getPortletSession().getAttribute(
TicketVoicePortlet.SESSION_BEAN);
%>
<property name="universals" value="help cancel" />
<property name="audiomaxage" value="1" />
<var name="mode" expr="'speech'" />
<var name="previousResult" />
<%if((sessionBean.getStart().equals(""))){%>
<form id="welcome">
<block>
346
Patterns: Pervasive and Rich Device Access Solutions