|
Re: how to pass request parameters to openvxml web app [message #844470 is a reply to message #844295] |
Sat, 14 April 2012 02:40 |
Randy Childers Messages: 121 Registered: July 2009 |
Senior Member |
|
|
Hi--
If you got your OpenVXML through an installer from the OpenMethods
website, there's not an easy answer (because that's an older version,
the 3.x codestream). However, if you're hooked into the VTP code at
Eclipse (which is the 4.0 codestream), then there is a really easy way
to do this.
There's a system Map variable called InitialParameters which is
automatically populated with URL parameters. In your example, you could
use this in a script block to catch the incoming variable:
if("zip" in Variables.InitialParameters) {
Variables.zipcode = Variables.InitialParameters.zip;
You could just make the assigment without checking to see if it's in the
collection, but if the .war were ever invoked without the parameter,
you'd get an error.
Good luck,
Randy
In <jma8l4$k3c$1@xxxxxxxxe.org> s guo wrote:
> I deployed an openvxml WAR to tomcat, and can retrieve voice xml out
> of it.
>
> but I need to pass in a parameter in the request. how do I retrieve
> this parameter value in openvxml project?
>
> for example, the WeatherDemo project is deployed as "test.server.com/
> test/WeatherDemo",
>
> I want to pass in a zip code like "test.server.comlocalhost/test/
> WeatherDemo?zip=95401", then how can I get this zip code value in
> openvxml project? Thanks,
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03426 seconds