init params are application context variables.
 
Test in jsp first as follows:
<%=application.getInitParameter("xyz")%>
 
T.
-----Original Message-----
From: Christophe Marchand [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 12:51 PM
To: [EMAIL PROTECTED]
Subject: Re: messages resource-file

It does. The problem is that getServletConfig().getInitParameter(...) always return null.
In JRun managment console, I can see init-parameters for my servlet, but in code, I can't retreive them...
I do not understand what happens...
Any Idea ?
----- Original Message -----
Sent: Wednesday, October 03, 2001 7:43 PM
Subject: Re: messages resource-file

Hello Christophe,
    Check if you have put portal-messages.properties into WEB-INF/classes/com/oxiasoft.portal.presentation/ directory
    Or this propertie is in some other direcotry in the CLASSPATH variable.

Greetings Dragomir

Christophe Marchand wrote:

Hi all ! I've deployed a struts-based application under JRun 3.1.I have some problems in loading messages resource-file. After having investigate, it appears that getServletConfig().getInitParameter("application") returns null. Here is my web.xml :...<servlet>
    <servlet-name>portal</servlet-name>
    <servlet-class>com.oxiasoft.portal.presentation.PortalServlet</servlet-class>
    <init-param>
      <param-name>debug</param-name>
      <param-value>100</param-value>
    </init-param>
    <init-param>
      <param-name>application</param-name>
      <param-value>com.oxiasoft.portal.resources.portal-messages</param-value>
    </init-param>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>...Does someone could help me ? Thanks a lot in advance 
----====****===----
Christophe Marchand
Mail prof : [EMAIL PROTECTED]
Mail perso : [EMAIL PROTECTED]

Reply via email to