[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!

how to get access to ServletConfig  XML
Forum Index -> General Comments
Author Message
logicalusman



Joined: 11/02/2010 06:19:51
Messages: 5
Offline

Inside my ApplicationManager i want to get access to ServletConfig as I need to get the servlet's init param which contains path to my config files etc.

I have tried finding it inside org.mentawai.core.ApplicationManager but
didn't find anything...

Could anyone please guide me?

Thanks
saoj



Joined: 01/07/2005 09:59:17
Messages: 2846
Location: Rio de Janeiro, RJ
Offline

Ideally you should have all your static configuration inside your ApplicationManager.java.

But if you need to access the ServletConfig then you can use get method Controller.getConfig(). But I have just added this, so download the beta jar here: http://www.mentaframework.org/beta/mentawai.jar

You can also check out the project from svn and do a ant build to generate the mentawai.jar file.

Sergio Oliveira

logicalusman



Joined: 11/02/2010 06:19:51
Messages: 5
Offline

Thanks for the reply. My purpose was to get the context path from servlet config, which I got from getRealPath().

cheers
 
Forum Index -> General Comments
Go to:   
Powered by JForum 2.1.6 © JForum Team