Webflowsで使用するShopController
という新しいコントローラを作成しました。これはコードです:ブラウザがレンダリングされていないGrails Webflows内のビューファイル
class ShopController {
def index() {
redirect(action:"order")
}
def orderFlow = {
display {
on("next") {
}.to("finish")
}
finish {
redirect(controller:"user", action:"index")
}
}
}
そしてviews/shop/order/display
に私はこのようなファイルを作成した:私は私のGrailsアプリケーションを実行し、http://localhost:8080/testing/shop/order/display
にブラウザを指しI」とき、それは、シンプルに見えますが、この件まで
<html>
<head>
<title>Testing</title>
</head>
<body>
<h1>Testing</h1>
Testing webflows.
<g:form action="order">
</g:form>
</body>
</html>
を何も得られない。意味がありません。Apacheからのエラーメッセージはありません。テキストはありません。空白の画面しか表示されません。私は私が間違って行くのです
のGrails 2.0を使用してい
?私は愚かな間違いをしましたか?
ありがとうございます。
}.to("finsh")
で正しく
thats not theエラー!私は第9章のアクション例でGrailsを実行しようと試みました.. https://github.com/pledbrook/graina/tree/master/source-code/ch09/hubbub/grails-app/controllers/com/grailsinaction。これはWebflowとしてShopControllerを持っています。これは私の質問と同じことを示しています... –