Sunday, September 27, 2009
XSD
Thursday, September 24, 2009
velocity template engine using java objects
Velocity is a Java based template engine.It permits anyone to use a simple yet powerful template language to reference objects defined in Java code.
An alternative to JSP and PHP, and few others. Velocity framework can be used in following areas:- Web apps, dynamic HTML pages are created and processed with VelocityViewServlet or number of frameworks that support Velocity - Source code generation- Automatic e-mails- XML transformation, provides an ant task called Anakia which reads an XML file and makes it available to a Velocity template. What are the features of Velocity?Velocity framework has following features:- Velocity is MVC based- It segregates html template code from Java code- It emphasizes on role based web app development - Velocity offers better maintainable web applications.
Here is a little description of how it could be used:
Solutions Exploration:
blah blah blah $colorUtil.red($SUBJECT) blah blah
-----------------------------------------------
I have used velocity extensively when I worked on an adapter's FCIF work. But, that's about it. Everything was straight pojo field mapping to same named property in the template with a dollar sign in front. The colorUtil looks way cool, but it still operates on the premise that SUBJECT is a property not literal text, correct?
-----------------------------------------------
Sunday, September 20, 2009
xwork/WebWork
Used XWork with Struts 2 actions to program actions.
Interceptors were used profusely in my project. Intercept stack were configured in a xml file.
The real use of abundant memory these days is great for the fact that the entire stack of intercepts are loaded at the start so the entire process is very quick.
--ask me for more details.
XWork 2.1.4 offers users a powerful command-pattern framework that is used to power Struts 2. Users can define action classes by using an Action interface, then XWork will setup and run the users actions. XWork provides an Inversion of Control container, a powerful expression language, data type conversion, validation, and pluggable configuration. XWork is most widely known from the web MVC framework called Webwork.
Major Features
- Flexible and customizable configuration based on a simple Configuration interface, allowing you to use XML , programmatic, or even product-integrated configuration
- Core command pattern framework which can be customized and extended through the use of interceptors to fit any request / response environment
- Built in type conversion and action property validation using OGNL
- Powerful validation framework based on runtime attributes and a validation interceptor