SRServletRunner runner = new SRServletRunner(new AppFactory(), this, request, response, "GET");
if (runner.isNewSession()) {
SRRunner run = runner.createNewSRRunner(this);
SRApp flow = new SRApp();
flow.addPromptFlow("Welcome to the Speak-Right demo application. {..}");
DateFormat fDateFormat = DateFormat.getDateInstance(DateFormat.LONG);
Date now = new Date ();
String date_out = fDateFormat.format (now);
flow.addPromptFlow(String.format("Today is %s. {..}", date_out));
flow.add(new SRONumber("number", 1, 10));
flow.addPromptFlow("You said {$INPUT}.");
flow.add(new DisconnectFlow("good bye for now. {..}"));
runner.startApp(flow);
}
else {
runner.logger().log("contine in GET!!");
runner.continueApp();