Opus College – Techniques Spring Annotated Controllers.

Slides:



Advertisements
Similar presentations
CTS2 DEVELOPMENT FRAMEWORK CTS2 Overview. Schedule What is it? Why a framework? What does this do for me? Plugins Implementations available now CTS2 Compliance.
Advertisements

OpusCollege and Spring-DM. OSGi based web applications – three strategies OSGi container embedded in another container: OSGi Bridge Server (OBS)  e.g.
Spring 3.0 MVC - Introduction By, Srinivas Reddy.S
Francisco Gonzalez Mario Rincon.  Apache CXF is an open source services framework.  CXF helps you build and develop services using frontend programming.
Apache Struts Technology
Beginning Spring MVC Spencer Uresk. Notes This is a training, NOT a presentation Please ask questions This is being recorded
SOAP Quang Vinh Pham Simon De Baets Université Libre de Bruxelles1.
Struts Basics SSE USTC Qing Ding. Agenda What is and Why Struts? Struts architecture – Controller: Focus of this presentation – Model – View Struts tag.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2005 Pearson Education, Inc. All rights reserved Chapter 34 Servlets.
Spring MVC form handling annotation example
WebDynpro for ABAP Short introduction.
Apache Struts Technology A MVC Framework for Java Web Applications.
Spring Dynamic Modules. Startlocation: Documentation: /1.2.1/reference/html/
Introduction to Java web programming Dr Jim Briggs JWP intro1.
Spring Framework Benefits…
UNIT-V The MVC architecture and Struts Framework.
SPRING Framework Marcin Sztec.
Spring Overview, Application demo -Midhila Paineni 09/23/2011 Spring Overview, Application demo9/8/20151.
Separation of Concerns Technion – Institute of Technology Author: Gal Lalouche - Technion 2015 © 1.
1 3. Implementing Web Services 1.Create SOAP proxy interfaces and WSDL based service descriptions 2.Register/publish services 3.Stores service descriptions.
Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are.
OpusCollege and the use of Spring and iBatis
Chapter 8 Script-free pages. Problem with scripting in JSP When you use scripting (declaration, scriplet, expressions) in your JSP, you actually put Java.
Opus College - overview. OpusCollege - background First project: ICT Capacity Building Mozambican Higher Education Institutions Partners: RUG Groningen,
Application portlets within the PROGRESS HPC Portal Michał Kosiedowski
Chapter 7 Using Custom Tag Libraries and the JSP Standard Tag Library.
Copyright 2007 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Forms with Spring MVC Handling Form.
JSF Framework Java Server Faces Presented by Songkran Totiya (6/10/2014)
Copyright © 2002 ProsoftTraining. All rights reserved. JavaServer Pages.
CDDLM Configuration Description Language (CDL) Jun Tatemura NEC Laboratories America GGF13, March
Chính phủ điện tử TS. Phạm Văn Tính Khoa CNTT, ĐH Nông Lâm TP.HCM
INTEGRATION OF BACKBONE.JS WITH SPRING 3.1. Agenda New Features and Enhancements in Spring 3.1 What is Backbone.js and why I should use it Spring 3.1.
Copyright 2007 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Spring MVC Essentials Getting started.
Integrating Distributed End-User Experiences Business Scenarios and Use Cases Embedded Consumer.
Glen Dobson, Lancaster University Service Grids Workshop NeSC Edinburgh 23/7/04 Endpoint Services Glen Dobson Lancaster University,
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
Preface IIntroduction Objectives I-2 Course Overview I-3 1Oracle Application Development Framework Objectives 1-2 J2EE Platform 1-3 Benefits of the J2EE.
RESTful Web Services What is RESTful?
13 Copyright © 2004, Oracle. All rights reserved. Adding Validation and Error Handling.
SCA and Java n SCA provides support for multiple Java-based component implementation types l Java POJOs (implementation.java) l Spring Beans (implementation.spring)
1 Java Server Pages A Java Server Page is a file consisting of HTML or XML markup into which special tags and code blocks are inserted When the page is.
Chapter 9 Web Application Design. Objectives Describe the MVC design pattern as used with Web applications Explain the role and responsibilities of each.
2006/2007 Licence Apache 2.0 Castle.Igloo. Castle Igloo Basics Pre-require Concept Scopes PageFlow Configuration Controller View Exemple Castle.Igloo.
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
Copyright 2008 SpringSource. Copying, publishing or distributing without express written permission is prohibited. Developing Rich Web Applications with.
The NGS Grid Portal David Meredith NGS + Grid Technology Group, e-Science Centre, Daresbury Laboratory, UK
SDJ INFOSOFT PVT. LTD. 2 BROWSERBROWSER JSP JavaBean DB Req Res Application Layer Enterprise server/Data Sources.
Apache Struts Technology A MVC Framework for Java Web Applications.
J AVA T RAINING IN A HMEDABAD By TOPS Technologies 1 TOPS Technologies Java Course.
Apache Cocoon – XML Publishing Framework 데이터베이스 연구실 박사 1 학기 이 세영.
CS520 Web Programming Spring – Web MVC Chengyu Sun California State University, Los Angeles.
CS520 Web Programming Spring – Web MVC Chengyu Sun California State University, Los Angeles.
Annotation-Based Spring Portlet MVC John A. Lewis Chief Software Architect Unicon, Inc. Jasig 2010 Conference 8 March 2010 © Copyright Unicon, Inc., 2010.
Ask the Experts – Building Login-Based Sites in AEM
CollegeSource Security Application &
ORACLE ADF ONLINE TRAINING COURSE
Best Struts 2 Training By TOPS Technologies.
Java Servlets By: Tejashri Udavant..
Pre assessment Questions
J2EE Lecture 7: Spring – Spring MVC
Chapter 26 Servlets.
CS5220 Advanced Topics in Web Programming Spring – Web MVC
MIS Professor Sandvig MIS 324 Professor Sandvig
CS5220 Advanced Topics in Web Programming Spring – Web MVC
Web Development Using ASP .NET
Chengyu Sun California State University, Los Angeles
Chengyu Sun California State University, Los Angeles
MIS Professor Sandvig MIS 324 Professor Sandvig
SDMX IT Tools SDMX Registry
Presentation transcript:

Opus College – Techniques Spring Annotated Controllers

OpusCollege Spring 2.5 offers Annotations on several levels, a.o.:  Transaction Management  OSGi  MVC Controllers: for Servlet MVC and Portlet MVC. Controllers implemented in this style do not have to extend specific base classes or implement specific interfaces.

OpusCollege Setting up the dispatcher for annotation support: will only be processed if a corresponding HandlerMapping (for type level annotations) and/or HandlerAdapter (for method level annotations) is present in the dispatcher. This is the case by default in both DispatcherServlet and DispatcherPortlet. See:..college.applicationContext.xml

OpusCollege Setting up the dispatcher for component scanning  stereotype allows for autodetection, aligned with Spring 2.5's general support for detecting component classes in the classpath and auto-registering bean definitions for them.  To enable autodetection of such annotated controllers, you have to add component scanning to your configuration. This is easily achieved by using the spring-context schema. See:..college.applicationContext.xml

OpusCollege Defining a controller – request mapping:  Mapping requests typically the type-level annotation maps a specific request path (or path pattern) onto a form controller, with additional method-level annotations 'narrowing' the primary mapping for a specific HTTP method request method ("GET"/"POST") or specific HTTP request parameters. See: StudyEditController + StudyDeleteController

OpusCollege Defining a controller – advanced options:  Session object (Servlet API): of type HttpSession. An argument of this type will enforce the presence of a corresponding session. As a consequence, such an argument will never be null. annotated parameters for access to specific Servlet request parameters. Parameter values will be converted to the declared method argument type.  java.util.Map / org.springframework.ui.Model / org.springframework.ui.ModelMap for enriching the implicit model that will be exposed to the web view. See: StudyEditController

OpusCollege Defining a controller – advanced options:  Command/form objects to bind parameters to: as bean properties or fields. In Opus: form object with at least the underlying domain object + custom organization and navigationSettings objects  org.springframework.validation.Errors / org.springframework.validation.BindingResult validation results for a preceding command/form object (the immediate preceding argument).  org.springframework.web.bind.support.SessionStatus status handle for marking form processing as complete (triggering the cleanup of session attributes that have been indicated by annotation at the handler type level). See: StudyEditController

OpusCollege Defining a controller – advanced options:  Configuring a custom WebBindingInitializer: To externalize data binding initialization, you can provide a custom implementation of the WebBindingInitializer interface, which you then enable by supplying a custom bean configuration for an AnnotationMethodHandlerAdapter, thus overriding the default configuration. Used in Opus to define  See:..college.applicationContext.xml  See:..college.config.opusBindingInitializer

Questions ???