[Logo] Mentawai Forum - Mentawai Web Framework
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 

Forum Read-Only! Check the new site and forum here!

Messages posted by: nioto  XML
Profile for nioto -> Messages posted by nioto [3]
Author Message
I think in most cases, only the location of the configuration file will be put in web.xml .

Hi saoj,

well I 've not seen the line in Controller where the ApplicationManager is init'ed
 56:  appManager.init(new ApplicationContext(sc)); 

That's why I proposed to override the Controller class (to have access to the ServletConfig) , but your idea will work perfectly.



I just read all documentation about your framework, and it is very interesting.
I understand you don't want xml configuration files, but you have to undestand that some guys ( me included ) think xml is better.

A solution to allow xml configuration files, is to allow people who want it, to extend class org.mentawai.core.Controller, and rewrite the method initApplicationManager, which is not possible in v.1.1 because of private access to field appManager.

Could you consider this for the next release, please


Profile for nioto -> Messages posted by nioto [3]
Go to:   
Powered by JForum 2.1.6 © JForum Team