Page 1 of 1

delay between two JSP files

Posted: Thu Feb 16, 2006 1:39 pm
by yunyun
Hi,

I have couples of JSP files in an application. I could feel a delay of up to 5 seconds when it moves between JSP files. I add

Code: Select all

<property name="documentfetchhint" value="prefetch"/>
in the root JSP file of the application. But it didn't help much.

Thanks,

Yunyun

IVR platform does not currently implement prefetch

Posted: Thu Feb 16, 2006 3:35 pm
by support
Hello,

The Plum IVR platform does not currently implement prefetch. If you are transitioning between JSP pages you should be doing so via POST (in which case it wouldn't be prefetched anyway). To minimize latency you should either use static pages (.vxml or .xml not .jsp) for static content or include multiple forms in a single page and perform local page transitions:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">
	<form id="form1">
		<field name="field1" type="boolean">
			<prompt>Press 1 or 2</prompt>
			<filled>
				<if cond="field1">
					<goto next="#form2"/>
				<else/>
					<goto next="#form3"/>
				</if>
			</filled>
		</field>
	</form>
	<form id="form2">
		<block>
			<prompt>This is form 2</prompt>
		</block>
	</form>
	<form id="form3">
		<block>
			<prompt>This is form 3</prompt>
		</block>
	</form>
</vxml>
This should minimize the delay experienced by the user. Also, you should look at the last IVR call log to determine exactly what is causing the delay. If it is inherent in the JSP processing and you have to perform the page transition you should add fetch audio to your <goto>/<submit> tag.

Regards,
Plum Support