Issue Details (XML | Word | Printable)

Key: NANOWAR-12
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Pelle Braendgaard
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
NanoContainer NanoWar

Add support for multiple view technologies

Created: 10/Aug/04 03:33 PM   Updated: 11/Jun/05 11:43 AM
Component/s: core
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. GZip Archive nanoweb_multiviews_pelle.diff.gz (2 kB)
2. GZip Archive nanowebsamples_pelle.tar.gz (111 kB)



 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Pelle Braendgaard added a comment - 10/Aug/04 03:35 PM
diff of changes to support multiple views types.

Pelle Braendgaard added a comment - 10/Aug/04 03:39 PM
Further samples for nanoweb. Additions are:
  • register.groovy which demonstrates multiple view types
  • salary - An example nanoweb app written in plain Java

Mauro Talevi added a comment - 11/Aug/04 04:01 AM
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