I created a new controller named ShopController, to use in Webflows. This is the code :
class ShopController {
def index() {
redirect(action:"order")
}
def orderFlow = {
display {
on("next") {
}.to("finish")
}
finish {
redirect(controller:"user", action:"index")
}
}
}
And in views/shop/order/display I created a file like this :
<html>
<head>
<title>Testing</title>
</head>
<body>
<h1>Testing</h1>
Testing webflows.
<g:form action="order">
</g:form>
</body>
</html>
However upto this it looks simple, when I run my grails app and pointing the browser to http://localhost:8080/testing/shop/order/display I’m getting nothing. Nothing in sense, there is no error message from Apache, no text, I’m seeing only a blank screen.
I’m using Grails 2.0
Where did I go wrong? Did I make any silly mistakes?
Thanks in advance.
I found where I was making a mistake.
The documentation has this text :
(see here)
Just install the plugin and everything is working fine.