Developer(s) Brandao Development status Active Operating system | Initial release May 17, 2009 Written in Java | |
Stable release 2.0RC1 / 30 June 2015; 19 months ago (2015-06-30) |
The Brutos Application Framework is MVC controller written in Java. Designed to reduce the complexity of web development, with configurable mapping, view resolution as well as support for uploading and downloading files. Can be configured using XML, annotations and CoC.
Contents
- Release Bundle Downloads
- Maven Repository Artifacts
- How to configure
- Creating a simple controller
- Defining the controller path
- Defining the action path
- Defining the action strategy
- The Detached action strategy
- The Hierarchy action strategy
- The Parameter action strategy
- Defining the default action
- Defining the abstract action
- Using URI template
- File upload
- File download
- Mounting the result action
- Creating a simple interceptor
- Creating a simple interceptor stack
- Handling exceptions
- Specifying handling exception
- Simple bean mapping
- Defining the property scope
- Defining the property name
- Defining the bean constructor
- Defining the target class
- Collection mapping
- Map
- Defining tha action view
- Using Bean Validator
- Complex form and mixing form and session
- Polymorphic Mapping
- References
The framework follows the below principles:
Release Bundle Downloads
The Brutos team provides release bundles hosted on the SourceForge File Release System, in ZIP.
Each release bundle contains JARs, documentation, source code, and other information.
You can download releases of Brutos, from the list at sourceforge
Maven Repository Artifacts
They are produced a number of artifacts. All under the org.brandao groupId.
The official repository is www
How to configure?
Register the listener in web.xml
Register the filter in web.xml
Attention: If you are using a container that supports the Servlet 3.0 specification, the registration of ContextLoadListener and DispatcherServlet or BrutosRequestFilter are not necessary. They will be automatically registered.
Register the artifacts in pom.xml
Create the file brutos-config.xml in /WEB-INF.
Creating a simple controller
URI mapping:
Controller
Defining the controller path
URI mapping:
Controller
Defining the action path
URI mapping:
Controller
Defining the action strategy
URI mapping:
Controller
The Detached action strategy
URI mapping:
Controller
The Hierarchy action strategy
URI mapping:
Controller
The Parameter action strategy
URI mapping:
Controller
Defining the default action
URI mapping:
Controller
Defining the abstract action
URI mapping:
Controller
Using URI template
URI mapping:
Controller
File upload
Form
Controller
File download
Controller
Mounting the result action
Controller
Creating a simple interceptor
Interceptor
Controller
Creating a simple interceptor stack
Interceptor A
Interceptor B
Controller
Handling exceptions
URI mapping
Controller
Specifying handling exception
URI mapping
Controller
URI mapping
Controller
Simple bean mapping
Form
Bean
Controller
Defining the property scope
Bean
Defining the property name
Form
Bean
Defining the bean constructor
Bean
Defining the target class
Controller
Collection mapping
Form
Bean
Bean
Map
Form
Bean
Defining tha action view
URI mapping
Controller
Using Bean Validator
Action
Action
Controller
Controller
Bean
Bean
Bean
Complex form and mixing form and session.
Form
Bean
Bean
Controller
Polymorphic Mapping
Mapping a polymorphic action parameter
Mapping a polymorphic collection
Mapping a polymorphic map
Mapping a polymorphic property