Danh mục tài liệu

Bắt đầu với IBM Websphere smash - p 16

Số trang: 10      Loại file: pdf      Dung lượng: 712.88 KB      Lượt xem: 21      Lượt tải: 0    
Xem trước 2 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

132Chapter 6Response RenderingBusiness Logic Header Header Dynamic ContentNavFooter Dynamic ContentNavFooterFigure 6.8Updated assembly flowListing 6.10/public/quiz/index.gt—Simple Redirect to Business LogicListing 6.11/app/scripts/quiz.groovy—Business Logic Controllerdef go() { if ( request.params.quiz[] == null ) { request.params.page = "home" } else { request.params.page = "quiz" request.params.quiz = getQuizData() } // This would be pulled from DB or config file request.params.nav = [ home : Home, php : PHP Quiz, groovy: Groovy Quiz, dojo : Dojo Quiz, smash : sMash Quiz ] request.view = "quiz/theme/main.gt" render() }Download from www.wowebook.comUsing Views for Rendering133def getQuizData() { // Determine quiz, and get questions. return [ title: PHP Quiz, questions: [...
Nội dung trích xuất từ tài liệu:
Bắt đầu với IBM Websphere smash - p 16