RE: how to call an existing VXML file from another VXML file which is generated by servlet

Yanyang FANG,
                      Copy the existing(static) vxml file to public folder
of your java webserver, for eg in Tomcat the public folder will be
D:\jakarta-tomcat\webapps\ROOT.
 After that change the code to http://localhost:8080/mainmenu.vxml to access
mainmenu.vxml file inside your Servlet.
Hope this will solve your problem.
Regs.
Ajay Menon

-----Original Message-----
From: www-voice-request@w3.org [mailto:www-voice-request@w3.org]On Behalf Of
Yanyang FANG
Sent: Sunday, April 21, 2002 7:16 AM
To: www-voice@w3.org
Subject: how to call an existing VXML file from another VXML file which is
generated by servlet


        Hi everyone,

        Thank you in advance if you offer me any idea about my question. I
have tried to sort this problem for a 3 days but still :(( emergency!!!

        question:How to call an existed vxml file from another VXML which is
generted dynamiclly by my servlet,I try to use some element such as

        out.println("<goto next=\"mainmenu.vxml\"/>"); or

        out.println("<link next=\"D:\\Program
Files\\VoiceServerSDK\\samples\\en_GB\\banking\\mainmenu.vxml\">"); but the
VXML browser alway says " file not found" or unknow protocol.

        there three files are involved: testmainvxml.vxml calls
validation.java(servlet), and then I try to let serlvet to call
mainmenu.vxml which is stored in the some place with testmain.vxml

        file:testmainvxml.vxml
        <?xml version="1.0"?>
        <vxml version="1.0">
        <form>

        <field name="membershipnumber" type="digits">
        <prompt>
        Welcom to Big Bird Bank. please key in or say your 6 digits
membership number</prompt>
        </field>
        <filled>
        <submit next="http://localhost:8080/servlet/bankservlet.validtion"/>
        </filled>

        </form>
        </vxml>

        part of code of servlet
        out.println("<?xml version=\"1.0\"?>");
        out.println("<vxml version=\"1.0\">");
        out.println("<form>");
        out.println("<block>");
        out.println("you are right customer");
        out.println("<goto next=\"mainmenu.vxml\"/>")
        out.println("</block>");
        out.println("</form>");
        out.println("</vxml>");

        File: mainmenu.vxml
        <?xml version="1.0"?>
        <vxml version="1.0">
        <menu>

        <prompt>
        Welcom to Big Bird Bank. For account balance, press or say <break
size="small"/>1, account balance or <break size="small"/>inquiry:</prompt>

        <choice next="inquiry.vxml">
        <grammar>
        1 | inquiry
        </grammar>
        <dtmf>1</dtmf>

        </choice>......

        what can I do for this?

        Thanks a lot

        Jennifer

Received on Monday, 22 April 2002 16:10:03 UTC