|
hi there
here my problem:
in my application i have a singelton which represents the
application-object. this class provides
different services like "which is my applicationpath?
(ex. c:\myapp\class\)".
to support this service i read something about initParameters.
this parameter are hold in some
property-files of the servlet-engine.
i tried this with a simple servlet... and it works
fine!
but if i use jsp-pages and servlets i always get back
"null".
in jason hunter's
"servlet programming-book" i found the hint that all servlets must
call
the super.init(config)
method. but it doesn't work either!
the files are called in the following sequence:
1. jsp-file with inputfield's
...
<%!
public void jspInit(ServletConfig sConfig) throws ServletException { super.init(sConfig); } %> ...
2. the jsp-file calls a servlet as
form-action
...
public void
init (ServletConfig sConfig) throws ServletException
{ super.init(sConfig); String strAppPath = getInitParameter("ApplicationPath"); _zoominAppl = S_Zoomin.getZoominInstance(); _log = _zoominAppl.getLogWriter(); _zAdminBean = new ZoominAdminBean(); _log.doLog(this, "ApplicationPath aus Init-Parameter ist: " + strAppPath); } ... has anyone a further idea or hint??
thanks
sandro ruch
|
