NanoContainer NanoWar

Add support for multiple view technologies

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: core
  • Labels:
    None
  • Number of attachments :
    2

Description

It would be cool to be able to allow multiple view types such as Velocity, Freemarker and JSP.

I've implemented this in the patch attached to this.

All you have todo is add the init parameter "viewtypes" to web.xml. This contains a commadelimited list of extensions, which are listed in priority.

Activity

Hide
Pelle Braendgaard added a comment -

diff of changes to support multiple views types.

Show
Pelle Braendgaard added a comment - diff of changes to support multiple views types.
Hide
Pelle Braendgaard added a comment -

Further samples for nanoweb. Additions are:

  • register.groovy which demonstrates multiple view types
  • salary - An example nanoweb app written in plain Java
Show
Pelle Braendgaard added a comment - Further samples for nanoweb. Additions are:
  • register.groovy which demonstrates multiple view types
  • salary - An example nanoweb app written in plain Java
Hide
Mauro Talevi added a comment -

Seems very useful improvement to support multiple views.
Will have a more careful look, but on first glance I did
notice that you use String.split().
Could you refactor not to use any JDK1.4 specific stuff
unless really essential? Pico and Nano support JDK1.3 as the
minimum JVM. In this case it is very simple to avoid 1.4.
Cheers

Show
Mauro Talevi added a comment - Seems very useful improvement to support multiple views. Will have a more careful look, but on first glance I did notice that you use String.split(). Could you refactor not to use any JDK1.4 specific stuff unless really essential? Pico and Nano support JDK1.3 as the minimum JVM. In this case it is very simple to avoid 1.4. Cheers

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: